PATI: fix broken SPI access
authorDavid Müller (ELSOFT AG) <d.mueller@elsoft.ch>
Tue, 30 Sep 2014 11:23:54 +0000 (13:23 +0200)
committerTom Rini <trini@ti.com>
Fri, 10 Oct 2014 13:44:44 +0000 (09:44 -0400)
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>
board/mpl/pati/pati.c
include/configs/PATI.h

index 5d701a7931d063f77826645c989f7b8d869c97eb..b9d88ee17e3e7a95b411bb653124710b453db498 100644 (file)
@@ -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
index 65ab65d4459905518a5c06fd1312f988f4f38819..3ca204e1e2e4676a7b71d31520171e11fcb94a04 100644 (file)
@@ -98,6 +98,7 @@
 
 #define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 1250000 }
 
+#define CONFIG_BOARD_EARLY_INIT_F
 
 /***********************************************************************
  * Last Stage Init