public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] PATI: fix broken SPI access
@ 2014-09-30 11:23 David Müller
  2014-09-30 12:27 ` Jagan Teki
  2014-10-10 14:41 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 10+ messages in thread
From: David Müller @ 2014-09-30 11:23 UTC (permalink / raw)
  To: u-boot

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  | 5 +++++
 include/configs/PATI.h | 1 +
 2 files changed, 6 insertions(+)

diff --git a/board/mpl/pati/pati.c b/board/mpl/pati/pati.c
index 5d701a7..b9d88ee 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
diff --git a/include/configs/PATI.h b/include/configs/PATI.h
index 65ab65d..3ca204e 100644
--- a/include/configs/PATI.h
+++ b/include/configs/PATI.h
@@ -98,6 +98,7 @@
 
 #define CONFIG_SYS_BAUDRATE_TABLE	{ 9600, 19200, 38400, 57600, 115200, 1250000 }
 
+#define CONFIG_BOARD_EARLY_INIT_F
 
 /***********************************************************************
  * Last Stage Init
-- 
1.8.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-10-10 16:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-30 11:23 [U-Boot] [PATCH] PATI: fix broken SPI access David Müller
2014-09-30 12:27 ` Jagan Teki
2014-09-30 13:11   ` David Müller (ELSOFT AG)
2014-09-30 14:36     ` Jagan Teki
2014-09-30 14:48       ` Tom Rini
2014-10-10 16:14         ` Tom Rini
2014-10-10 16:22           ` Jagan Teki
2014-09-30 14:58       ` David Müller (ELSOFT AG)
2014-09-30 16:08         ` Jagan Teki
2014-10-10 14:41 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox