]> git.sur5r.net Git - u-boot/commitdiff
ARM: arm1176: enable instruction cache in arch_cpu_init()
authorStephen Warren <swarren@wwwdotorg.org>
Sun, 5 Aug 2012 16:07:20 +0000 (16:07 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:20 +0000 (14:58 +0200)
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>
arch/arm/cpu/arm1176/cpu.c

index c0fd114e16305fab9f5f5f9aa688b5396ad9efd4..532a90b546f838dbc6df1e8491f6f7749c3c401d 100644 (file)
@@ -65,3 +65,10 @@ static void cache_flush (void)
        /* mem barrier to sync things */
        asm ("mcr p15, 0, %0, c7, c10, 4": :"r" (0));
 }
+
+int arch_cpu_init(void)
+{
+       icache_enable();
+
+       return 0;
+}