1 From 888b33e84082fe72d60d528c05c885c0c9d70bc4 Mon Sep 17 00:00:00 2001
2 From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
3 Date: Tue, 6 Nov 2012 21:19:43 +0100
4 Subject: MIPS: add SPI flash init hook
6 Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
8 --- a/arch/mips/lib/board.c
9 +++ b/arch/mips/lib/board.c
12 #include <onenand_uboot.h>
14 +#include <spi_flash.h>
16 #ifdef CONFIG_BITBANGMII
18 @@ -312,6 +313,16 @@ void board_init_r(gd_t *id, ulong dest_a
22 +#ifdef CONFIG_CMD_SPI
24 + spi_init(); /* go init the SPI */
28 +#if defined(CONFIG_SPI_FLASH)
32 /* relocate environment function pointers etc. */
35 @@ -335,12 +346,6 @@ void board_init_r(gd_t *id, ulong dest_a
36 /* Initialize from environment */
37 load_addr = getenv_ulong("loadaddr", 16, load_addr);
39 -#ifdef CONFIG_CMD_SPI
41 - spi_init(); /* go init the SPI */
45 #if defined(CONFIG_MISC_INIT_R)
46 /* miscellaneous platform dependent initialisations */