summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McMullan <mcmullan@netapp.com>2008-05-30 00:53:37 +0900
committerShinya Kuribayashi <skuribay@ruby.dti.ne.jp>2008-05-30 00:53:37 +0900
commit89a1550ec6b74452274a7a23127936e2c7eec711 (patch)
tree871e822d2e790858cffb84bb8137444f34c3c379
parente996bc339b0f39f6c0b29b1455ba7eb318b023d3 (diff)
downloadu-boot-imx-89a1550ec6b74452274a7a23127936e2c7eec711.zip
u-boot-imx-89a1550ec6b74452274a7a23127936e2c7eec711.tar.gz
u-boot-imx-89a1550ec6b74452274a7a23127936e2c7eec711.tar.bz2
mips: If CONFIG_CMD_SPI is defined, call spi_init()
The mips architecture currently does not call 'spi_init()' in the generic board initialization routine is CONFIG_CMD_SPI is defined. This patch rectifies that problem. Signed-off-by: Jason McMullan <mcmullan@netapp.com> Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
-rw-r--r--lib_mips/board.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib_mips/board.c b/lib_mips/board.c
index 43cfc17..532550b 100644
--- a/lib_mips/board.c
+++ b/lib_mips/board.c
@@ -29,6 +29,7 @@
#include <net.h>
#include <environment.h>
#include <nand.h>
+#include <spi.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -422,6 +423,12 @@ void board_init_r (gd_t *id, ulong dest_addr)
nand_init (); /* go init the NAND */
#endif
+#ifdef CONFIG_CMD_SPI
+ puts ("SPI: ");
+ spi_init (); /* go init the SPI */
+ puts ("ready\n");
+#endif
+
#if defined(CONFIG_MISC_INIT_R)
/* miscellaneous platform dependent initialisations */
misc_init_r ();