Go to the documentation of this file.
16 #ifndef __ARCH_ASM_MACH_OMAP2_CM2XXX_3XXX_H
17 #define __ARCH_ASM_MACH_OMAP2_CM2XXX_3XXX_H
21 #define OMAP2420_CM_REGADDR(module, reg) \
22 OMAP2_L4_IO_ADDRESS(OMAP2420_CM_BASE + (module) + (reg))
23 #define OMAP2430_CM_REGADDR(module, reg) \
24 OMAP2_L4_IO_ADDRESS(OMAP2430_CM_BASE + (module) + (reg))
25 #define OMAP34XX_CM_REGADDR(module, reg) \
26 OMAP2_L4_IO_ADDRESS(OMAP3430_CM_BASE + (module) + (reg))
35 #define OMAP3430_CM_REVISION OMAP34XX_CM_REGADDR(OCP_MOD, 0x0000)
36 #define OMAP3430_CM_SYSCONFIG OMAP34XX_CM_REGADDR(OCP_MOD, 0x0010)
37 #define OMAP3430_CM_POLCTRL OMAP34XX_CM_REGADDR(OCP_MOD, 0x009c)
39 #define OMAP3_CM_CLKOUT_CTRL_OFFSET 0x0070
40 #define OMAP3430_CM_CLKOUT_CTRL OMAP_CM_REGADDR(OMAP3430_CCR_MOD, 0x0070)
50 #define CM_FCLKEN 0x0000
51 #define CM_FCLKEN1 CM_FCLKEN
52 #define CM_CLKEN CM_FCLKEN
53 #define CM_ICLKEN 0x0010
54 #define CM_ICLKEN1 CM_ICLKEN
55 #define CM_ICLKEN2 0x0014
56 #define CM_ICLKEN3 0x0018
57 #define CM_IDLEST 0x0020
58 #define CM_IDLEST1 CM_IDLEST
59 #define CM_IDLEST2 0x0024
60 #define CM_AUTOIDLE 0x0030
61 #define CM_AUTOIDLE1 CM_AUTOIDLE
62 #define CM_AUTOIDLE2 0x0034
63 #define CM_AUTOIDLE3 0x0038
64 #define CM_CLKSEL 0x0040
65 #define CM_CLKSEL1 CM_CLKSEL
66 #define CM_CLKSEL2 0x0044
67 #define OMAP2_CM_CLKSTCTRL 0x0048
71 #define OMAP24XX_CM_FCLKEN2 0x0004
72 #define OMAP24XX_CM_ICLKEN4 0x001c
73 #define OMAP24XX_CM_AUTOIDLE4 0x003c
74 #define OMAP24XX_CM_IDLEST4 0x002c
76 #define OMAP2430_CM_IDLEST3 0x0028
80 #define OMAP3430_CM_CLKEN_PLL 0x0004
81 #define OMAP3430ES2_CM_CLKEN2 0x0004
82 #define OMAP3430ES2_CM_FCLKEN3 0x0008
83 #define OMAP3430_CM_IDLEST_PLL CM_IDLEST2
84 #define OMAP3430_CM_AUTOIDLE_PLL CM_AUTOIDLE2
85 #define OMAP3430ES2_CM_AUTOIDLE2_PLL CM_AUTOIDLE2
86 #define OMAP3430_CM_CLKSEL1 CM_CLKSEL
87 #define OMAP3430_CM_CLKSEL1_PLL CM_CLKSEL
88 #define OMAP3430_CM_CLKSEL2_PLL CM_CLKSEL2
89 #define OMAP3430_CM_SLEEPDEP CM_CLKSEL2
90 #define OMAP3430_CM_CLKSEL3 OMAP2_CM_CLKSTCTRL
91 #define OMAP3430_CM_CLKSTST 0x004c
92 #define OMAP3430ES2_CM_CLKSEL4 0x004c
93 #define OMAP3430ES2_CM_CLKSEL5 0x0050
94 #define OMAP3430_CM_CLKSEL2_EMU 0x0050
95 #define OMAP3430_CM_CLKSEL3_EMU 0x0054
100 #define OMAP24XX_CM_IDLEST_VAL 0
101 #define OMAP34XX_CM_IDLEST_VAL 1
106 #ifndef __ASSEMBLER__
139 #define OMAP_CLKSEL_GFX_SHIFT 0
140 #define OMAP_CLKSEL_GFX_MASK (0x7 << 0)
143 #define OMAP_EN_GFX_SHIFT 0
144 #define OMAP_EN_GFX_MASK (1 << 0)
147 #define OMAP_ST_GFX_MASK (1 << 0)
151 # ifndef __ASSEMBLER__