Skip to contentSkip to conversation

microblaze: Call spi_init function

PATCH New Michal Simek 2 participants 2 messages Aug 10, 2012 Microblaze architecture

lore
Share & tools
lore

Michal Simek

author maintainer
#0 lore raw

PATCH 1/1 microblaze: Call spi_init function

Initialization spi.

---
 arch/microblaze/lib/board.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
arch/microblaze/lib/board.c +5 -0
index 674b573..ef4bac4 100644
@@ -32,6 +32,7 @@
 #include <stdio_dev.h>
 #include <serial.h>
 #include <net.h>
+#include <spi.h>
 #include <linux/compiler.h>
 #include <asm/processor.h>
 #include <asm/microblaze_intc.h>
@@ -166,6 +167,10 @@ void board_init_f(ulong not_used)
 	}
 #endif
 
+#ifdef CONFIG_SPI
+	spi_init();
+#endif
+
 	/* relocate environment function pointers etc. */
 	env_relocate ();
 
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 microblaze: Call spi_init function

Am Freitag, den 10.08.2012, 09:09 +0200 schrieb Michal Simek:

Quoted 3 lines

Initialization spi.

Quoted 27 lines
---
 arch/microblaze/lib/board.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
arch/microblaze/lib/board.c +5 -0
index 674b573..ef4bac4 100644
@@ -32,6 +32,7 @@
 #include <stdio_dev.h>
 #include <serial.h>
 #include <net.h>
+#include <spi.h>
 #include <linux/compiler.h>
 #include <asm/processor.h>
 #include <asm/microblaze_intc.h>
@@ -166,6 +167,10 @@ void board_init_f(ulong not_used)
 	}
 #endif
 
+#ifdef CONFIG_SPI
+	spi_init();
+#endif
+
 	/* relocate environment function pointers etc. */
 	env_relocate ();
 
Signature · 8 lines
Viele Gr??e,
Stephan Linz
______________________________________________________________________________
MB-Ref: http://www.li-pro.de/xilinx_mb:mbref:start
OpenDCC: http://www.li-pro.net/opendcc.phtml
PC/M: http://www.li-pro.net/pcm.phtml
Sourceforge: http://sourceforge.net/users/slz
Gitorious: https://gitorious.org/~slz