From: Jason McMullan Date: Thu, 29 May 2008 15:53:37 +0000 (+0900) Subject: mips: If CONFIG_CMD_SPI is defined, call spi_init() X-Git-Tag: v1.3.4-rc1~114^2~25^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89a1550ec6b74452274a7a23127936e2c7eec711;p=kernel%2Fu-boot.git 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 Signed-off-by: Shinya Kuribayashi --- 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 #include #include +#include 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 ();