diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2010-03-19 03:05:10 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-03-19 03:05:10 -0400 |
commit | b4b7a4ef097f288f724420b473dbf92a89c0ab7e (patch) | |
tree | 23ad8101e3e77c32a8d1e1b95a9c1cd7f7a475b7 /arch/arm/mach-mx2/clock_imx27.c | |
parent | e9ce335df51ff782035a15c261a3c0c9892a1767 (diff) | |
parent | a3d3203e4bb40f253b1541e310dc0f9305be7c84 (diff) |
Merge branch 'master' into for-linus
Conflicts:
block/Kconfig
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'arch/arm/mach-mx2/clock_imx27.c')
-rw-r--r-- | arch/arm/mach-mx2/clock_imx27.c | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/arch/arm/mach-mx2/clock_imx27.c b/arch/arm/mach-mx2/clock_imx27.c index 18c53a6487fa..0f0823c8b170 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) (MX27_IO_ADDRESS(MX27_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) |
@@ -753,7 +755,8 @@ int __init mx27_clocks_init(unsigned long fref) | |||
753 | clk_enable(&uart1_clk); | 755 | clk_enable(&uart1_clk); |
754 | #endif | 756 | #endif |
755 | 757 | ||
756 | mxc_timer_init(&gpt1_clk, IO_ADDRESS(GPT1_BASE_ADDR), MXC_INT_GPT1); | 758 | mxc_timer_init(&gpt1_clk, MX27_IO_ADDRESS(MX27_GPT1_BASE_ADDR), |
759 | MX27_INT_GPT1); | ||
757 | 760 | ||
758 | return 0; | 761 | return 0; |
759 | } | 762 | } |