summaryrefslogtreecommitdiff
path: root/include/nand.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/nand.h')
-rw-r--r--include/nand.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/nand.h b/include/nand.h
index 5dd1710eb2..8b3a1a77a3 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -24,6 +24,17 @@
#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>