ARM: OMAP: clock: list all clk_hw_omap clks to enable/disable autoidle
Platforms can call omap2_init_clk_hw_omap_clocks() to register a clock using clk_hw_omap. omap2_clk_enable_autoidle_all() and omap2_clk_disable_autoidle_all() can then be used to run through all the clocks which support autoidle to enable/disable them. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Mike Turquette <mturquette@ti.com> [paul@pwsan.com: added kerneldoc on non-trivial new functions] Signed-off-by: Paul Walmsley <paul@pwsan.com>
This commit is contained in:
committed by
Paul Walmsley
parent
7a2bd1cc39
commit
23fb8ba3a8
@ -407,6 +407,9 @@ void __init omap2420_init_late(void)
|
||||
omap_mux_late_init();
|
||||
omap2_common_pm_late_init();
|
||||
omap2_pm_init();
|
||||
#ifdef CONFIG_COMMON_CLK
|
||||
omap2_clk_enable_autoidle_all();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -436,6 +439,9 @@ void __init omap2430_init_late(void)
|
||||
omap_mux_late_init();
|
||||
omap2_common_pm_late_init();
|
||||
omap2_pm_init();
|
||||
#ifdef CONFIG_COMMON_CLK
|
||||
omap2_clk_enable_autoidle_all();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -509,6 +515,9 @@ void __init omap3_init_late(void)
|
||||
omap_mux_late_init();
|
||||
omap2_common_pm_late_init();
|
||||
omap3_pm_init();
|
||||
#ifdef CONFIG_COMMON_CLK
|
||||
omap2_clk_enable_autoidle_all();
|
||||
#endif
|
||||
}
|
||||
|
||||
void __init omap3430_init_late(void)
|
||||
@ -516,6 +525,9 @@ void __init omap3430_init_late(void)
|
||||
omap_mux_late_init();
|
||||
omap2_common_pm_late_init();
|
||||
omap3_pm_init();
|
||||
#ifdef CONFIG_COMMON_CLK
|
||||
omap2_clk_enable_autoidle_all();
|
||||
#endif
|
||||
}
|
||||
|
||||
void __init omap35xx_init_late(void)
|
||||
@ -523,6 +535,9 @@ void __init omap35xx_init_late(void)
|
||||
omap_mux_late_init();
|
||||
omap2_common_pm_late_init();
|
||||
omap3_pm_init();
|
||||
#ifdef CONFIG_COMMON_CLK
|
||||
omap2_clk_enable_autoidle_all();
|
||||
#endif
|
||||
}
|
||||
|
||||
void __init omap3630_init_late(void)
|
||||
@ -530,6 +545,9 @@ void __init omap3630_init_late(void)
|
||||
omap_mux_late_init();
|
||||
omap2_common_pm_late_init();
|
||||
omap3_pm_init();
|
||||
#ifdef CONFIG_COMMON_CLK
|
||||
omap2_clk_enable_autoidle_all();
|
||||
#endif
|
||||
}
|
||||
|
||||
void __init am35xx_init_late(void)
|
||||
@ -537,6 +555,9 @@ void __init am35xx_init_late(void)
|
||||
omap_mux_late_init();
|
||||
omap2_common_pm_late_init();
|
||||
omap3_pm_init();
|
||||
#ifdef CONFIG_COMMON_CLK
|
||||
omap2_clk_enable_autoidle_all();
|
||||
#endif
|
||||
}
|
||||
|
||||
void __init ti81xx_init_late(void)
|
||||
@ -544,6 +565,9 @@ void __init ti81xx_init_late(void)
|
||||
omap_mux_late_init();
|
||||
omap2_common_pm_late_init();
|
||||
omap3_pm_init();
|
||||
#ifdef CONFIG_COMMON_CLK
|
||||
omap2_clk_enable_autoidle_all();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -597,6 +621,9 @@ void __init omap4430_init_late(void)
|
||||
omap_mux_late_init();
|
||||
omap2_common_pm_late_init();
|
||||
omap4_pm_init();
|
||||
#ifdef CONFIG_COMMON_CLK
|
||||
omap2_clk_enable_autoidle_all();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user