summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2012-01-12 19:07:23 -0600
committerScott Wood <scottwood@freescale.com>2012-01-26 16:09:06 -0600
commit578931b34d0a26974f14640fa4ec3aadeb2145cd (patch)
tree6ca33378286e482078718d76e2e195fad988bcd3 /include
parent25efd99dbb1352314c9eacdfae42064c2ca15499 (diff)
downloadu-boot-imx-578931b34d0a26974f14640fa4ec3aadeb2145cd.zip
u-boot-imx-578931b34d0a26974f14640fa4ec3aadeb2145cd.tar.gz
u-boot-imx-578931b34d0a26974f14640fa4ec3aadeb2145cd.tar.bz2
nand: Introduce CONFIG_SYS_NAND_SELF_INIT
This allows a driver to run code between nand_scan_ident() and nand_scan_tail(), among other things. See the additions to doc/README.nand for details. To allow a gradual transition, Boards that don't set CONFIG_SYS_NAND_SELF_INIT will still be initialized the old way, but new drivers should not require this, and existing drivers should be converted when convenient. Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/nand.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/nand.h b/include/nand.h
index d444ddc..5dd1710 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -30,7 +30,12 @@ extern void nand_init(void);
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h>
+#ifdef CONFIG_SYS_NAND_SELF_INIT
+void board_nand_init(void);
+int nand_register(int devnum);
+#else
extern int board_nand_init(struct nand_chip *nand);
+#endif
typedef struct mtd_info nand_info_t;