diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/cm2xxx.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cm2xxx.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cm33xx.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cm33xx.h | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cm3xxx.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cm3xxx.h | 7 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cminst44xx.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cminst44xx.h | 5 |
8 files changed, 18 insertions, 39 deletions
diff --git a/arch/arm/mach-omap2/cm2xxx.c b/arch/arm/mach-omap2/cm2xxx.c index f913efb6e9ba..365df9e32d1c 100644 --- a/arch/arm/mach-omap2/cm2xxx.c +++ b/arch/arm/mach-omap2/cm2xxx.c | |||
@@ -53,7 +53,7 @@ static void _write_clktrctrl(u8 c, s16 module, u32 mask) | |||
53 | omap2_cm_write_mod_reg(v, module, OMAP2_CM_CLKSTCTRL); | 53 | omap2_cm_write_mod_reg(v, module, OMAP2_CM_CLKSTCTRL); |
54 | } | 54 | } |
55 | 55 | ||
56 | bool omap2xxx_cm_is_clkdm_in_hwsup(s16 module, u32 mask) | 56 | static bool omap2xxx_cm_is_clkdm_in_hwsup(s16 module, u32 mask) |
57 | { | 57 | { |
58 | u32 v; | 58 | u32 v; |
59 | 59 | ||
@@ -64,12 +64,12 @@ bool omap2xxx_cm_is_clkdm_in_hwsup(s16 module, u32 mask) | |||
64 | return (v == OMAP24XX_CLKSTCTRL_ENABLE_AUTO) ? 1 : 0; | 64 | return (v == OMAP24XX_CLKSTCTRL_ENABLE_AUTO) ? 1 : 0; |
65 | } | 65 | } |
66 | 66 | ||
67 | void omap2xxx_cm_clkdm_enable_hwsup(s16 module, u32 mask) | 67 | static void omap2xxx_cm_clkdm_enable_hwsup(s16 module, u32 mask) |
68 | { | 68 | { |
69 | _write_clktrctrl(OMAP24XX_CLKSTCTRL_ENABLE_AUTO, module, mask); | 69 | _write_clktrctrl(OMAP24XX_CLKSTCTRL_ENABLE_AUTO, module, mask); |
70 | } | 70 | } |
71 | 71 | ||
72 | void omap2xxx_cm_clkdm_disable_hwsup(s16 module, u32 mask) | 72 | static void omap2xxx_cm_clkdm_disable_hwsup(s16 module, u32 mask) |
73 | { | 73 | { |
74 | _write_clktrctrl(OMAP24XX_CLKSTCTRL_DISABLE_AUTO, module, mask); | 74 | _write_clktrctrl(OMAP24XX_CLKSTCTRL_DISABLE_AUTO, module, mask); |
75 | } | 75 | } |
diff --git a/arch/arm/mach-omap2/cm2xxx.h b/arch/arm/mach-omap2/cm2xxx.h index 2526a8fd3d10..a14094bbed1a 100644 --- a/arch/arm/mach-omap2/cm2xxx.h +++ b/arch/arm/mach-omap2/cm2xxx.h | |||
@@ -46,9 +46,6 @@ | |||
46 | 46 | ||
47 | #ifndef __ASSEMBLER__ | 47 | #ifndef __ASSEMBLER__ |
48 | 48 | ||
49 | extern void omap2xxx_cm_clkdm_enable_hwsup(s16 module, u32 mask); | ||
50 | extern void omap2xxx_cm_clkdm_disable_hwsup(s16 module, u32 mask); | ||
51 | |||
52 | extern void omap2xxx_cm_set_dpll_disable_autoidle(void); | 49 | extern void omap2xxx_cm_set_dpll_disable_autoidle(void); |
53 | extern void omap2xxx_cm_set_dpll_auto_low_power_stop(void); | 50 | extern void omap2xxx_cm_set_dpll_auto_low_power_stop(void); |
54 | 51 | ||
@@ -57,7 +54,6 @@ extern void omap2xxx_cm_set_apll54_auto_low_power_stop(void); | |||
57 | extern void omap2xxx_cm_set_apll96_disable_autoidle(void); | 54 | extern void omap2xxx_cm_set_apll96_disable_autoidle(void); |
58 | extern void omap2xxx_cm_set_apll96_auto_low_power_stop(void); | 55 | extern void omap2xxx_cm_set_apll96_auto_low_power_stop(void); |
59 | 56 | ||
60 | extern bool omap2xxx_cm_is_clkdm_in_hwsup(s16 module, u32 mask); | ||
61 | int omap2xxx_cm_wait_module_ready(u8 part, s16 prcm_mod, u16 idlest_id, | 57 | int omap2xxx_cm_wait_module_ready(u8 part, s16 prcm_mod, u16 idlest_id, |
62 | u8 idlest_shift); | 58 | u8 idlest_shift); |
63 | extern int omap2xxx_cm_split_idlest_reg(void __iomem *idlest_reg, | 59 | extern int omap2xxx_cm_split_idlest_reg(void __iomem *idlest_reg, |
diff --git a/arch/arm/mach-omap2/cm33xx.c b/arch/arm/mach-omap2/cm33xx.c index d57fa5fe9e51..ffdcb7abf092 100644 --- a/arch/arm/mach-omap2/cm33xx.c +++ b/arch/arm/mach-omap2/cm33xx.c | |||
@@ -156,7 +156,7 @@ static void _clktrctrl_write(u8 c, u16 inst, u16 cdoffs) | |||
156 | * Returns true if the clockdomain referred to by (@inst, @cdoffs) | 156 | * Returns true if the clockdomain referred to by (@inst, @cdoffs) |
157 | * is in hardware-supervised idle mode, or 0 otherwise. | 157 | * is in hardware-supervised idle mode, or 0 otherwise. |
158 | */ | 158 | */ |
159 | bool am33xx_cm_is_clkdm_in_hwsup(u16 inst, u16 cdoffs) | 159 | static bool am33xx_cm_is_clkdm_in_hwsup(u16 inst, u16 cdoffs) |
160 | { | 160 | { |
161 | u32 v; | 161 | u32 v; |
162 | 162 | ||
@@ -175,7 +175,7 @@ bool am33xx_cm_is_clkdm_in_hwsup(u16 inst, u16 cdoffs) | |||
175 | * Put a clockdomain referred to by (@inst, @cdoffs) into | 175 | * Put a clockdomain referred to by (@inst, @cdoffs) into |
176 | * hardware-supervised idle mode. No return value. | 176 | * hardware-supervised idle mode. No return value. |
177 | */ | 177 | */ |
178 | void am33xx_cm_clkdm_enable_hwsup(u16 inst, u16 cdoffs) | 178 | static void am33xx_cm_clkdm_enable_hwsup(u16 inst, u16 cdoffs) |
179 | { | 179 | { |
180 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_ENABLE_AUTO, inst, cdoffs); | 180 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_ENABLE_AUTO, inst, cdoffs); |
181 | } | 181 | } |
@@ -189,7 +189,7 @@ void am33xx_cm_clkdm_enable_hwsup(u16 inst, u16 cdoffs) | |||
189 | * software-supervised idle mode, i.e., controlled manually by the | 189 | * software-supervised idle mode, i.e., controlled manually by the |
190 | * Linux OMAP clockdomain code. No return value. | 190 | * Linux OMAP clockdomain code. No return value. |
191 | */ | 191 | */ |
192 | void am33xx_cm_clkdm_disable_hwsup(u16 inst, u16 cdoffs) | 192 | static void am33xx_cm_clkdm_disable_hwsup(u16 inst, u16 cdoffs) |
193 | { | 193 | { |
194 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_DISABLE_AUTO, inst, cdoffs); | 194 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_DISABLE_AUTO, inst, cdoffs); |
195 | } | 195 | } |
@@ -202,7 +202,7 @@ void am33xx_cm_clkdm_disable_hwsup(u16 inst, u16 cdoffs) | |||
202 | * Put a clockdomain referred to by (@inst, @cdoffs) into idle | 202 | * Put a clockdomain referred to by (@inst, @cdoffs) into idle |
203 | * No return value. | 203 | * No return value. |
204 | */ | 204 | */ |
205 | void am33xx_cm_clkdm_force_sleep(u16 inst, u16 cdoffs) | 205 | static void am33xx_cm_clkdm_force_sleep(u16 inst, u16 cdoffs) |
206 | { | 206 | { |
207 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_FORCE_SLEEP, inst, cdoffs); | 207 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_FORCE_SLEEP, inst, cdoffs); |
208 | } | 208 | } |
@@ -215,7 +215,7 @@ void am33xx_cm_clkdm_force_sleep(u16 inst, u16 cdoffs) | |||
215 | * Take a clockdomain referred to by (@inst, @cdoffs) out of idle, | 215 | * Take a clockdomain referred to by (@inst, @cdoffs) out of idle, |
216 | * waking it up. No return value. | 216 | * waking it up. No return value. |
217 | */ | 217 | */ |
218 | void am33xx_cm_clkdm_force_wakeup(u16 inst, u16 cdoffs) | 218 | static void am33xx_cm_clkdm_force_wakeup(u16 inst, u16 cdoffs) |
219 | { | 219 | { |
220 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_FORCE_WAKEUP, inst, cdoffs); | 220 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_FORCE_WAKEUP, inst, cdoffs); |
221 | } | 221 | } |
diff --git a/arch/arm/mach-omap2/cm33xx.h b/arch/arm/mach-omap2/cm33xx.h index a0daea84fbe9..78a61e5d80e2 100644 --- a/arch/arm/mach-omap2/cm33xx.h +++ b/arch/arm/mach-omap2/cm33xx.h | |||
@@ -374,11 +374,6 @@ | |||
374 | 374 | ||
375 | 375 | ||
376 | #ifndef __ASSEMBLER__ | 376 | #ifndef __ASSEMBLER__ |
377 | bool am33xx_cm_is_clkdm_in_hwsup(u16 inst, u16 cdoffs); | ||
378 | void am33xx_cm_clkdm_enable_hwsup(u16 inst, u16 cdoffs); | ||
379 | void am33xx_cm_clkdm_disable_hwsup(u16 inst, u16 cdoffs); | ||
380 | void am33xx_cm_clkdm_force_sleep(u16 inst, u16 cdoffs); | ||
381 | void am33xx_cm_clkdm_force_wakeup(u16 inst, u16 cdoffs); | ||
382 | int am33xx_cm_init(void); | 377 | int am33xx_cm_init(void); |
383 | 378 | ||
384 | #if defined(CONFIG_SOC_AM33XX) || defined(CONFIG_SOC_AM43XX) | 379 | #if defined(CONFIG_SOC_AM33XX) || defined(CONFIG_SOC_AM43XX) |
diff --git a/arch/arm/mach-omap2/cm3xxx.c b/arch/arm/mach-omap2/cm3xxx.c index 6a3c01e16274..018063b96cbc 100644 --- a/arch/arm/mach-omap2/cm3xxx.c +++ b/arch/arm/mach-omap2/cm3xxx.c | |||
@@ -42,7 +42,7 @@ static void _write_clktrctrl(u8 c, s16 module, u32 mask) | |||
42 | omap2_cm_write_mod_reg(v, module, OMAP2_CM_CLKSTCTRL); | 42 | omap2_cm_write_mod_reg(v, module, OMAP2_CM_CLKSTCTRL); |
43 | } | 43 | } |
44 | 44 | ||
45 | bool omap3xxx_cm_is_clkdm_in_hwsup(s16 module, u32 mask) | 45 | static bool omap3xxx_cm_is_clkdm_in_hwsup(s16 module, u32 mask) |
46 | { | 46 | { |
47 | u32 v; | 47 | u32 v; |
48 | 48 | ||
@@ -53,22 +53,22 @@ bool omap3xxx_cm_is_clkdm_in_hwsup(s16 module, u32 mask) | |||
53 | return (v == OMAP34XX_CLKSTCTRL_ENABLE_AUTO) ? 1 : 0; | 53 | return (v == OMAP34XX_CLKSTCTRL_ENABLE_AUTO) ? 1 : 0; |
54 | } | 54 | } |
55 | 55 | ||
56 | void omap3xxx_cm_clkdm_enable_hwsup(s16 module, u32 mask) | 56 | static void omap3xxx_cm_clkdm_enable_hwsup(s16 module, u32 mask) |
57 | { | 57 | { |
58 | _write_clktrctrl(OMAP34XX_CLKSTCTRL_ENABLE_AUTO, module, mask); | 58 | _write_clktrctrl(OMAP34XX_CLKSTCTRL_ENABLE_AUTO, module, mask); |
59 | } | 59 | } |
60 | 60 | ||
61 | void omap3xxx_cm_clkdm_disable_hwsup(s16 module, u32 mask) | 61 | static void omap3xxx_cm_clkdm_disable_hwsup(s16 module, u32 mask) |
62 | { | 62 | { |
63 | _write_clktrctrl(OMAP34XX_CLKSTCTRL_DISABLE_AUTO, module, mask); | 63 | _write_clktrctrl(OMAP34XX_CLKSTCTRL_DISABLE_AUTO, module, mask); |
64 | } | 64 | } |
65 | 65 | ||
66 | void omap3xxx_cm_clkdm_force_sleep(s16 module, u32 mask) | 66 | static void omap3xxx_cm_clkdm_force_sleep(s16 module, u32 mask) |
67 | { | 67 | { |
68 | _write_clktrctrl(OMAP34XX_CLKSTCTRL_FORCE_SLEEP, module, mask); | 68 | _write_clktrctrl(OMAP34XX_CLKSTCTRL_FORCE_SLEEP, module, mask); |
69 | } | 69 | } |
70 | 70 | ||
71 | void omap3xxx_cm_clkdm_force_wakeup(s16 module, u32 mask) | 71 | static void omap3xxx_cm_clkdm_force_wakeup(s16 module, u32 mask) |
72 | { | 72 | { |
73 | _write_clktrctrl(OMAP34XX_CLKSTCTRL_FORCE_WAKEUP, module, mask); | 73 | _write_clktrctrl(OMAP34XX_CLKSTCTRL_FORCE_WAKEUP, module, mask); |
74 | } | 74 | } |
diff --git a/arch/arm/mach-omap2/cm3xxx.h b/arch/arm/mach-omap2/cm3xxx.h index 55faf0e149a2..33491c746b4c 100644 --- a/arch/arm/mach-omap2/cm3xxx.h +++ b/arch/arm/mach-omap2/cm3xxx.h | |||
@@ -68,13 +68,6 @@ | |||
68 | 68 | ||
69 | #ifndef __ASSEMBLER__ | 69 | #ifndef __ASSEMBLER__ |
70 | 70 | ||
71 | extern void omap3xxx_cm_clkdm_enable_hwsup(s16 module, u32 mask); | ||
72 | extern void omap3xxx_cm_clkdm_disable_hwsup(s16 module, u32 mask); | ||
73 | extern void omap3xxx_cm_clkdm_force_sleep(s16 module, u32 mask); | ||
74 | extern void omap3xxx_cm_clkdm_force_wakeup(s16 module, u32 mask); | ||
75 | |||
76 | extern bool omap3xxx_cm_is_clkdm_in_hwsup(s16 module, u32 mask); | ||
77 | |||
78 | extern int omap3xxx_cm_split_idlest_reg(void __iomem *idlest_reg, | 71 | extern int omap3xxx_cm_split_idlest_reg(void __iomem *idlest_reg, |
79 | s16 *prcm_inst, u8 *idlest_reg_id); | 72 | s16 *prcm_inst, u8 *idlest_reg_id); |
80 | 73 | ||
diff --git a/arch/arm/mach-omap2/cminst44xx.c b/arch/arm/mach-omap2/cminst44xx.c index 7ae1cc22eb5c..b189a2b46808 100644 --- a/arch/arm/mach-omap2/cminst44xx.c +++ b/arch/arm/mach-omap2/cminst44xx.c | |||
@@ -198,7 +198,7 @@ static void _clktrctrl_write(u8 c, u8 part, u16 inst, u16 cdoffs) | |||
198 | * Returns true if the clockdomain referred to by (@part, @inst, @cdoffs) | 198 | * Returns true if the clockdomain referred to by (@part, @inst, @cdoffs) |
199 | * is in hardware-supervised idle mode, or 0 otherwise. | 199 | * is in hardware-supervised idle mode, or 0 otherwise. |
200 | */ | 200 | */ |
201 | bool omap4_cminst_is_clkdm_in_hwsup(u8 part, u16 inst, u16 cdoffs) | 201 | static bool omap4_cminst_is_clkdm_in_hwsup(u8 part, u16 inst, u16 cdoffs) |
202 | { | 202 | { |
203 | u32 v; | 203 | u32 v; |
204 | 204 | ||
@@ -218,7 +218,7 @@ bool omap4_cminst_is_clkdm_in_hwsup(u8 part, u16 inst, u16 cdoffs) | |||
218 | * Put a clockdomain referred to by (@part, @inst, @cdoffs) into | 218 | * Put a clockdomain referred to by (@part, @inst, @cdoffs) into |
219 | * hardware-supervised idle mode. No return value. | 219 | * hardware-supervised idle mode. No return value. |
220 | */ | 220 | */ |
221 | void omap4_cminst_clkdm_enable_hwsup(u8 part, u16 inst, u16 cdoffs) | 221 | static void omap4_cminst_clkdm_enable_hwsup(u8 part, u16 inst, u16 cdoffs) |
222 | { | 222 | { |
223 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_ENABLE_AUTO, part, inst, cdoffs); | 223 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_ENABLE_AUTO, part, inst, cdoffs); |
224 | } | 224 | } |
@@ -233,7 +233,7 @@ void omap4_cminst_clkdm_enable_hwsup(u8 part, u16 inst, u16 cdoffs) | |||
233 | * software-supervised idle mode, i.e., controlled manually by the | 233 | * software-supervised idle mode, i.e., controlled manually by the |
234 | * Linux OMAP clockdomain code. No return value. | 234 | * Linux OMAP clockdomain code. No return value. |
235 | */ | 235 | */ |
236 | void omap4_cminst_clkdm_disable_hwsup(u8 part, u16 inst, u16 cdoffs) | 236 | static void omap4_cminst_clkdm_disable_hwsup(u8 part, u16 inst, u16 cdoffs) |
237 | { | 237 | { |
238 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_DISABLE_AUTO, part, inst, cdoffs); | 238 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_DISABLE_AUTO, part, inst, cdoffs); |
239 | } | 239 | } |
@@ -247,7 +247,7 @@ void omap4_cminst_clkdm_disable_hwsup(u8 part, u16 inst, u16 cdoffs) | |||
247 | * Take a clockdomain referred to by (@part, @inst, @cdoffs) out of idle, | 247 | * Take a clockdomain referred to by (@part, @inst, @cdoffs) out of idle, |
248 | * waking it up. No return value. | 248 | * waking it up. No return value. |
249 | */ | 249 | */ |
250 | void omap4_cminst_clkdm_force_wakeup(u8 part, u16 inst, u16 cdoffs) | 250 | static void omap4_cminst_clkdm_force_wakeup(u8 part, u16 inst, u16 cdoffs) |
251 | { | 251 | { |
252 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_FORCE_WAKEUP, part, inst, cdoffs); | 252 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_FORCE_WAKEUP, part, inst, cdoffs); |
253 | } | 253 | } |
@@ -256,7 +256,7 @@ void omap4_cminst_clkdm_force_wakeup(u8 part, u16 inst, u16 cdoffs) | |||
256 | * | 256 | * |
257 | */ | 257 | */ |
258 | 258 | ||
259 | void omap4_cminst_clkdm_force_sleep(u8 part, u16 inst, u16 cdoffs) | 259 | static void omap4_cminst_clkdm_force_sleep(u8 part, u16 inst, u16 cdoffs) |
260 | { | 260 | { |
261 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_FORCE_SLEEP, part, inst, cdoffs); | 261 | _clktrctrl_write(OMAP34XX_CLKSTCTRL_FORCE_SLEEP, part, inst, cdoffs); |
262 | } | 262 | } |
diff --git a/arch/arm/mach-omap2/cminst44xx.h b/arch/arm/mach-omap2/cminst44xx.h index 9a223ddc9467..d6634fada357 100644 --- a/arch/arm/mach-omap2/cminst44xx.h +++ b/arch/arm/mach-omap2/cminst44xx.h | |||
@@ -11,11 +11,6 @@ | |||
11 | #ifndef __ARCH_ASM_MACH_OMAP2_CMINST44XX_H | 11 | #ifndef __ARCH_ASM_MACH_OMAP2_CMINST44XX_H |
12 | #define __ARCH_ASM_MACH_OMAP2_CMINST44XX_H | 12 | #define __ARCH_ASM_MACH_OMAP2_CMINST44XX_H |
13 | 13 | ||
14 | bool omap4_cminst_is_clkdm_in_hwsup(u8 part, u16 inst, u16 cdoffs); | ||
15 | void omap4_cminst_clkdm_enable_hwsup(u8 part, u16 inst, u16 cdoffs); | ||
16 | void omap4_cminst_clkdm_disable_hwsup(u8 part, u16 inst, u16 cdoffs); | ||
17 | void omap4_cminst_clkdm_force_sleep(u8 part, u16 inst, u16 cdoffs); | ||
18 | void omap4_cminst_clkdm_force_wakeup(u8 part, u16 inst, u16 cdoffs); | ||
19 | extern void omap4_cminst_module_enable(u8 mode, u8 part, u16 inst, s16 cdoffs, | 14 | extern void omap4_cminst_module_enable(u8 mode, u8 part, u16 inst, s16 cdoffs, |
20 | u16 clkctrl_offs); | 15 | u16 clkctrl_offs); |
21 | extern void omap4_cminst_module_disable(u8 part, u16 inst, s16 cdoffs, | 16 | extern void omap4_cminst_module_disable(u8 part, u16 inst, s16 cdoffs, |