[U-Boot] [PATCH] PATI: fix broken SPI access
Jagan Teki
jagannadh.teki at gmail.com
Tue Sep 30 14:27:41 CEST 2014
On 30 September 2014 16:53, David Müller <d.mueller at elsoft.ch> wrote:
> fix broken SPI access by adding/activating BOARD_EARLY_INIT_F
> functionality and calling spi_init_f() from there.
>
> Signed-off-by: David Müller <d.mueller at elsoft.ch>
> ---
> board/mpl/pati/pati.c | 5 +++++
> include/configs/PATI.h | 1 +
> 2 files changed, 6 insertions(+)
>
> diff --git a/board/mpl/pati/pati.c b/board/mpl/pati/pati.c
> index 5d701a7..b9d88ee 100644
> --- a/board/mpl/pati/pati.c
> +++ b/board/mpl/pati/pati.c
> @@ -311,6 +311,11 @@ void user_led1(int led_on)
> sysconf->sc_sgpiodt2=reg; /* Data register */
> }
>
> +int board_early_init_f(void)
> +{
> + spi_init_f();
Why you need to do this, spi_init_f is trying to call from
arch/powerpc/lib/board.c
any specific reason, I couldn't understand the fix you mentioned on
the commit body.
> + return 0;
> +}
>
> /****************************************************************
> * Last Stage Init
> diff --git a/include/configs/PATI.h b/include/configs/PATI.h
> index 65ab65d..3ca204e 100644
> --- a/include/configs/PATI.h
> +++ b/include/configs/PATI.h
> @@ -98,6 +98,7 @@
>
> #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 1250000 }
>
> +#define CONFIG_BOARD_EARLY_INIT_F
>
> /***********************************************************************
> * Last Stage Init
> --
thanks!
--
Jagan.
More information about the U-Boot
mailing list