]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/nand.h
nand/fsl_elbc: Convert to self-init
[karo-tx-uboot.git] / include / nand.h
index 5dd1710eb281b26c70d8e8fffec675cf1cc693a3..8b3a1a77a399552b9eb8e10cc9a2746e24989711 100644 (file)
 #ifndef _NAND_H_
 #define _NAND_H_
 
+#include <config.h>
+
+/*
+ * All boards using a given driver must convert to self-init
+ * at the same time, so do it here.  When all drivers are
+ * converted, this will go away.
+ */
+#if defined(CONFIG_NAND_FSL_ELBC)
+#define CONFIG_SYS_NAND_SELF_INIT
+#endif
+
 extern void nand_init(void);
 
 #include <linux/mtd/compat.h>