summaryrefslogtreecommitdiff
path: root/include/nand.h
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2014-03-03 14:47:16 +0800
committerAndreas Bießmann <andreas.devel@googlemail.com>2014-03-09 19:19:06 +0100
commit0b0b4f5981dc46832048944063b31c235dfd9555 (patch)
tree8c6c8cbc8a350e3830461273604a6f82b54fb5ed /include/nand.h
parent8a45b0ba87649b1bad459fb235a843f5588a8251 (diff)
mtd: nand: atmel: prepare for nand spl boot support
Prepare for nand spl boot support. It supports nand software ECC and hardware PMECC. This patch is take <drivers/mtd/nand/nand_spl_simple.c> as reference. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'include/nand.h')
-rw-r--r--include/nand.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/nand.h b/include/nand.h
index 84116f4937..fc735d1ec4 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -21,10 +21,16 @@
* at the same time, so do it here. When all drivers are
* converted, this will go away.
*/
+#ifdef CONFIG_SPL_BUILD
+#if defined(CONFIG_NAND_FSL_ELBC) || defined(CONFIG_NAND_FSL_IFC)
+#define CONFIG_SYS_NAND_SELF_INIT
+#endif
+#else
#if defined(CONFIG_NAND_FSL_ELBC) || defined(CONFIG_NAND_ATMEL)\
|| defined(CONFIG_NAND_FSL_IFC)
#define CONFIG_SYS_NAND_SELF_INIT
#endif
+#endif
extern void nand_init(void);