]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
ARM: MX5: Fix broken leftover TO-2 errata workaround
authorDavid Jander <david@protonic.nl>
Thu, 14 Jul 2011 03:58:57 +0000 (03:58 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 18 Jul 2011 12:41:48 +0000 (14:41 +0200)
This check was broken. r3 does not contain the silicon revision anymore, so
we need to reload it. Also, this errata only applies to i.MX51.

Signed-off-by: David Jander <david@protonic.nl>
Acked-by: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/armv7/mx5/lowlevel_init.S

index 96ebfe2345b84156896988840135daf85a6a138d..94de9f1d614458a2175c05a4ccb9a2a0e5d53b6b 100644 (file)
        orr r0, r0, #(1 << 23)          /* disable write allocate combine */
        orr r0, r0, #(1 << 22)          /* disable write allocate */
 
-       cmp r3, #0x10    /* r3 contains the silicon rev */
+#if defined(CONFIG_MX51)
+       ldr r1, =0x0
+       ldr r3, [r1, #ROM_SI_REV]
+       cmp r3, #0x10
 
        /* disable write combine for TO 2 and lower revs */
        orrls r0, r0, #(1 << 25)
+#endif
 
        mcr 15, 1, r0, c9, c0, 2
 .endm /* init_l2cc */