[U-Boot] [PATCH v2] microblaze: Call spi_init function

Jagannadha Sutradharudu Teki jagannadha.sutradharudu-teki at xilinx.com
Thu Aug 8 15:33:00 CEST 2013


From: Michal Simek <monstr at monstr.eu>

Initialization spi.

Signed-off-by: Michal Simek <monstr at monstr.eu>
Acked-by: Stephan Linz <linz at li-pro.net>
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna at xilinx.com>
---
Changes for v2:
	- rebase to current tree.

 arch/microblaze/lib/board.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c
index 8267191..f7182f2 100644
--- a/arch/microblaze/lib/board.c
+++ b/arch/microblaze/lib/board.c
@@ -16,6 +16,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>
@@ -147,6 +148,10 @@ void board_init_f(ulong not_used)
 	}
 #endif
 
+#ifdef CONFIG_SPI
+	spi_init();
+#endif
+
 	/* relocate environment function pointers etc. */
 	env_relocate();
 
-- 
1.8.3




More information about the U-Boot mailing list