diff options
author | Wu, Josh <Josh.wu@atmel.com> | 2012-08-23 00:05:34 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-09-01 17:06:14 +0200 |
commit | fe2185ea809955ff2e7364c16ef469df50d39af3 (patch) | |
tree | ecf27181f19f22618ff697ed776e2499899fec19 /include/nand.h | |
parent | 1d7442e653ff1cad27dcfc2a2c19842e564e4bc3 (diff) | |
download | u-boot-imx-fe2185ea809955ff2e7364c16ef469df50d39af3.zip u-boot-imx-fe2185ea809955ff2e7364c16ef469df50d39af3.tar.gz u-boot-imx-fe2185ea809955ff2e7364c16ef469df50d39af3.tar.bz2 |
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>
Diffstat (limited to 'include/nand.h')
-rw-r--r-- | include/nand.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/nand.h b/include/nand.h index a48b1b8..c554c55 100644 --- a/include/nand.h +++ b/include/nand.h @@ -31,7 +31,7 @@ * at the same time, so do it here. When all drivers are * converted, this will go away. */ -#if defined(CONFIG_NAND_FSL_ELBC) +#if defined(CONFIG_NAND_FSL_ELBC) || defined(CONFIG_NAND_ATMEL) #define CONFIG_SYS_NAND_SELF_INIT #endif |