mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
ARM: arm1176: enable instruction cache in arch_cpu_init()
Note that this affects all users of the ARM1176 CPU that enable CONFIG_ARCH_CPU_INIT, not just the BCM2835 SoC, potentially such as tnetv107x. Cc: Cyril Chemparathy <cyril@ti.com> Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
This commit is contained in:
parent
c6c621bdb5
commit
86c632651d
1 changed files with 7 additions and 0 deletions
|
@ -65,3 +65,10 @@ static void cache_flush (void)
|
||||||
/* mem barrier to sync things */
|
/* mem barrier to sync things */
|
||||||
asm ("mcr p15, 0, %0, c7, c10, 4": :"r" (0));
|
asm ("mcr p15, 0, %0, c7, c10, 4": :"r" (0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int arch_cpu_init(void)
|
||||||
|
{
|
||||||
|
icache_enable();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue