[U-Boot] [PATCH v2 11/18] at91: nand: Set up the ECC strength correctly

Simon Glass sjg at chromium.org
Thu May 5 15:28:15 CEST 2016


From: Andre Renaud <andre at designa-electronics.com>

This needs to be set to avoid a fatal error when ECC is used.

Signed-off-by: Andre Renaud <andre at designa-electronics.com>
Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v2: None

 drivers/mtd/nand/atmel_nand.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 4e278fa..8fac824 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -1155,6 +1155,7 @@ int atmel_hwecc_nand_init_param(struct nand_chip *nand, struct mtd_info *mtd)
 	nand->ecc.hwctl = atmel_nand_hwctl;
 	nand->ecc.read_page = atmel_nand_read_page;
 	nand->ecc.bytes = 4;
+	nand->ecc.strength = 4;
 
 	if (nand->ecc.mode == NAND_ECC_HW) {
 		/* ECC is calculated for the whole page (1 step) */
-- 
2.8.0.rc3.226.g39d4020



More information about the U-Boot mailing list