diff options
author | Ilya Yanok <ilya.yanok@cogentembedded.com> | 2012-08-09 02:10:14 +0400 |
---|---|---|
committer | Vishveshwar Bhat <vishveshwar.bhat@ti.com> | 2012-10-23 12:18:59 +0530 |
commit | 83e942e6af17b6127fb701df8f90f5798c022304 (patch) | |
tree | a02fbc53ee4fee7cb08f134ec0f6f729573dce9a | |
parent | 60a2750a2bc22e9297616be013eb5e8dd71f8e78 (diff) | |
download | u-boot-beaglebone-83e942e6af17b6127fb701df8f90f5798c022304.tar.gz |
usb-spl: add hack to load SPL via serial
Just for testing.
Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
-rw-r--r-- | arch/arm/cpu/armv7/omap-common/spl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/spl.c b/arch/arm/cpu/armv7/omap-common/spl.c index f02fa7896..424f6ca62 100644 --- a/arch/arm/cpu/armv7/omap-common/spl.c +++ b/arch/arm/cpu/armv7/omap-common/spl.c @@ -120,6 +120,11 @@ void board_init_r(gd_t *id, ulong dummy) boot_device = omap_boot_device(); debug("boot device - %d\n", boot_device); + + /* Hack: load SPL via UART, then use USB */ + if (boot_device == BOOT_DEVICE_UART) + boot_device = BOOT_DEVICE_USB; + switch (boot_device) { #ifdef CONFIG_SPL_MMC_SUPPORT case BOOT_DEVICE_MMC1: |