Browse Source

ARM: SPL: Start hooking in the current SPI SPL support

Signed-off-by: Tom Rini <trini@ti.com>
Tom Rini 12 years ago
parent
commit
d4c4e0e117
2 changed files with 8 additions and 0 deletions
  1. 5 0
      arch/arm/cpu/armv7/omap-common/spl.c
  2. 3 0
      arch/arm/include/asm/spl.h

+ 5 - 0
arch/arm/cpu/armv7/omap-common/spl.c

@@ -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");

+ 3 - 0
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