[U-Boot] [PATCH 1/2] nand: Merge BCH code from Linux nand driver
Tom Rini
tom.rini at gmail.com
Fri Oct 7 03:47:50 CEST 2011
On Thu, Oct 6, 2011 at 2:07 PM, Wolfgang Denk <wd at denx.de> wrote:
> Dear "Hitz, Christian",
>
> In message <CD1B567EF015FE41B29FF476B8600DDD26BBF25B88 at vsrv-mail01.newtechgroup.local> you wrote:
>> 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 at aizo.com>
>> ---
>> drivers/mtd/nand/Makefile | 1 +
>> drivers/mtd/nand/nand_base.c | 39 ++-
>> drivers/mtd/nand/nand_bch.c | 236 ++++++++
>> drivers/mtd/nand/nand_ids.c | 35 ++
>> include/linux/bch.h | 79 +++
>> include/linux/mtd/nand.h | 10 +-
>> include/linux/mtd/nand_bch.h | 72 +++
>> lib/Makefile | 1 +
>> lib/bch.c | 1358 ++++++++++++++++++++++++++++++++++++++++++
>> 9 files changed, 1823 insertions(+), 8 deletions(-)
>> create mode 100644 drivers/mtd/nand/nand_bch.c
>> create mode 100644 include/linux/bch.h
>> create mode 100644 include/linux/mtd/nand_bch.h
>> create mode 100644 lib/bch.c
>
> Checkpatch says:
>
> total: 566 errors, 1052 warnings, 1912 lines checked
>
> Please clean up and resubmit. Thanks.
Not that I've checked personally but might this be a case of matching
the kernel code and keeping in sync there?
--
Tom
More information about the U-Boot
mailing list