]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:24:11 +0000 (14:24 +0200)
commitfe601a77578722c97fa2fd9fbc20a90fc1c907d6
treeccb63f601a8e53e20696f7a893b431a33e0751b3
parent8f2cfc5ad338cf9b54de29dad00f4b5beb29069c
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