]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
colibri-imx6ull: fix nand bch geometry
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Fri, 8 Apr 2022 10:27:41 +0000 (12:27 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Apr 2022 17:10:44 +0000 (19:10 +0200)
Fix NAND BCH geometry as otherwise the following errors are observed
upon boot:

...
Loading Environment from NAND... NAND read from offset 380000 failed -74
...
NAND read from offset 800 failed -74
...
ubi0 error: ubi_io_read: error -74 (ECC error) while reading 64 bytes
 from PEB 0:0, read 64 bytes
...

Fixes: ed48490f8d3f
("mtd: gpmi: fix the bch setting backward compatible issue")
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
arch/arm/dts/imx6ull-colibri.dts

index dbe3e0206e508bec63f926cf01e3356d0fffbdcd..d59696ee6e7d7ab6d58dd0de2335f4d1f2f8057b 100644 (file)
@@ -15,6 +15,7 @@
 &gpmi {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_gpmi_nand>;
+       fsl,use-minimum-ecc;
        nand-on-flash-bbt;
        nand-ecc-mode = "hw";
        nand-ecc-strength = <8>;