16 #ifndef __ARCH_ARM_MACH_OMAP2_CLOCK_H
17 #define __ARCH_ARM_MACH_OMAP2_CLOCK_H
19 #include <linux/kernel.h>
21 #include <plat/clock.h>
24 #define CORE_CLK_SRC_32K 0x0
25 #define CORE_CLK_SRC_DPLL 0x1
26 #define CORE_CLK_SRC_DPLL_X2 0x2
29 #define OMAP2XXX_EN_DPLL_LPBYPASS 0x1
30 #define OMAP2XXX_EN_DPLL_FRBYPASS 0x2
31 #define OMAP2XXX_EN_DPLL_LOCKED 0x3
34 #define OMAP3XXX_EN_DPLL_LPBYPASS 0x5
35 #define OMAP3XXX_EN_DPLL_FRBYPASS 0x6
36 #define OMAP3XXX_EN_DPLL_LOCKED 0x7
39 #define OMAP4XXX_EN_DPLL_MNBYPASS 0x4
40 #define OMAP4XXX_EN_DPLL_LPBYPASS 0x5
41 #define OMAP4XXX_EN_DPLL_FRBYPASS 0x6
42 #define OMAP4XXX_EN_DPLL_LOCKED 0x7
45 #define DPLL_LOW_POWER_STOP 0x1
46 #define DPLL_LOW_POWER_BYPASS 0x5
47 #define DPLL_LOCKED 0x7
50 #define DPLL_J_TYPE 0x1
72 #ifdef CONFIG_OMAP_RESET_CLOCKS
75 #define omap2_clk_disable_unused NULL
100 #ifdef CONFIG_ARCH_OMAP2
101 void omap2xxx_clk_prepare_for_reboot(
void);
103 static inline void omap2xxx_clk_prepare_for_reboot(
void)
108 #ifdef CONFIG_ARCH_OMAP3
109 void omap3_clk_prepare_for_reboot(
void);
111 static inline void omap3_clk_prepare_for_reboot(
void)
116 #ifdef CONFIG_ARCH_OMAP4
117 void omap4_clk_prepare_for_reboot(
void);
119 static inline void omap4_clk_prepare_for_reboot(
void)
129 u8 *idlest_bit,
u8 *idlest_val);
132 const char *core_ck_name,
133 const char *mpu_ck_name);