From fe2185ea809955ff2e7364c16ef469df50d39af3 Mon Sep 17 00:00:00 2001 From: "Wu, Josh" Date: Thu, 23 Aug 2012 00:05:34 +0000 Subject: at91: atmel_nand: extract HWECC initialization code into one function: atmel_hw_nand_init_param(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 [fix empty newline at EOF error and move return value check into ifdef] Signed-off-by: Andreas Bießmann --- include/nand.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/nand.h') diff --git a/include/nand.h b/include/nand.h index a48b1b8ed1..c554c552f5 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 -- cgit v1.2.1