Commit cf7d4505e3403a4ce039dc28c3a473414e7ea6a5

Authored by David Müller (ELSOFT AG)
Committed by Tom Rini
1 parent 6c4c9a7c0f

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>

Showing 2 changed files with 6 additions and 0 deletions Side-by-side Diff

board/mpl/pati/pati.c
... ... @@ -311,6 +311,11 @@
311 311 sysconf->sc_sgpiodt2=reg; /* Data register */
312 312 }
313 313  
  314 +int board_early_init_f(void)
  315 +{
  316 + spi_init_f();
  317 + return 0;
  318 +}
314 319  
315 320 /****************************************************************
316 321 * Last Stage Init
include/configs/PATI.h
... ... @@ -98,6 +98,7 @@
98 98  
99 99 #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 1250000 }
100 100  
  101 +#define CONFIG_BOARD_EARLY_INIT_F
101 102  
102 103 /***********************************************************************
103 104 * Last Stage Init