mips: Call 'nand_init()' in generic board initialization when CONFIG_CMD_NAND is set
PATCH 1/1 mips: Call 'nand_init()' in generic board initialization when CONFIG_CMD_NAND is set
This patch add the standard 'nand_init()' call to the mips generic 'board_init_r()' call, bringing MIPS in line with the other architectures.
Signed-off-by Jason McMullan <[email protected]>
PATCH 1/1 mips: Call 'nand_init()' in generic board initialization when CONFIG_CMD_NAND is set
--- lib_mips/board.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
lib_mips/board.c +7 -0
@@ -48,6 +48,8 @@ extern int incaip_set_cpuclk(void);extern ulong uboot_end_data;extern ulong uboot_end; +extern void nand_init (void ); +ulong monitor_flash_len; const char version_string[] =
@@ -416,6 +418,11 @@ void board_init_r (gd_t *id, ulong dest_addr) }#endif +#ifdef CONFIG_CMD_NAND +puts ("NAND: " ); +nand_init ();/* go init the NAND */ +#endif +#if defined(CONFIG_MISC_INIT_R )/* miscellaneous platform dependent initialisations */ misc_init_r ();
Signature · 1 line
1.5.4.3
PATCH 1/1 mips: Call 'nand_init()' in generic board initialization when CONFIG_CMD_NAND is set
Quoted 9 lines · Jason McMullan
--- lib_mips/board.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)lib_mips/board.c +0
-0
lib_mips/board.c extern int incaip_set_cpuclk(void); · line 52
Quoted 5 lines
lib_mips/board.c +2
-0@@ -48,6 +48,8 @@ extern int incaip_set_cpuclk(void);extern ulong uboot_end_data;extern ulong uboot_end; +extern void nand_init (void ); +
Please include <nand.h> instead.
-Scott