mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user