aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx2/clock_imx21.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-mx2/clock_imx21.c')
-rw-r--r--arch/arm/mach-mx2/clock_imx21.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/arch/arm/mach-mx2/clock_imx21.c b/arch/arm/mach-mx2/clock_imx21.c
index df3ad3836576..1922e531ba46 100644
--- a/arch/arm/mach-mx2/clock_imx21.c
+++ b/arch/arm/mach-mx2/clock_imx21.c
@@ -28,21 +28,23 @@
28#include <asm/clkdev.h> 28#include <asm/clkdev.h>
29#include <asm/div64.h> 29#include <asm/div64.h>
30 30
31#define IO_ADDR_CCM(off) (IO_ADDRESS(CCM_BASE_ADDR) + (off))
32
31/* Register offsets */ 33/* Register offsets */
32#define CCM_CSCR (IO_ADDRESS(CCM_BASE_ADDR) + 0x0) 34#define CCM_CSCR IO_ADDR_CCM(0x0)
33#define CCM_MPCTL0 (IO_ADDRESS(CCM_BASE_ADDR) + 0x4) 35#define CCM_MPCTL0 IO_ADDR_CCM(0x4)
34#define CCM_MPCTL1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x8) 36#define CCM_MPCTL1 IO_ADDR_CCM(0x8)
35#define CCM_SPCTL0 (IO_ADDRESS(CCM_BASE_ADDR) + 0xC) 37#define CCM_SPCTL0 IO_ADDR_CCM(0xc)
36#define CCM_SPCTL1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x10) 38#define CCM_SPCTL1 IO_ADDR_CCM(0x10)
37#define CCM_OSC26MCTL (IO_ADDRESS(CCM_BASE_ADDR) + 0x14) 39#define CCM_OSC26MCTL IO_ADDR_CCM(0x14)
38#define CCM_PCDR0 (IO_ADDRESS(CCM_BASE_ADDR) + 0x18) 40#define CCM_PCDR0 IO_ADDR_CCM(0x18)
39#define CCM_PCDR1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x1c) 41#define CCM_PCDR1 IO_ADDR_CCM(0x1c)
40#define CCM_PCCR0 (IO_ADDRESS(CCM_BASE_ADDR) + 0x20) 42#define CCM_PCCR0 IO_ADDR_CCM(0x20)
41#define CCM_PCCR1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x24) 43#define CCM_PCCR1 IO_ADDR_CCM(0x24)
42#define CCM_CCSR (IO_ADDRESS(CCM_BASE_ADDR) + 0x28) 44#define CCM_CCSR IO_ADDR_CCM(0x28)
43#define CCM_PMCTL (IO_ADDRESS(CCM_BASE_ADDR) + 0x2c) 45#define CCM_PMCTL IO_ADDR_CCM(0x2c)
44#define CCM_PMCOUNT (IO_ADDRESS(CCM_BASE_ADDR) + 0x30) 46#define CCM_PMCOUNT IO_ADDR_CCM(0x30)
45#define CCM_WKGDCTL (IO_ADDRESS(CCM_BASE_ADDR) + 0x34) 47#define CCM_WKGDCTL IO_ADDR_CCM(0x34)
46 48
47#define CCM_CSCR_PRESC_OFFSET 29 49#define CCM_CSCR_PRESC_OFFSET 29
48#define CCM_CSCR_PRESC_MASK (0x7 << CCM_CSCR_PRESC_OFFSET) 50#define CCM_CSCR_PRESC_MASK (0x7 << CCM_CSCR_PRESC_OFFSET)