]> git.sur5r.net Git - u-boot/commitdiff
ARM: implement erratum 716044 workaround
authorStephen Warren <swarren@nvidia.com>
Mon, 4 Mar 2013 13:29:40 +0000 (13:29 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 22 Mar 2013 15:45:22 +0000 (16:45 +0100)
Add common code to enable the workaround for ARM erratum 716044. This
will be enabled for Tegra.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
README
arch/arm/cpu/armv7/start.S

diff --git a/README b/README
index 7f2506a9b9c2335fdfd9ef3644797bb1b60509e3..616bfb0c6eb70b197296be3cba338140e72aed4a 100644 (file)
--- a/README
+++ b/README
@@ -485,6 +485,7 @@ The following options need to be configured:
                Thumb2 this flag will result in Thumb2 code generated by
                GCC.
 
+               CONFIG_ARM_ERRATA_716044
                CONFIG_ARM_ERRATA_742230
                CONFIG_ARM_ERRATA_743622
                CONFIG_ARM_ERRATA_751472
index fa5fad1b0c85c277303194788de66921013d6b7f..c0e184994abd729c3422750023620229956f3db3 100644 (file)
@@ -310,6 +310,12 @@ ENTRY(cpu_init_cp15)
 #endif
        mcr     p15, 0, r0, c1, c0, 0
 
+#ifdef CONFIG_ARM_ERRATA_716044
+       mrc     p15, 0, r0, c1, c0, 0   @ read system control register
+       orr     r0, r0, #1 << 11        @ set bit #11
+       mcr     p15, 0, r0, c1, c0, 0   @ write system control register
+#endif
+
 #ifdef CONFIG_ARM_ERRATA_742230
        mrc     p15, 0, r0, c15, c0, 1  @ read diagnostic register
        orr     r0, r0, #1 << 4         @ set bit #4