]> git.ipfire.org Git - people/ms/u-boot.git/commit
omap: gpmc: 'nandecc sw' can use HAM1 or BCH8
authorAsh Charles <ashcharles@gmail.com>
Wed, 18 Feb 2015 19:25:11 +0000 (11:25 -0800)
committerTom Rini <trini@konsulko.com>
Fri, 6 Mar 2015 01:49:43 +0000 (20:49 -0500)
commitb050898efa6b4f0272f12885a7365f044ab4c08e
tree11f53adecf81f4c3732d61ebb43b7288de517856
parentd8af39337ea82403fb54a9d345d2e47fac4a8460
omap: gpmc: 'nandecc sw' can use HAM1 or BCH8

The 'nandecc sw' command selects a software-based error correction
algorithm.  By default, this is OMAP_ECC_HAM1_CODE_SW but some
platforms use OMAP_ECC_BCH8_CODE_HW_DETECTION_SW as their
software-based correction algorithm.  Allow a user to be specific e.g.
 # nandecc sw <hamming|bch8>
where 'hamming' is still the default.

Note: we don't just use CONFIG_NAND_OMAP_ECCSCHEME as it might be set
      to a hardware-based ECC scheme---a little strange when the user
      has requested 'sw' ECC.

Signed-off-by: Ash Charles <ashcharles@gmail.com>
arch/arm/cpu/armv7/omap3/board.c
drivers/mtd/nand/omap_gpmc.c