提交 7ce85318 编写于 作者: L Lokesh Vutla 提交者: Tom Rini

arm: mach-omap2: cache: Explicitly enable I cache

omap-common cache enabling sequence relies on cpu_init_cp15()
(inside start.S) for enabling I-caches. But cpu_init_cp15()
can be skipped if CONFIG_SKIP_LOWLEVEL_INIT is defined. So
enable I-caches if not enabled already.
Debugged-by: NJean-Jacques Hiblot <jjhiblot@ti.com>
Tested-by: NSteve Kipisz <s-kipisz2@ti.com>
Signed-off-by: NLokesh Vutla <lokeshvutla@ti.com>
Tested-by: NJean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: NTom Rini <trini@konsulko.com>
上级 535adee8
......@@ -44,7 +44,11 @@ DECLARE_GLOBAL_DATA_PTR;
void enable_caches(void)
{
/* Enable D-cache. I-cache is already enabled in start.S */
/* Enable I cache if not enabled */
if (!icache_status())
icache_enable();
dcache_enable();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册