Skip to content
Snippets Groups Projects
Commit cf7d4505 authored by David Müller (ELSOFT AG)'s avatar David Müller (ELSOFT AG) Committed by Tom Rini
Browse files

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: default avatarDavid Müller <d.mueller@elsoft.ch>
parent 6c4c9a7c
No related branches found
No related tags found
No related merge requests found
...@@ -311,6 +311,11 @@ void user_led1(int led_on) ...@@ -311,6 +311,11 @@ void user_led1(int led_on)
sysconf->sc_sgpiodt2=reg; /* Data register */ sysconf->sc_sgpiodt2=reg; /* Data register */
} }
int board_early_init_f(void)
{
spi_init_f();
return 0;
}
/**************************************************************** /****************************************************************
* Last Stage Init * Last Stage Init
......
...@@ -98,6 +98,7 @@ ...@@ -98,6 +98,7 @@
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 1250000 } #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 1250000 }
#define CONFIG_BOARD_EARLY_INIT_F
/*********************************************************************** /***********************************************************************
* Last Stage Init * Last Stage Init
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment