Legacy board files for IGEP Processor Boards used 1-bit Hamming ECC layout but
new DT uses BCH8 software layout. This breaks the backward compatibility for
people that used board files before and switch to DT and have the problem that
they can't flash the rootfs using the bootloader.

This patch sets the ECC layout to 1-bit Hamming ECC in order to maintain this
compatibility.

Reported-by: Thomas Petazzoni <thomas.petazz...@free-electrons.com>
Reported-by: Ezequiel Garcia <ezequiel.gar...@free-electrons.com>
Signed-off-by: Enric Balletbo i Serra <eballe...@gmail.com>
---
 arch/arm/boot/dts/omap3-igep0020.dts | 2 +-
 arch/arm/boot/dts/omap3-igep0030.dts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-igep0020.dts 
b/arch/arm/boot/dts/omap3-igep0020.dts
index d5cc792..4229e94 100644
--- a/arch/arm/boot/dts/omap3-igep0020.dts
+++ b/arch/arm/boot/dts/omap3-igep0020.dts
@@ -116,7 +116,7 @@
                linux,mtd-name= "micron,mt29c4g96maz";
                reg = <0 0 0>;
                nand-bus-width = <16>;
-               ti,nand-ecc-opt = "bch8";
+               ti,nand-ecc-opt = "ham1";
 
                gpmc,sync-clk-ps = <0>;
                gpmc,cs-on-ns = <0>;
diff --git a/arch/arm/boot/dts/omap3-igep0030.dts 
b/arch/arm/boot/dts/omap3-igep0030.dts
index 525e6d9..9043e97 100644
--- a/arch/arm/boot/dts/omap3-igep0030.dts
+++ b/arch/arm/boot/dts/omap3-igep0030.dts
@@ -59,7 +59,7 @@
                linux,mtd-name= "micron,mt29c4g96maz";
                reg = <0 0 0>;
                nand-bus-width = <16>;
-               ti,nand-ecc-opt = "bch8";
+               ti,nand-ecc-opt = "ham1";
 
                gpmc,sync-clk-ps = <0>;
                gpmc,cs-on-ns = <0>;
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to