mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
kmeter1_nand: allow uasge of NAND_ECC_SOFT_BCH
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>
This commit is contained in:
parent
d42a3b7498
commit
938187329a
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue