summaryrefslogtreecommitdiff
path: root/common/spl/spl.c
diff options
context:
space:
mode:
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: