mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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: Jean-Jacques Hiblot <jjhiblot@ti.com> Tested-by: Steve Kipisz <s-kipisz2@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Tested-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
535adee869
commit
7ce85318cf
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue