diff options
author | Ivan Djelic <ivan.djelic@parrot.com> | 2011-03-11 11:05:33 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-03-11 18:49:08 +0100 |
commit | 193bd40026443835e1b96c79d5efe559d01509ae (patch) | |
tree | 979bace7cd9806753c95867c6df89fe2de98fc73 /drivers/video/i810 | |
parent | mtd: fix printf format warnings, mostly lack of %zd for size_t, in mtdswap (diff) | |
download | linux-193bd40026443835e1b96c79d5efe559d01509ae.tar.xz linux-193bd40026443835e1b96c79d5efe559d01509ae.zip |
mtd: nand: add software BCH ECC support
This patch adds software BCH ECC support to mtd, in order to handle recent
NAND device ecc requirements (4 bits or more).
It does so by adding a new ecc mode (NAND_ECC_SOFT_BCH) for use by board
drivers, and a new Kconfig option to enable BCH support. It relies on the
generic BCH library introduced in a previous patch.
When a board driver uses mode NAND_ECC_SOFT_BCH, it should also set fields
chip->ecc.size and chip->ecc.bytes to select BCH ecc data size and required
error correction capability. See nand_bch_init() documentation for details.
It has been tested on the following platforms using mtd-utils, UBI and
UBIFS: x86 (with nandsim), arm926ejs.
Signed-off-by: Ivan Djelic <ivan.djelic@parrot.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/video/i810')
0 files changed, 0 insertions, 0 deletions