Commit 5e5661a8 authored by Chao Xie's avatar Chao Xie Committed by Haojian Zhuang

ARM: mmp: move XX_REG definition to addr-map.h

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: default avatarChao Xie <chao.xie@marvell.com>
Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@gmail.com>
parent ace1297f
...@@ -31,4 +31,16 @@ ...@@ -31,4 +31,16 @@
#define SMC_CS1_PHYS_BASE 0x90000000 #define SMC_CS1_PHYS_BASE 0x90000000
#define SMC_CS1_PHYS_SIZE 0x10000000 #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 */ #endif /* __ASM_MACH_ADDR_MAP_H */
...@@ -13,9 +13,6 @@ ...@@ -13,9 +13,6 @@
#include <mach/addr-map.h> #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 * APB clock register offsets for PXA168
*/ */
......
...@@ -13,9 +13,6 @@ ...@@ -13,9 +13,6 @@
#include <mach/addr-map.h> #include <mach/addr-map.h>
#define APMU_VIRT_BASE (AXI_VIRT_BASE + 0x82800)
#define APMU_REG(x) (APMU_VIRT_BASE + (x))
/* Clock Reset Control */ /* Clock Reset Control */
#define APMU_IRE APMU_REG(0x048) #define APMU_IRE APMU_REG(0x048)
#define APMU_LCD APMU_REG(0x04c) #define APMU_LCD APMU_REG(0x04c)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment