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>
This commit is contained in:

کامیت شده توسط
Tony Lindgren

والد
7632a02f80
کامیت
021b6ff05c
@@ -387,7 +387,6 @@ extern void am33xx_cm_module_enable(u8 mode, u16 inst, s16 cdoffs,
|
||||
u16 clkctrl_offs);
|
||||
extern void am33xx_cm_module_disable(u16 inst, s16 cdoffs,
|
||||
u16 clkctrl_offs);
|
||||
int am33xx_cm_wait_module_ready(u16 inst, u16 clkctrl_offs);
|
||||
#else
|
||||
static inline int am33xx_cm_wait_module_idle(u16 inst, u16 clkctrl_offs)
|
||||
{
|
||||
@@ -401,11 +400,6 @@ static inline void am33xx_cm_module_disable(u16 inst, s16 cdoffs,
|
||||
u16 clkctrl_offs)
|
||||
{
|
||||
}
|
||||
|
||||
static inline int am33xx_cm_wait_module_ready(u16 inst, u16 clkctrl_offs)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ASSEMBLER */
|
||||
|
مرجع در شماره جدید
Block a user