]> git.sur5r.net Git - u-boot/blobdiff - include/nand.h
sh: r0p7734: Add support I2C controller
[u-boot] / include / nand.h
index 5dd1710eb281b26c70d8e8fffec675cf1cc693a3..a48b1b8ed1a514831511303abca62cb48fccb96d 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>
+#include <linux/compat.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/nand.h>