board: imx53: fix l2 cache initialization
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 10 Apr 2021 13:31:39 +0000 (15:31 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 25 Apr 2021 22:04:52 +0000 (23:04 +0100)
Both http://openocd.zylin.com/542/ and http://openocd.zylin.com/543/
introduce the same typo in the bitfield for initializing the l2
cache of imx53.
One year later, http://openocd.zylin.com/1461/ copy-pastes the same
typo.
The comment above the code show that it's really an error and not
the expected behaviour.

Fix the typo replacing the incorrect comparison '<' with a left
shift.

Change-Id: I43725731a2228e28a676215f76936fa289d9395e
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Fixes: e3b327343394 ("cfg: add imx53loco board config")
Fixes: 108a458ab888 ("cfg: add icnova_imx53_sodimm board config")
Fixes: e608ced33001 ("ftdi/board: Add support for DENX M53EVK")
Reviewed-on: http://openocd.zylin.com/6156
Tested-by: jenkins
Reviewed-by: Adrian M Negreanu <adrian.negreanu@nxp.com>
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
tcl/board/icnova_imx53_sodimm.cfg
tcl/board/imx53-m53evk.cfg
tcl/board/imx53loco.cfg

index dce9c470e1507c46f2144c854c304e63c1a2f0c9..af9818814b03f86ca8c5e04445c2c9740bc721d0 100644 (file)
@@ -79,7 +79,7 @@ proc init_l2cc { } {
        ; #orr r0, r0, #(1 << 22)          /* disable write allocate */
 
        ; #mcr 15, 1, r0, c9, c0, 2
-       arm mcr 15 1 9 0 2 [expr 0xC4 | (1<<24) | (1<<23) | (1<22)]
+       arm mcr 15 1 9 0 2 [expr 0xC4 | (1<<24) | (1<<23) | (1<<22)]
 }
 
 
index baeb3cd9d14765582f59b976c1d07a68166d9982..b529c4940662dfa4ee17233b60d0c774201b443b 100644 (file)
@@ -75,7 +75,7 @@ proc init_l2cc { } {
        ; #orr r0, r0, #(1 << 22)          /* disable write allocate */
 
        ; #mcr 15, 1, r0, c9, c0, 2
-       arm mcr 15 1 9 0 2 [expr 0xC4 | (1<<24) | (1<<23) | (1<22)]
+       arm mcr 15 1 9 0 2 [expr 0xC4 | (1<<24) | (1<<23) | (1<<22)]
 }
 
 
index 18caca5749c0b6cf65235950f4555521f0802793..91c260138eb3f3f55883fc078ce76546750acc81 100644 (file)
@@ -80,7 +80,7 @@ proc init_l2cc { } {
        ; #orr r0, r0, #(1 << 22)          /* disable write allocate */
 
        ; #mcr 15, 1, r0, c9, c0, 2
-       arm mcr 15 1 9 0 2 [expr 0xC4 | (1<<24) | (1<<23) | (1<22)]
+       arm mcr 15 1 9 0 2 [expr 0xC4 | (1<<24) | (1<<23) | (1<<22)]
 }