diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2015-01-06 12:37:05 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-01-06 13:46:24 +0100 |
commit | 013247989b4c9e4bea5d26f07c0bba968227d968 (patch) | |
tree | 9843ff85003064a1558ebbe50ea37ac55b8ec600 /arch/arm/boards/tny-a926x/init.c | |
parent | 2a0b57b9dee92acdbdf0ca66661179e61bfdc6cb (diff) | |
download | barebox-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/tny-a926x/init.c')
-rw-r--r-- | arch/arm/boards/tny-a926x/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/boards/tny-a926x/init.c b/arch/arm/boards/tny-a926x/init.c index ac86457872..256f8ba9bf 100644 --- a/arch/arm/boards/tny-a926x/init.c +++ b/arch/arm/boards/tny-a926x/init.c @@ -55,6 +55,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, }; |