[U-Boot] [PATCH] PATI: fix broken SPI access

David Müller (ELSOFT AG) d.mueller at elsoft.ch
Tue Sep 30 15:11:15 CEST 2014


Jagan Teki wrote:
> On 30 September 2014 16:53, David Müller <d.mueller at elsoft.ch> wrote:
>> +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.

There is an EEPROM attached to the SPI channel containing vital board
data. Calling spi_init_f() from arch/powerpc/lib/board.c will be too late.



More information about the U-Boot mailing list