summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/telit-evk-pro3
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2015-01-06 12:37:05 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-01-06 13:46:24 +0100
commit013247989b4c9e4bea5d26f07c0bba968227d968 (patch)
tree9843ff85003064a1558ebbe50ea37ac55b8ec600 /arch/arm/boards/telit-evk-pro3
parent2a0b57b9dee92acdbdf0ca66661179e61bfdc6cb (diff)
downloadbarebox-013247989b4c9e4bea5d26f07c0bba968227d968.tar.gz
barebox-013247989b4c9e4bea5d26f07c0bba968227d968.tar.xz
arm: at91: fix ecc_mode on non atmel boards
since commit 54bccadddd52cb4cbbecd1403b9091fe651bd0fd Author: Raphaël Poggi <poggi.raph@gmail.com> mtd: atmel_nand: retrieve ecc_mode from pdata break most of the non atmel AT91 boards that did not provide a ecc_mode params in the nand pdata Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Raphaël Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/telit-evk-pro3')
-rw-r--r--arch/arm/boards/telit-evk-pro3/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/boards/telit-evk-pro3/init.c b/arch/arm/boards/telit-evk-pro3/init.c
index e094ea7c25..ea63b1a094 100644
--- a/arch/arm/boards/telit-evk-pro3/init.c
+++ b/arch/arm/boards/telit-evk-pro3/init.c
@@ -18,6 +18,7 @@
#include <gpio.h>
#include <init.h>
#include <linux/clk.h>
+#include <linux/mtd/nand.h>
#include <mach/at91_rstc.h>
#include <mach/at91sam9_smc.h>
#include <mach/board.h>
@@ -33,6 +34,7 @@ static struct atmel_nand_data nand_pdata = {
.det_pin = -EINVAL,
.rdy_pin = AT91_PIN_PC13,
.enable_pin = AT91_PIN_PC14,
+ .ecc_mode = NAND_ECC_SOFT,
.on_flash_bbt = 1,
};