[U-Boot] [PATCH 13/17] ARM: SPL: Start hooking in the current SPI SPL support

Tom Rini trini at ti.com
Wed Aug 15 23:30:50 CEST 2012


Signed-off-by: Tom Rini <trini at ti.com>
---
 arch/arm/include/asm/spl.h |    3 +++
 arch/arm/lib/spl.c         |    5 +++++
 2 files changed, 8 insertions(+)

diff --git a/arch/arm/include/asm/spl.h b/arch/arm/include/asm/spl.h
index 41036e9..f0eb96f 100644
--- a/arch/arm/include/asm/spl.h
+++ b/arch/arm/include/asm/spl.h
@@ -60,6 +60,9 @@ void spl_mmc_load_image(void);
 /* YMODEM SPL functions */
 void spl_ymodem_load_image(void);
 
+/* SPI SPL functions */
+void spi_boot(void);
+
 #ifdef CONFIG_SPL_BOARD_INIT
 void spl_board_init(void);
 #endif
diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c
index 3a1029f..dc26750 100644
--- a/arch/arm/lib/spl.c
+++ b/arch/arm/lib/spl.c
@@ -175,6 +175,11 @@ void board_init_r(gd_t *id, ulong dummy)
 		spl_ymodem_load_image();
 		break;
 #endif
+#ifdef CONFIG_SPL_SPI_SUPPORT
+	case BOOT_DEVICE_SPI:
+		spi_boot();
+	break;
+#endif
 	default:
 		puts("SPL: Un-supported Boot Device\n");
 		debug("Found: %d\n", boot_device);
-- 
1.7.9.5



More information about the U-Boot mailing list