<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-op-linux/include/linux/mtd/nand_bch.h, branch v3.3</title>
<subtitle>Talos™ II Linux sources for OpenPOWER</subtitle>
<id>https://git.raptorcs.com/git/talos-op-linux/atom?h=v3.3</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-op-linux/atom?h=v3.3'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/'/>
<updated>2011-03-11T17:49:08+00:00</updated>
<entry>
<title>mtd: nand: add software BCH ECC support</title>
<updated>2011-03-11T17:49:08+00:00</updated>
<author>
<name>Ivan Djelic</name>
<email>ivan.djelic@parrot.com</email>
</author>
<published>2011-03-11T10:05:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=193bd40026443835e1b96c79d5efe559d01509ae'/>
<id>urn:sha1:193bd40026443835e1b96c79d5efe559d01509ae</id>
<content type='text'>
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-&gt;ecc.size and chip-&gt;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 &lt;ivan.djelic@parrot.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
</feed>
