[PATCH 1/1] sama5d3k: the nand flash is 4 bit ecc capable so use it

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Fri Feb 1 02:45:21 EST 2013


this will require to update the bootstrap

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 arch/arm/boards/sama5d3xek/init.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boards/sama5d3xek/init.c b/arch/arm/boards/sama5d3xek/init.c
index ae23a31..9a22356 100644
--- a/arch/arm/boards/sama5d3xek/init.c
+++ b/arch/arm/boards/sama5d3xek/init.c
@@ -63,7 +63,7 @@ static struct atmel_nand_data nand_pdata = {
 	.enable_pin	= -EINVAL,
 	.ecc_mode	= NAND_ECC_HW,
 	.pmecc_sector_size = 512,
-	.pmecc_corr_cap = 2,
+	.pmecc_corr_cap = 4,
 #if defined(CONFIG_MTD_NAND_ATMEL_BUSWIDTH_16)
 	.bus_width_16	= 1,
 #endif
-- 
1.7.10.4




More information about the barebox mailing list