at91: atmel_nand: extract HWECC initialization code into one function: atmel_hw_nand_...
authorWu, Josh <Josh.wu@atmel.com>
Thu, 23 Aug 2012 00:05:34 +0000 (00:05 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 15:06:14 +0000 (17:06 +0200)
commitfe2185ea809955ff2e7364c16ef469df50d39af3
treeecf27181f19f22618ff697ed776e2499899fec19
parent1d7442e653ff1cad27dcfc2a2c19842e564e4bc3
at91: atmel_nand: extract HWECC initialization code into one function: atmel_hw_nand_init_param().

This patch
1. extract the hwecc initialization code into one function. It is a preparation for adding atmel PMECC support.
2. enable CONFIG_SYS_NAND_SELF_INIT. Which make us can configurate the ecc parameters between nand_scan_ident() and nand_scan_tail().

Signed-off-by: Josh Wu <josh.wu@atmel.com>
[fix empty newline at EOF error and move return value check into ifdef]
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/mtd/nand/atmel_nand.c
include/nand.h