Patchwork [U-Boot] microblaze: Call spi_init function

login
register
mail settings
Submitter Michal Simek
Date Aug. 10, 2012, 7:09 a.m.
Message ID <1344582541-31390-1-git-send-email-monstr@monstr.eu>
Download mbox | patch
Permalink /patch/176394/
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Comments

Michal Simek - Aug. 10, 2012, 7:09 a.m.
Initialization spi.

Signed-off-by: Michal Simek <monstr@monstr.eu>
---
 arch/microblaze/lib/board.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
Stephan Linz - Aug. 10, 2012, 4:16 p.m.
Am Freitag, den 10.08.2012, 09:09 +0200 schrieb Michal Simek: 
> Initialization spi.
> 
> Signed-off-by: Michal Simek <monstr@monstr.eu>

Acked-by: Stephan Linz <linz@li-pro.net>

> ---
>  arch/microblaze/lib/board.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c
> index 674b573..ef4bac4 100644
> --- a/arch/microblaze/lib/board.c
> +++ b/arch/microblaze/lib/board.c
> @@ -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 ();
>

Patch

diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c
index 674b573..ef4bac4 100644
--- a/arch/microblaze/lib/board.c
+++ b/arch/microblaze/lib/board.c
@@ -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 ();