diff options
author | Andre Renaud <andre@designa-electronics.com> | 2016-05-05 07:28:15 -0600 |
---|---|---|
committer | Andreas Bießmann <andreas@biessmann.org> | 2016-06-12 23:49:38 +0200 |
commit | 65319f15ca6ed1be6ca12576fe96a338352d45b7 (patch) | |
tree | d4f5f3535690e9d4ea285a00f9785419effc71fe /drivers/mtd | |
parent | 5a9ae333161902475b14c7722208082c1ac28cff (diff) | |
download | u-boot-65319f15ca6ed1be6ca12576fe96a338352d45b7.tar.gz u-boot-65319f15ca6ed1be6ca12576fe96a338352d45b7.tar.xz u-boot-65319f15ca6ed1be6ca12576fe96a338352d45b7.zip |
at91: nand: Set up the ECC strength correctly
This needs to be set to avoid a fatal error when ECC is used.
Signed-off-by: Andre Renaud <andre@designa-electronics.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Andreas Bießmann <andreas@biessmann.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/atmel_nand.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index debf93318a..ad5ded3a56 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@ -1156,6 +1156,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) */ |