mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 23:51:33 +00:00
ARM DaVinci: Removed redundant NAND initialization code.
ARM DaVinci: Removed redundant NAND initialization code. Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
This commit is contained in:
parent
b3fb663b20
commit
e394116746
1 changed files with 1 additions and 2 deletions
|
@ -369,12 +369,11 @@ int board_nand_init(struct nand_chip *nand)
|
|||
nand->options = NAND_USE_FLASH_BBT;
|
||||
#endif
|
||||
#ifdef CFG_NAND_HW_ECC
|
||||
#ifdef CFG_NAND_LARGEPAGE
|
||||
nand->ecc.mode = NAND_ECC_HW;
|
||||
#ifdef CFG_NAND_LARGEPAGE
|
||||
nand->ecc.size = 2048;
|
||||
nand->ecc.bytes = 12;
|
||||
#elif defined(CFG_NAND_SMALLPAGE)
|
||||
nand->ecc.mode = NAND_ECC_HW;
|
||||
nand->ecc.size = 512;
|
||||
nand->ecc.bytes = 3;
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue