[U-Boot] [PATCH 1/2] nand: Merge BCH code from Linux nand driver

Wolfgang Denk wd at denx.de
Thu Oct 6 23:07:27 CEST 2011


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.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Do you know the one -- "All I ask is a tall ship, and a star to steer
her by ..." You could feel the wind at your back, about you  ...  the
sounds of the sea beneath you. And even if you take away the wind and
the  water,  it's  still the same. The ship is yours ... you can feel
her ... and the stars are still there.
	-- Kirk, "The Ultimate Computer", stardate 4729.4


More information about the U-Boot mailing list