提交 dc0d794e 编写于 作者: J Juha Yrjola 提交者: Tony Lindgren

ARM: OMAP2: Keep both APLLs active during bootup

Enabling and disabling the 54 MHz and 96 MHz APLLs can happen
unnecessarily often during bootup. Make sure they're kept
enabled during init.
Signed-off-by: NJuha Yrjola <juha.yrjola@solidboot.com>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 dee45648
...@@ -1117,6 +1117,12 @@ int __init omap2_clk_init(void) ...@@ -1117,6 +1117,12 @@ int __init omap2_clk_init(void)
*/ */
clk_enable(&sync_32k_ick); clk_enable(&sync_32k_ick);
clk_enable(&omapctrl_ick); clk_enable(&omapctrl_ick);
/* Force the APLLs active during bootup to avoid disabling and
* enabling them unnecessarily. */
clk_enable(&apll96_ck);
clk_enable(&apll54_ck);
if (cpu_is_omap2430()) if (cpu_is_omap2430())
clk_enable(&sdrc_ick); clk_enable(&sdrc_ick);
...@@ -1126,3 +1132,12 @@ int __init omap2_clk_init(void) ...@@ -1126,3 +1132,12 @@ int __init omap2_clk_init(void)
return 0; return 0;
} }
static int __init omap2_disable_aplls(void)
{
clk_disable(&apll96_ck);
clk_disable(&apll54_ck);
return 0;
}
late_initcall(omap2_disable_aplls);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册