omap: enable caches at system start-up
Signed-off-by: Aneesh V <aneesh@ti.com>
This commit is contained in:
parent
cba4b1809f
commit
13d4f9bd74
|
@ -402,3 +402,11 @@ void v7_outer_cache_disable(void)
|
||||||
omap3_update_aux_cr(0, 0x2);
|
omap3_update_aux_cr(0, 0x2);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef CONFIG_SYS_DCACHE_OFF
|
||||||
|
void enable_caches(void)
|
||||||
|
{
|
||||||
|
/* Enable D-cache. I-cache is already enabled in start.S */
|
||||||
|
dcache_enable();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -299,3 +299,11 @@ void v7_outer_cache_disable(void)
|
||||||
set_pl310_ctrl_reg(0);
|
set_pl310_ctrl_reg(0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef CONFIG_SYS_DCACHE_OFF
|
||||||
|
void enable_caches(void)
|
||||||
|
{
|
||||||
|
/* Enable D-cache. I-cache is already enabled in start.S */
|
||||||
|
dcache_enable();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue