summaryrefslogtreecommitdiff
path: root/common/spl/spl.c
diff options
context:
space:
mode:
authorSteve Kipisz <s-kipisz2@ti.com>2013-03-15 08:32:53 -0500
committerFranklin S. Cooper Jr <fcooper@ti.com>2013-03-20 12:43:22 -0500
commit8eb15a787c558fee98b0fa2a66ff0849c732edcc (patch)
treefaff22f14613e5771c7b1715e9cc8dd85df5fcbc /common/spl/spl.c
parentc5878e4113cf6428ae16ca20137c603b931bd780 (diff)
am335x_evm:Add restore flash target and PG1.0 USB SPL support2013.01-am335x-ts1
This patch adds the make targets for PG1.0 - am335x_evm_uart_usbspl - am335x_evm_restore_flash_usbspl It also add the make target - am335x_evm_restore_flash Signed-off-by: Steve Kipisz <s-kipisz2@ti.com>
Diffstat (limited to 'common/spl/spl.c')
-rw-r--r--common/spl/spl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 4765e41d9c..005912655b 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -180,6 +180,13 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
boot_device = spl_boot_device();
debug("boot device - %d\n", boot_device);
+
+#ifdef CONFIG_UART_THEN_USB_SPL
+ /* Hack: load SPL via UART, then use USB */
+ if (boot_device == BOOT_DEVICE_UART)
+ boot_device = BOOT_DEVICE_USBETH;
+#endif
+
switch (boot_device) {
#ifdef CONFIG_SPL_RAM_DEVICE
case BOOT_DEVICE_RAM: