diff options
author | Bo Shen | 2014-03-03 14:47:16 +0800 |
---|---|---|
committer | Andreas Bießmann | 2014-03-09 19:19:06 +0100 |
commit | 0b0b4f5981dc46832048944063b31c235dfd9555 (patch) | |
tree | 8c6c8cbc8a350e3830461273604a6f82b54fb5ed /include/nand.h | |
parent | 8a45b0ba87649b1bad459fb235a843f5588a8251 (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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/nand.h b/include/nand.h index 84116f49372..fc735d1ec44 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); |