aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2014-10-27 11:39:24 -0400
committerTony Lindgren <tony@atomide.com>2014-10-27 11:39:24 -0400
commitf2650d6e4fb797b436af5999ea89aa279712544b (patch)
treeab61c6fe26d6cda42898c3c631e782245e4aa041 /arch
parenta8ae5afa5cb820afa251b9acfe3f0a938b6a6c0d (diff)
ARM: OMAP2+: CM: make clkdm_hwsup operations static
These are not accessed outside the cm*.c files themselves, so make them static. Signed-off-by: Tero Kristo <t-kristo@ti.com> Acked-by: Paul Walmsley <paul@pwsan.com> Tested-by: Nishanth Menon <nm@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/cm2xxx.c6
-rw-r--r--arch/arm/mach-omap2/cm2xxx.h4
-rw-r--r--arch/arm/mach-omap2/cm33xx.c10
-rw-r--r--arch/arm/mach-omap2/cm33xx.h5
-rw-r--r--arch/arm/mach-omap2/cm3xxx.c10
-rw-r--r--arch/arm/mach-omap2/cm3xxx.h7
-rw-r--r--arch/arm/mach-omap2/cminst44xx.c10
-rw-r--r--arch/arm/mach-omap2/cminst44xx.h5
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
56bool omap2xxx_cm_is_clkdm_in_hwsup(s16 module, u32 mask) 56static 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
67void omap2xxx_cm_clkdm_enable_hwsup(s16 module, u32 mask) 67static 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
72void omap2xxx_cm_clkdm_disable_hwsup(s16 module, u32 mask) 72static 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
49extern void omap2xxx_cm_clkdm_enable_hwsup(s16 module, u32 mask);
50extern void omap2xxx_cm_clkdm_disable_hwsup(s16 module, u32 mask);
51
52extern void omap2xxx_cm_set_dpll_disable_autoidle(void); 49extern void omap2xxx_cm_set_dpll_disable_autoidle(void);
53extern void omap2xxx_cm_set_dpll_auto_low_power_stop(void); 50extern 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);
57extern void omap2xxx_cm_set_apll96_disable_autoidle(void); 54extern void omap2xxx_cm_set_apll96_disable_autoidle(void);
58extern void omap2xxx_cm_set_apll96_auto_low_power_stop(void); 55extern void omap2xxx_cm_set_apll96_auto_low_power_stop(void);
59 56
60extern bool omap2xxx_cm_is_clkdm_in_hwsup(s16 module, u32 mask);
61int omap2xxx_cm_wait_module_ready(u8 part, s16 prcm_mod, u16 idlest_id, 57int omap2xxx_cm_wait_module_ready(u8 part, s16 prcm_mod, u16 idlest_id,
62 u8 idlest_shift); 58 u8 idlest_shift);
63extern int omap2xxx_cm_split_idlest_reg(void __iomem *idlest_reg, 59extern 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 */
159bool am33xx_cm_is_clkdm_in_hwsup(u16 inst, u16 cdoffs) 159static 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 */
178void am33xx_cm_clkdm_enable_hwsup(u16 inst, u16 cdoffs) 178static 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 */
192void am33xx_cm_clkdm_disable_hwsup(u16 inst, u16 cdoffs) 192static 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 */
205void am33xx_cm_clkdm_force_sleep(u16 inst, u16 cdoffs) 205static 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 */
218void am33xx_cm_clkdm_force_wakeup(u16 inst, u16 cdoffs) 218static 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__
377bool am33xx_cm_is_clkdm_in_hwsup(u16 inst, u16 cdoffs);
378void am33xx_cm_clkdm_enable_hwsup(u16 inst, u16 cdoffs);
379void am33xx_cm_clkdm_disable_hwsup(u16 inst, u16 cdoffs);
380void am33xx_cm_clkdm_force_sleep(u16 inst, u16 cdoffs);
381void am33xx_cm_clkdm_force_wakeup(u16 inst, u16 cdoffs);
382int am33xx_cm_init(void); 377int 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
45bool omap3xxx_cm_is_clkdm_in_hwsup(s16 module, u32 mask) 45static 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
56void omap3xxx_cm_clkdm_enable_hwsup(s16 module, u32 mask) 56static 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
61void omap3xxx_cm_clkdm_disable_hwsup(s16 module, u32 mask) 61static 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
66void omap3xxx_cm_clkdm_force_sleep(s16 module, u32 mask) 66static 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
71void omap3xxx_cm_clkdm_force_wakeup(s16 module, u32 mask) 71static 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
71extern void omap3xxx_cm_clkdm_enable_hwsup(s16 module, u32 mask);
72extern void omap3xxx_cm_clkdm_disable_hwsup(s16 module, u32 mask);
73extern void omap3xxx_cm_clkdm_force_sleep(s16 module, u32 mask);
74extern void omap3xxx_cm_clkdm_force_wakeup(s16 module, u32 mask);
75
76extern bool omap3xxx_cm_is_clkdm_in_hwsup(s16 module, u32 mask);
77
78extern int omap3xxx_cm_split_idlest_reg(void __iomem *idlest_reg, 71extern 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 */
201bool omap4_cminst_is_clkdm_in_hwsup(u8 part, u16 inst, u16 cdoffs) 201static 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 */
221void omap4_cminst_clkdm_enable_hwsup(u8 part, u16 inst, u16 cdoffs) 221static 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 */
236void omap4_cminst_clkdm_disable_hwsup(u8 part, u16 inst, u16 cdoffs) 236static 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 */
250void omap4_cminst_clkdm_force_wakeup(u8 part, u16 inst, u16 cdoffs) 250static 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
259void omap4_cminst_clkdm_force_sleep(u8 part, u16 inst, u16 cdoffs) 259static 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
14bool omap4_cminst_is_clkdm_in_hwsup(u8 part, u16 inst, u16 cdoffs);
15void omap4_cminst_clkdm_enable_hwsup(u8 part, u16 inst, u16 cdoffs);
16void omap4_cminst_clkdm_disable_hwsup(u8 part, u16 inst, u16 cdoffs);
17void omap4_cminst_clkdm_force_sleep(u8 part, u16 inst, u16 cdoffs);
18void omap4_cminst_clkdm_force_wakeup(u8 part, u16 inst, u16 cdoffs);
19extern void omap4_cminst_module_enable(u8 mode, u8 part, u16 inst, s16 cdoffs, 14extern void omap4_cminst_module_enable(u8 mode, u8 part, u16 inst, s16 cdoffs,
20 u16 clkctrl_offs); 15 u16 clkctrl_offs);
21extern void omap4_cminst_module_disable(u8 part, u16 inst, s16 cdoffs, 16extern void omap4_cminst_module_disable(u8 part, u16 inst, s16 cdoffs,