1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef __ARCH_ASM_MACH_OMAP2_CM3XXX_H
14 #define __ARCH_ASM_MACH_OMAP2_CM3XXX_H
15
16 #include "prcm-common.h"
17 #include "cm2xxx_3xxx.h"
18
19 #define OMAP34XX_CM_REGADDR(module, reg) \
20 OMAP2_L4_IO_ADDRESS(OMAP3430_CM_BASE + (module) + (reg))
21
22
23
24
25
26
27
28
29 #define OMAP3430_CM_SYSCONFIG 0x0010
30 #define OMAP3430_CM_POLCTRL 0x009c
31
32 #define OMAP3_CM_CLKOUT_CTRL_OFFSET 0x0070
33 #define OMAP3430_CM_CLKOUT_CTRL OMAP_CM_REGADDR(OMAP3430_CCR_MOD, 0x0070)
34
35
36
37
38
39
40
41
42
43 #define OMAP3430_CM_CLKEN_PLL 0x0004
44 #define OMAP3430ES2_CM_CLKEN2 0x0004
45 #define OMAP3430ES2_CM_FCLKEN3 0x0008
46 #define OMAP3430_CM_IDLEST_PLL CM_IDLEST2
47 #define OMAP3430_CM_AUTOIDLE_PLL CM_AUTOIDLE2
48 #define OMAP3430ES2_CM_AUTOIDLE2_PLL CM_AUTOIDLE2
49 #define OMAP3430_CM_CLKSEL1 CM_CLKSEL
50 #define OMAP3430_CM_CLKSEL1_PLL CM_CLKSEL
51 #define OMAP3430_CM_CLKSEL2_PLL CM_CLKSEL2
52 #define OMAP3430_CM_SLEEPDEP CM_CLKSEL2
53 #define OMAP3430_CM_CLKSEL3 OMAP2_CM_CLKSTCTRL
54 #define OMAP3430_CM_CLKSTST 0x004c
55 #define OMAP3430ES2_CM_CLKSEL4 0x004c
56 #define OMAP3430ES2_CM_CLKSEL5 0x0050
57 #define OMAP3430_CM_CLKSEL2_EMU 0x0050
58 #define OMAP3430_CM_CLKSEL3_EMU 0x0054
59
60
61
62
63 #define OMAP34XX_CM_IDLEST_VAL 1
64
65
66 #ifndef __ASSEMBLER__
67
68 extern void omap3_cm_save_context(void);
69 extern void omap3_cm_restore_context(void);
70 extern void omap3_cm_save_scratchpad_contents(u32 *ptr);
71
72 int __init omap3xxx_cm_init(const struct omap_prcm_init_data *data);
73
74 #endif
75
76 #endif