mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
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>
This commit is contained in:
parent
1d7442e653
commit
fe2185ea80
2 changed files with 88 additions and 60 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue