]> git.sur5r.net Git - u-boot/commitdiff
ARM: SPL: Start hooking in the current SPI SPL support
authorTom Rini <trini@ti.com>
Tue, 14 Aug 2012 19:25:23 +0000 (12:25 -0700)
committerTom Rini <trini@ti.com>
Thu, 27 Sep 2012 16:49:58 +0000 (09:49 -0700)
Signed-off-by: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/omap-common/spl.c
arch/arm/include/asm/spl.h

index 3a1029fa678a325fd2458d375f964671947a06d6..dc2675021806704bb94d85543ecb8a61b336592c 100644 (file)
@@ -174,6 +174,11 @@ void board_init_r(gd_t *id, ulong dummy)
        case BOOT_DEVICE_UART:
                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");
index fdb78b51e4b97679c282b524a03bc3e3fe2ca94f..47ca1b6678c4665a5128fe345f09feb55d58cdc5 100644 (file)
@@ -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