Skip to content
Snippets Groups Projects
Commit 89a1550e authored by Jason McMullan's avatar Jason McMullan Committed by Shinya Kuribayashi
Browse files

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: default avatarJason McMullan <mcmullan@netapp.com>
Signed-off-by: default avatarShinya Kuribayashi <skuribay@ruby.dti.ne.jp>
parent e996bc33
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <net.h> #include <net.h>
#include <environment.h> #include <environment.h>
#include <nand.h> #include <nand.h>
#include <spi.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
...@@ -422,6 +423,12 @@ void board_init_r (gd_t *id, ulong dest_addr) ...@@ -422,6 +423,12 @@ void board_init_r (gd_t *id, ulong dest_addr)
nand_init (); /* go init the NAND */ nand_init (); /* go init the NAND */
#endif #endif
#ifdef CONFIG_CMD_SPI
puts ("SPI: ");
spi_init (); /* go init the SPI */
puts ("ready\n");
#endif
#if defined(CONFIG_MISC_INIT_R) #if defined(CONFIG_MISC_INIT_R)
/* miscellaneous platform dependent initialisations */ /* miscellaneous platform dependent initialisations */
misc_init_r (); misc_init_r ();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment