diff options
author | Heiko Schocher <hs@denx.de> | 2016-06-07 08:55:42 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-06-09 13:53:12 -0400 |
commit | 3a504d9639a2cef276a6e9e31cee11584c885639 (patch) | |
tree | bdcebda90ec7608707c98729efbaef9767a146f1 /arch | |
parent | 5d29e27eb93229f27d2c88d5538ad781c144c852 (diff) | |
download | u-boot-imx-3a504d9639a2cef276a6e9e31cee11584c885639.zip u-boot-imx-3a504d9639a2cef276a6e9e31cee11584c885639.tar.gz u-boot-imx-3a504d9639a2cef276a6e9e31cee11584c885639.tar.bz2 |
mtd: nand: omap: allow to switch to BCH16
support in omap_nand_switch_ecc() also an eccstrength
from 16.
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/armv7/omap3/board.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/omap3/board.c b/arch/arm/cpu/armv7/omap3/board.c index 0c44ea5..5f55977 100644 --- a/arch/arm/cpu/armv7/omap3/board.c +++ b/arch/arm/cpu/armv7/omap3/board.c @@ -280,6 +280,8 @@ static int do_switch_ecc(cmd_tbl_t * cmdtp, int flag, int argc, char * const arg omap_nand_switch_ecc(1, 1); else if (strncmp(argv[2], "bch8", 4) == 0) omap_nand_switch_ecc(1, 8); + else if (strncmp(argv[2], "bch16", 5) == 0) + omap_nand_switch_ecc(1, 16); else goto usage; } @@ -308,8 +310,8 @@ usage: U_BOOT_CMD( nandecc, 3, 1, do_switch_ecc, "switch OMAP3 NAND ECC calculation algorithm", - "hw [hamming|bch8] - Switch between NAND hardware 1-bit hamming and" - " 8-bit BCH\n" + "hw [hamming|bch8|bch16] - Switch between NAND hardware 1-bit hamming" + " and 8-bit/16-bit BCH\n" " ecc calculation (second parameter may" " be omitted).\n" "nandecc sw - Switch to NAND software ecc algorithm." |