diff options
author | Chao Xie <chao.xie@marvell.com> | 2012-05-06 23:22:22 -0400 |
---|---|---|
committer | Haojian Zhuang <haojian.zhuang@gmail.com> | 2012-05-06 23:34:38 -0400 |
commit | 5e5661a872600cb4b12d5292160608fb232efdcd (patch) | |
tree | 4d00e142962c7a330448f59b5fbe507faeb15f3f /arch/arm/mach-mmp | |
parent | ace1297f7222ec5d6a33f41e792a21e999551924 (diff) |
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: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Diffstat (limited to 'arch/arm/mach-mmp')
-rw-r--r-- | arch/arm/mach-mmp/include/mach/addr-map.h | 12 | ||||
-rw-r--r-- | arch/arm/mach-mmp/include/mach/regs-apbc.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-mmp/include/mach/regs-apmu.h | 3 |
3 files changed, 12 insertions, 6 deletions
diff --git a/arch/arm/mach-mmp/include/mach/addr-map.h b/arch/arm/mach-mmp/include/mach/addr-map.h index b1ece08174e8..f88a44c0ef91 100644 --- a/arch/arm/mach-mmp/include/mach/addr-map.h +++ b/arch/arm/mach-mmp/include/mach/addr-map.h | |||
@@ -31,4 +31,16 @@ | |||
31 | #define SMC_CS1_PHYS_BASE 0x90000000 | 31 | #define SMC_CS1_PHYS_BASE 0x90000000 |
32 | #define SMC_CS1_PHYS_SIZE 0x10000000 | 32 | #define SMC_CS1_PHYS_SIZE 0x10000000 |
33 | 33 | ||
34 | #define APMU_VIRT_BASE (AXI_VIRT_BASE + 0x82800) | ||
35 | #define APMU_REG(x) (APMU_VIRT_BASE + (x)) | ||
36 | |||
37 | #define APBC_VIRT_BASE (APB_VIRT_BASE + 0x015000) | ||
38 | #define APBC_REG(x) (APBC_VIRT_BASE + (x)) | ||
39 | |||
40 | #define MPMU_VIRT_BASE (APB_VIRT_BASE + 0x50000) | ||
41 | #define MPMU_REG(x) (MPMU_VIRT_BASE + (x)) | ||
42 | |||
43 | #define CIU_VIRT_BASE (AXI_VIRT_BASE + 0x82c00) | ||
44 | #define CIU_REG(x) (CIU_VIRT_BASE + (x)) | ||
45 | |||
34 | #endif /* __ASM_MACH_ADDR_MAP_H */ | 46 | #endif /* __ASM_MACH_ADDR_MAP_H */ |
diff --git a/arch/arm/mach-mmp/include/mach/regs-apbc.h b/arch/arm/mach-mmp/include/mach/regs-apbc.h index 8a37fb003655..68b0c93ec6a1 100644 --- a/arch/arm/mach-mmp/include/mach/regs-apbc.h +++ b/arch/arm/mach-mmp/include/mach/regs-apbc.h | |||
@@ -13,9 +13,6 @@ | |||
13 | 13 | ||
14 | #include <mach/addr-map.h> | 14 | #include <mach/addr-map.h> |
15 | 15 | ||
16 | #define APBC_VIRT_BASE (APB_VIRT_BASE + 0x015000) | ||
17 | #define APBC_REG(x) (APBC_VIRT_BASE + (x)) | ||
18 | |||
19 | /* | 16 | /* |
20 | * APB clock register offsets for PXA168 | 17 | * APB clock register offsets for PXA168 |
21 | */ | 18 | */ |
diff --git a/arch/arm/mach-mmp/include/mach/regs-apmu.h b/arch/arm/mach-mmp/include/mach/regs-apmu.h index 8447ac63e28f..7af8deb63e83 100644 --- a/arch/arm/mach-mmp/include/mach/regs-apmu.h +++ b/arch/arm/mach-mmp/include/mach/regs-apmu.h | |||
@@ -13,9 +13,6 @@ | |||
13 | 13 | ||
14 | #include <mach/addr-map.h> | 14 | #include <mach/addr-map.h> |
15 | 15 | ||
16 | #define APMU_VIRT_BASE (AXI_VIRT_BASE + 0x82800) | ||
17 | #define APMU_REG(x) (APMU_VIRT_BASE + (x)) | ||
18 | |||
19 | /* Clock Reset Control */ | 16 | /* Clock Reset Control */ |
20 | #define APMU_IRE APMU_REG(0x048) | 17 | #define APMU_IRE APMU_REG(0x048) |
21 | #define APMU_LCD APMU_REG(0x04c) | 18 | #define APMU_LCD APMU_REG(0x04c) |