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>
Showing
- drivers/mtd/nand/Makefile 1 addition, 0 deletionsdrivers/mtd/nand/Makefile
- drivers/mtd/nand/nand_base.c 38 additions, 1 deletiondrivers/mtd/nand/nand_base.c
- drivers/mtd/nand/nand_bch.c 236 additions, 0 deletionsdrivers/mtd/nand/nand_bch.c
- include/linux/bch.h 79 additions, 0 deletionsinclude/linux/bch.h
- include/linux/mtd/nand.h 3 additions, 7 deletionsinclude/linux/mtd/nand.h
- include/linux/mtd/nand_bch.h 72 additions, 0 deletionsinclude/linux/mtd/nand_bch.h
- lib/Makefile 1 addition, 0 deletionslib/Makefile
- lib/bch.c 1358 additions, 0 deletionslib/bch.c
Loading
Please register or sign in to comment