]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
mtd: nand: kirkwood: enable BCH ECC and add support for dynamically switching ECC... KARO-TK71-2017-07-28
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 28 Jul 2017 11:07:57 +0000 (13:07 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 28 Jul 2017 11:07:57 +0000 (13:07 +0200)
commit0c384211f0a1623dc3494f44f9f16c26dde941c0
tree79caa0d7c7c0afb22e9c20556302a0e313fa4a40
parent6bddff903bb875c02831cc312a66f99195a2cdf2
mtd: nand: kirkwood: enable BCH ECC and add support for dynamically switching ECC mode

For certain NAND chips it is favourable or required to support 4-bit
ECC schemes. The CPU uses an RS-ECC scheme for which no decoder could
be found and is not worthwile being developed only for this purpose.

Thus enable support for SOFT_BCH ECC which is fully supported by
U-Boot.

Add a command for switching between ECC modes to be able to write a
bootable image and for compatibility with existing Linux
implementations.
drivers/mtd/nand/kirkwood_nand.c
include/linux/mtd/nand_ecc.h