summaryrefslogtreecommitdiff
path: root/include
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
parent8a45b0ba87649b1bad459fb235a843f5588a8251 (diff)
downloadu-boot-imx-0b0b4f5981dc46832048944063b31c235dfd9555.zip
u-boot-imx-0b0b4f5981dc46832048944063b31c235dfd9555.tar.gz
u-boot-imx-0b0b4f5981dc46832048944063b31c235dfd9555.tar.bz2
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')
-rw-r--r--include/nand.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/nand.h b/include/nand.h
index 84116f4..fc735d1 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);