projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: nand: omap: Revert to using software ECC by default
[cascardo/linux.git]
/
arch
/
arm
/
mach-omap2
/
gpmc-nand.c
diff --git
a/arch/arm/mach-omap2/gpmc-nand.c
b/arch/arm/mach-omap2/gpmc-nand.c
index
8897ad7
..
cb77643
100644
(file)
--- a/
arch/arm/mach-omap2/gpmc-nand.c
+++ b/
arch/arm/mach-omap2/gpmc-nand.c
@@
-49,7
+49,8
@@
static bool gpmc_hwecc_bch_capable(enum omap_ecc ecc_opt)
return 0;
/* legacy platforms support only HAM1 (1-bit Hamming) ECC scheme */
- if (ecc_opt == OMAP_ECC_HAM1_CODE_HW)
+ if (ecc_opt == OMAP_ECC_HAM1_CODE_HW ||
+ ecc_opt == OMAP_ECC_HAM1_CODE_SW)
return 1;
else
return 0;