]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
[MIPS] lib_mips/board.c: Add nand_init
authorJason McMullan <mcmullan@netapp.com>
Thu, 29 May 2008 15:53:37 +0000 (00:53 +0900)
committerShinya Kuribayashi <skuribay@ruby.dti.ne.jp>
Thu, 29 May 2008 15:53:37 +0000 (00:53 +0900)
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 <mcmullan@netapp.com>
Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
lib_mips/board.c

index 1645f2c7e0c5cb55eed90d7d418ec72139a39ab3..43cfc17353940509a3a538d8f5f783cf5537bf2a 100644 (file)
@@ -28,6 +28,7 @@
 #include <version.h>
 #include <net.h>
 #include <environment.h>
+#include <nand.h>
 
 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 ();