projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d42a3b7
)
kmeter1_nand: allow uasge of NAND_ECC_SOFT_BCH
author
Holger Brunck
<holger.brunck@keymile.com>
Mon, 21 Jan 2013 03:55:22 +0000
(
03:55
+0000)
committer
Kim Phillips
<kim.phillips@freescale.com>
Fri, 15 Feb 2013 23:47:20 +0000
(17:47 -0600)
If CONFIG_NAND_ECC_BCH is set we use 4-bit error corretion code
instead of the 1-bit error correction code on the NAND device
within this driver.
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Acked-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/kmeter1_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/kmeter1_nand.c
b/drivers/mtd/nand/kmeter1_nand.c
index e8e5b7b85e850af9b48aea30126d100f60dede60..f044597237aa0785c47790e0c34b604e276fd82a 100644
(file)
--- a/
drivers/mtd/nand/kmeter1_nand.c
+++ b/
drivers/mtd/nand/kmeter1_nand.c
@@
-119,7
+119,11
@@
static int kpn_nand_dev_ready(struct mtd_info *mtd)
int board_nand_init(struct nand_chip *nand)
{
+#if defined(CONFIG_NAND_ECC_BCH)
+ nand->ecc.mode = NAND_ECC_SOFT_BCH;
+#else
nand->ecc.mode = NAND_ECC_SOFT;
+#endif
/* Reference hardware control function */
nand->cmd_ctrl = kpn_nand_hwcontrol;