summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/Makefile
diff options
context:
space:
mode:
authorChristian Hitz <christian.hitz@aizo.com>2011-10-12 09:31:59 +0200
committerScott Wood <scottwood@freescale.com>2012-01-26 16:09:02 -0600
commit4c6de8560cb42a6b6c2d565d41b6801e4b02d4b3 (patch)
tree1244963352384b2b50a920020bab7370918c303e /drivers/mtd/nand/Makefile
parent4d2aee2b3681234691b102194cc2f14857272828 (diff)
downloadu-boot-imx-4c6de8560cb42a6b6c2d565d41b6801e4b02d4b3.zip
u-boot-imx-4c6de8560cb42a6b6c2d565d41b6801e4b02d4b3.tar.gz
u-boot-imx-4c6de8560cb42a6b6c2d565d41b6801e4b02d4b3.tar.bz2
nand: Merge BCH code from Linux nand driver
[backport from linux commit 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe] This patch merges the BCH ECC algorithm from the 3.0 Linux kernel. This enables U-Boot to support modern NAND flash chips that require more than 1-bit of ECC in software. Signed-off-by: Christian Hitz <christian.hitz@aizo.com> Cc: Scott Wood <scottwood@freescale.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'drivers/mtd/nand/Makefile')
-rw-r--r--drivers/mtd/nand/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile
index 36ee454..1d1b628 100644
--- a/drivers/mtd/nand/Makefile
+++ b/drivers/mtd/nand/Makefile
@@ -41,6 +41,7 @@ COBJS-y += nand_util.o
endif
COBJS-y += nand_ecc.o
COBJS-y += nand_base.o
+COBJS-$(CONFIG_NAND_ECC_BCH) += nand_bch.o
COBJS-$(CONFIG_NAND_ATMEL) += atmel_nand.o
COBJS-$(CONFIG_DRIVER_NAND_BFIN) += bfin_nand.o