diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-10-27 11:39:23 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-10-27 11:39:23 -0400 |
commit | 021b6ff05c4a17cb20d71c05e251ea7f80b1c516 (patch) | |
tree | 93df0c5995581095d8c2838f1aabe566322ec5c5 /arch/arm/mach-omap2/cminst44xx.c | |
parent | 7632a02f80eb99e942999e522b2eb0f6592ea5b5 (diff) |
ARM: OMAP2+: CM: add common API for cm_wait_module_ready
This patch consolidates the parameters provided for the SoC specific
cm_*_wait_module_ready calls, adds the missing cm_ll_data function
pointers and uses the now generic call from the mach-omap2 board code.
SoC specific *_wait_module_ready calls are also made static so they
can only be accessed through the generic CM driver API only.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/cminst44xx.c')
-rw-r--r-- | arch/arm/mach-omap2/cminst44xx.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/cminst44xx.c b/arch/arm/mach-omap2/cminst44xx.c index 695e71e802a5..c4f42de7f718 100644 --- a/arch/arm/mach-omap2/cminst44xx.c +++ b/arch/arm/mach-omap2/cminst44xx.c | |||
@@ -266,13 +266,15 @@ void omap4_cminst_clkdm_force_sleep(u8 part, u16 inst, u16 cdoffs) | |||
266 | * @part: PRCM partition ID that the CM_CLKCTRL register exists in | 266 | * @part: PRCM partition ID that the CM_CLKCTRL register exists in |
267 | * @inst: CM instance register offset (*_INST macro) | 267 | * @inst: CM instance register offset (*_INST macro) |
268 | * @clkctrl_offs: Module clock control register offset (*_CLKCTRL macro) | 268 | * @clkctrl_offs: Module clock control register offset (*_CLKCTRL macro) |
269 | * @bit_shift: bit shift for the register, ignored for OMAP4+ | ||
269 | * | 270 | * |
270 | * Wait for the module IDLEST to be functional. If the idle state is in any | 271 | * Wait for the module IDLEST to be functional. If the idle state is in any |
271 | * the non functional state (trans, idle or disabled), module and thus the | 272 | * the non functional state (trans, idle or disabled), module and thus the |
272 | * sysconfig cannot be accessed and will probably lead to an "imprecise | 273 | * sysconfig cannot be accessed and will probably lead to an "imprecise |
273 | * external abort" | 274 | * external abort" |
274 | */ | 275 | */ |
275 | int omap4_cminst_wait_module_ready(u8 part, u16 inst, u16 clkctrl_offs) | 276 | static int omap4_cminst_wait_module_ready(u8 part, s16 inst, u16 clkctrl_offs, |
277 | u8 bit_shift) | ||
276 | { | 278 | { |
277 | int i = 0; | 279 | int i = 0; |
278 | 280 | ||
@@ -506,7 +508,9 @@ struct clkdm_ops am43xx_clkdm_operations = { | |||
506 | .clkdm_clk_disable = omap4_clkdm_clk_disable, | 508 | .clkdm_clk_disable = omap4_clkdm_clk_disable, |
507 | }; | 509 | }; |
508 | 510 | ||
509 | static struct cm_ll_data omap4xxx_cm_ll_data; | 511 | static struct cm_ll_data omap4xxx_cm_ll_data = { |
512 | .wait_module_ready = &omap4_cminst_wait_module_ready, | ||
513 | }; | ||
510 | 514 | ||
511 | int __init omap4_cm_init(void) | 515 | int __init omap4_cm_init(void) |
512 | { | 516 | { |