diff options
-rw-r--r-- | arch/arm/mach-mx2/clock_imx27.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/arch/arm/mach-mx2/clock_imx27.c b/arch/arm/mach-mx2/clock_imx27.c index b010bf9ceaab..a53320860986 100644 --- a/arch/arm/mach-mx2/clock_imx27.c +++ b/arch/arm/mach-mx2/clock_imx27.c | |||
@@ -29,21 +29,23 @@ | |||
29 | #include <mach/common.h> | 29 | #include <mach/common.h> |
30 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
31 | 31 | ||
32 | #define IO_ADDR_CCM(off) (IO_ADDRESS(CCM_BASE_ADDR) + (off)) | ||
33 | |||
32 | /* Register offsets */ | 34 | /* Register offsets */ |
33 | #define CCM_CSCR (IO_ADDRESS(CCM_BASE_ADDR) + 0x0) | 35 | #define CCM_CSCR IO_ADDR_CCM(0x0) |
34 | #define CCM_MPCTL0 (IO_ADDRESS(CCM_BASE_ADDR) + 0x4) | 36 | #define CCM_MPCTL0 IO_ADDR_CCM(0x4) |
35 | #define CCM_MPCTL1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x8) | 37 | #define CCM_MPCTL1 IO_ADDR_CCM(0x8) |
36 | #define CCM_SPCTL0 (IO_ADDRESS(CCM_BASE_ADDR) + 0xC) | 38 | #define CCM_SPCTL0 IO_ADDR_CCM(0xc) |
37 | #define CCM_SPCTL1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x10) | 39 | #define CCM_SPCTL1 IO_ADDR_CCM(0x10) |
38 | #define CCM_OSC26MCTL (IO_ADDRESS(CCM_BASE_ADDR) + 0x14) | 40 | #define CCM_OSC26MCTL IO_ADDR_CCM(0x14) |
39 | #define CCM_PCDR0 (IO_ADDRESS(CCM_BASE_ADDR) + 0x18) | 41 | #define CCM_PCDR0 IO_ADDR_CCM(0x18) |
40 | #define CCM_PCDR1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x1c) | 42 | #define CCM_PCDR1 IO_ADDR_CCM(0x1c) |
41 | #define CCM_PCCR0 (IO_ADDRESS(CCM_BASE_ADDR) + 0x20) | 43 | #define CCM_PCCR0 IO_ADDR_CCM(0x20) |
42 | #define CCM_PCCR1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x24) | 44 | #define CCM_PCCR1 IO_ADDR_CCM(0x24) |
43 | #define CCM_CCSR (IO_ADDRESS(CCM_BASE_ADDR) + 0x28) | 45 | #define CCM_CCSR IO_ADDR_CCM(0x28) |
44 | #define CCM_PMCTL (IO_ADDRESS(CCM_BASE_ADDR) + 0x2c) | 46 | #define CCM_PMCTL IO_ADDR_CCM(0x2c) |
45 | #define CCM_PMCOUNT (IO_ADDRESS(CCM_BASE_ADDR) + 0x30) | 47 | #define CCM_PMCOUNT IO_ADDR_CCM(0x30) |
46 | #define CCM_WKGDCTL (IO_ADDRESS(CCM_BASE_ADDR) + 0x34) | 48 | #define CCM_WKGDCTL IO_ADDR_CCM(0x34) |
47 | 49 | ||
48 | #define CCM_CSCR_UPDATE_DIS (1 << 31) | 50 | #define CCM_CSCR_UPDATE_DIS (1 << 31) |
49 | #define CCM_CSCR_SSI2 (1 << 23) | 51 | #define CCM_CSCR_SSI2 (1 << 23) |