]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: mmp: move XX_REG definition to addr-map.h
authorChao Xie <chao.xie@marvell.com>
Mon, 7 May 2012 03:22:22 +0000 (11:22 +0800)
committerHaojian Zhuang <haojian.zhuang@gmail.com>
Mon, 7 May 2012 03:34:38 +0000 (11:34 +0800)
Move APBC_REG, APMU_REG and CIU_REG definition to addr-map.h
driver only need include addr-map.h to get access of the
registers.

Signed-off-by: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
arch/arm/mach-mmp/include/mach/addr-map.h
arch/arm/mach-mmp/include/mach/regs-apbc.h
arch/arm/mach-mmp/include/mach/regs-apmu.h

index b1ece08174e8bde11d5b8c8f48ab69673c04d3ae..f88a44c0ef91f4fe12bb7947f3dfddac1ba6707a 100644 (file)
 #define SMC_CS1_PHYS_BASE      0x90000000
 #define SMC_CS1_PHYS_SIZE      0x10000000
 
+#define APMU_VIRT_BASE         (AXI_VIRT_BASE + 0x82800)
+#define APMU_REG(x)            (APMU_VIRT_BASE + (x))
+
+#define APBC_VIRT_BASE         (APB_VIRT_BASE + 0x015000)
+#define APBC_REG(x)            (APBC_VIRT_BASE + (x))
+
+#define MPMU_VIRT_BASE         (APB_VIRT_BASE + 0x50000)
+#define MPMU_REG(x)            (MPMU_VIRT_BASE + (x))
+
+#define CIU_VIRT_BASE          (AXI_VIRT_BASE + 0x82c00)
+#define CIU_REG(x)             (CIU_VIRT_BASE + (x))
+
 #endif /* __ASM_MACH_ADDR_MAP_H */
index 8a37fb003655846a8491ca1b1aef5d851c1c0d26..68b0c93ec6a14dfac444d74041d1537859e4c6e7 100644 (file)
@@ -13,9 +13,6 @@
 
 #include <mach/addr-map.h>
 
-#define APBC_VIRT_BASE (APB_VIRT_BASE + 0x015000)
-#define APBC_REG(x)    (APBC_VIRT_BASE + (x))
-
 /*
  * APB clock register offsets for PXA168
  */
index 8447ac63e28f343ce6a883ebb407d08b22cc6371..7af8deb63e83aa7d6b28ba59929ba7fc3491e352 100644 (file)
@@ -13,9 +13,6 @@
 
 #include <mach/addr-map.h>
 
-#define APMU_VIRT_BASE (AXI_VIRT_BASE + 0x82800)
-#define APMU_REG(x)    (APMU_VIRT_BASE + (x))
-
 /* Clock Reset Control */
 #define APMU_IRE       APMU_REG(0x048)
 #define APMU_LCD       APMU_REG(0x04c)