mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
PATI: fix broken SPI access
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@elsoft.ch>
This commit is contained in:
parent
6c4c9a7c0f
commit
cf7d4505e3
2 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
return 0;
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
* Last Stage Init
|
||||
|
|
|
@ -98,6 +98,7 @@
|
|||
|
||||
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 1250000 }
|
||||
|
||||
#define CONFIG_BOARD_EARLY_INIT_F
|
||||
|
||||
/***********************************************************************
|
||||
* Last Stage Init
|
||||
|
|
Loading…
Add table
Reference in a new issue