[PATCH 6/7] mtd: omap gpmc: fix bch8 nand-ecc-opt property

Sascha Hauer s.hauer at pengutronix.de
Fri Aug 1 06:29:14 PDT 2014


We interpret the ECC option "bch8" as OMAP_ECC_BCH8_CODE_HW, but the
Kernel uses OMAP_ECC_BCH8_CODE_HW_ROMCODE in this case instead. To make
the interpretation of the ti,nand-ecc-opt property compatible to the
Kernel we have to use OMAP_ECC_BCH8_CODE_HW_ROMCODE for "bch8"

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/bus/omap-gpmc.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/bus/omap-gpmc.c b/drivers/bus/omap-gpmc.c
index ad21af2..d7b02cf 100644
--- a/drivers/bus/omap-gpmc.c
+++ b/drivers/bus/omap-gpmc.c
@@ -382,9 +382,6 @@ static struct dt_eccmode modes[] = {
 		.mode = OMAP_ECC_BCH4_CODE_HW,
 	}, {
 		.name = "bch8",
-		.mode = OMAP_ECC_BCH8_CODE_HW,
-	}, {
-		.name = "bch8-romcode",
 		.mode = OMAP_ECC_BCH8_CODE_HW_ROMCODE,
 	},
 };
-- 
2.0.1




More information about the barebox mailing list