From cf7d4505e3403a4ce039dc28c3a473414e7ea6a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20M=C3=BCller=20=28ELSOFT=20AG=29?= Date: Tue, 30 Sep 2014 13:23:54 +0200 Subject: PATI: fix broken SPI access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- board/mpl/pati/pati.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'board/mpl') diff --git a/board/mpl/pati/pati.c b/board/mpl/pati/pati.c index 5d701a7931..b9d88ee17e 100644 --- a/board/mpl/pati/pati.c +++ b/board/mpl/pati/pati.c @@ -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 -- cgit v1.2.1