Commit 7ce85318 authored by Lokesh Vutla's avatar Lokesh Vutla Committed by 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: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
Tested-by: default avatarSteve Kipisz <s-kipisz2@ti.com>
Signed-off-by: Lokesh Vutla's avatarLokesh Vutla <lokeshvutla@ti.com>
Tested-by: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment