]> git.ipfire.org Git - people/ms/u-boot.git/commit
MTD:NAND: ADD new ECC mode NAND_ECC_HW_OOB_FIRST
authorSandeep Paulraj <s-paulraj@ti.com>
Mon, 10 Aug 2009 17:27:56 +0000 (13:27 -0400)
committerScott Wood <scottwood@freescale.com>
Wed, 26 Aug 2009 20:37:03 +0000 (15:37 -0500)
commitf83b7f9e8a5d1334e24506ea5953dd871596ea8a
treeca8a545a60fa8fbc6f912ff6286ea1bd78c4b0a1
parent36fab997d85d89ee7fd2c7fd6057fab786d556aa
MTD:NAND: ADD new ECC mode NAND_ECC_HW_OOB_FIRST

This patch adds the new mode NAND_ECC_HW_OOB_FIRST in the nand code to
support 4-bit ECC on TI DaVinci devices with large page (up to 2K) NAND
chips.  This ECC mode is similar to NAND_ECC_HW, with the exception of
read_page API that first reads the OOB area, reads the data in chunks,
feeds the ECC from OOB area to the ECC hw engine and perform any
correction on the data as per the ECC status reported by the engine.

This patch has been accepted by Andrew Morton and can be found at

http://userweb.kernel.org/~akpm/mmotm/broken-out/mtd-nand-add-new-ecc-mode-ecc_hw_oob_first.patch

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sneha Narnakaje <nsnehaprabha@ti.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/nand_base.c
include/linux/mtd/nand.h