diff options
author | Heiko Schocher <hs@denx.de> | 2016-06-07 06:55:42 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-06-09 17:53:12 (GMT) |
commit | 3a504d9639a2cef276a6e9e31cee11584c885639 (patch) | |
tree | bdcebda90ec7608707c98729efbaef9767a146f1 /drivers | |
parent | 5d29e27eb93229f27d2c88d5538ad781c144c852 (diff) | |
download | u-boot-fsl-qoriq-3a504d9639a2cef276a6e9e31cee11584c885639.tar.xz |
mtd: nand: omap: allow to switch to BCH16
support in omap_nand_switch_ecc() also an eccstrength
from 16.
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/omap_gpmc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c index 37c4341..67f293d 100644 --- a/drivers/mtd/nand/omap_gpmc.c +++ b/drivers/mtd/nand/omap_gpmc.c @@ -917,6 +917,10 @@ int __maybe_unused omap_nand_switch_ecc(uint32_t hardware, uint32_t eccstrength) err = omap_select_ecc_scheme(nand, OMAP_ECC_BCH8_CODE_HW, mtd->writesize, mtd->oobsize); + } else if (eccstrength == 16) { + err = omap_select_ecc_scheme(nand, + OMAP_ECC_BCH16_CODE_HW, + mtd->writesize, mtd->oobsize); } else { printf("nand: error: unsupported ECC scheme\n"); return -EINVAL; |