From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shinya Kuribayashi Date: Thu, 22 May 2008 23:50:26 +0900 Subject: [U-Boot-Users] [PATCH] mips: Call 'nand_init()' in generic board initialization when CONFIG_CMD_NAND is set In-Reply-To: <1210861819-28024-1-git-send-email-mcmullan@netapp.com> References: <> <1210861819-28024-1-git-send-email-mcmullan@netapp.com> Message-ID: <48358832.4000807@ruby.dti.ne.jp> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Jason McMullan wrote: > --- > lib_mips/board.c | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) As you submitted this patch and its description separately, I manually combined them with two CodingStyle fixes. Now you seem to be getting along with git :-) Applied, thanks. Will be pushed out soon. Shinya ================================> [MIPS] lib_mips/board.c: Add nand_init This patch adds 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 Signed-off-by: Shinya Kuribayashi --- lib_mips/board.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/lib_mips/board.c b/lib_mips/board.c index 1645f2c..43cfc17 100644 --- a/lib_mips/board.c +++ b/lib_mips/board.c @@ -28,6 +28,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -416,6 +417,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 ();