Skip to content
Snippets Groups Projects
Commit e3941167 authored by Hugo Villeneuve's avatar Hugo Villeneuve Committed by Jean-Christophe PLAGNIOL-VILLARD
Browse files

ARM DaVinci: Removed redundant NAND initialization code.


ARM DaVinci: Removed redundant NAND initialization code.

Signed-off-by: default avatarHugo Villeneuve <hugo.villeneuve@lyrtech.com>
parent b3fb663b
No related branches found
No related tags found
No related merge requests found
...@@ -369,12 +369,11 @@ int board_nand_init(struct nand_chip *nand) ...@@ -369,12 +369,11 @@ int board_nand_init(struct nand_chip *nand)
nand->options = NAND_USE_FLASH_BBT; nand->options = NAND_USE_FLASH_BBT;
#endif #endif
#ifdef CFG_NAND_HW_ECC #ifdef CFG_NAND_HW_ECC
#ifdef CFG_NAND_LARGEPAGE
nand->ecc.mode = NAND_ECC_HW; nand->ecc.mode = NAND_ECC_HW;
#ifdef CFG_NAND_LARGEPAGE
nand->ecc.size = 2048; nand->ecc.size = 2048;
nand->ecc.bytes = 12; nand->ecc.bytes = 12;
#elif defined(CFG_NAND_SMALLPAGE) #elif defined(CFG_NAND_SMALLPAGE)
nand->ecc.mode = NAND_ECC_HW;
nand->ecc.size = 512; nand->ecc.size = 512;
nand->ecc.bytes = 3; nand->ecc.bytes = 3;
#else #else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment