ARM: orion5x: clean-up mach/io.h
authorRob Herring <rob.herring@calxeda.com>
Sat, 11 Feb 2012 00:29:09 +0000 (18:29 -0600)
committerRob Herring <rob.herring@calxeda.com>
Wed, 7 Mar 2012 03:34:40 +0000 (21:34 -0600)
Move orion5x specific mach/io.h parts into common.h.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Lennert Buytenhek <kernel@wantstofly.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
arch/arm/mach-orion5x/common.h
arch/arm/mach-orion5x/include/mach/io.h
arch/arm/mach-orion5x/pci.c
arch/arm/mach-orion5x/tsx09-common.c

index d2513ac79ff5c1b9c317e54b490bcc2744889530..2e6454c8d4baab451c251cfd69a8a40d225e7d56 100644 (file)
@@ -57,5 +57,14 @@ struct meminfo;
 struct tag;
 extern void __init tag_fixup_mem32(struct tag *, char **, struct meminfo *);
 
+/*****************************************************************************
+ * Helpers to access Orion registers
+ ****************************************************************************/
+/*
+ * These are not preempt-safe.  Locks, if needed, must be taken
+ * care of by the caller.
+ */
+#define orion5x_setbits(r, mask)       writel(readl(r) | (mask), (r))
+#define orion5x_clrbits(r, mask)       writel(readl(r) & ~(mask), (r))
 
 #endif
index e9d9afdc26594f2936c85faeba3e2b454e1f9d1a..444136d8c4442fd1a8dbe63c51a15cd6df2eb8b2 100644 (file)
 #define __io(a)                        __typesafe_io(a)
 #define __mem_pci(a)           (a)
 
-
-/*****************************************************************************
- * Helpers to access Orion registers
- ****************************************************************************/
-/*
- * These are not preempt-safe.  Locks, if needed, must be taken
- * care of by the caller.
- */
-#define orion5x_setbits(r, mask)       writel(readl(r) | (mask), (r))
-#define orion5x_clrbits(r, mask)       writel(readl(r) & ~(mask), (r))
-
-
 #endif
index 09a045f0c406c50b64275f450993874b1af18f02..a9d21510c974f71221540b8457b961fced311417 100644 (file)
@@ -19,6 +19,7 @@
 #include <asm/mach/pci.h>
 #include <plat/pcie.h>
 #include <plat/addr-map.h>
+#include <mach/orion5x.h>
 #include "common.h"
 
 /*****************************************************************************
index c9abb8fbfa70462dfce29e7452cacd04a03073c1..7189827d641d09a0222ec90480c115227d123fc8 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/mv643xx_eth.h>
 #include <linux/timex.h>
 #include <linux/serial_reg.h>
+#include <mach/orion5x.h>
 #include "tsx09-common.h"
 #include "common.h"