summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Yanok <ilya.yanok@cogentembedded.com>2012-08-09 01:55:53 +0400
committerVishveshwar Bhat <vishveshwar.bhat@ti.com>2012-10-23 12:18:59 +0530
commit8fcd7e1622c77cd02c832061ac2f87196e7fb2c8 (patch)
treecd6dde6b4f49afa04e1a9c421bdaec81b9cfe408
parent0739b40c6d04ecf97c09a26b3f28923ce394f94a (diff)
downloadu-boot-beaglebone-8fcd7e1622c77cd02c832061ac2f87196e7fb2c8.tar.gz
OMAP: spl: usb booting support
Enable support for booting via USB device. For now it's only supported on AM33xx. Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
-rw-r--r--arch/arm/cpu/armv7/omap-common/spl.c5
-rw-r--r--arch/arm/include/asm/omap_common.h1
-rw-r--r--spl/Makefile2
3 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/spl.c b/arch/arm/cpu/armv7/omap-common/spl.c
index 5dd4c680c..f02fa7896 100644
--- a/arch/arm/cpu/armv7/omap-common/spl.c
+++ b/arch/arm/cpu/armv7/omap-common/spl.c
@@ -151,6 +151,11 @@ void board_init_r(gd_t *id, ulong dummy)
#endif
break;
#endif
+#ifdef CONFIG_SPL_USB_ETH_SUPPORT
+ case BOOT_DEVICE_USB:
+ spl_net_load_image("usb_ether");
+ break;
+#endif
default:
printf("SPL: Un-supported Boot Device - %d!!!\n", boot_device);
hang();
diff --git a/arch/arm/include/asm/omap_common.h b/arch/arm/include/asm/omap_common.h
index ace4a20d5..c5f33f16d 100644
--- a/arch/arm/include/asm/omap_common.h
+++ b/arch/arm/include/asm/omap_common.h
@@ -59,6 +59,7 @@
#define BOOT_DEVICE_MMC2 9 /* eMMC or daughter card */
#define BOOT_DEVICE_SPI 11
#define BOOT_DEVICE_UART 65
+#define BOOT_DEVICE_USB 68
#define BOOT_DEVICE_CPGMAC 70
#endif
diff --git a/spl/Makefile b/spl/Makefile
index c96bed084..47394970c 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -51,6 +51,8 @@ LIBS-$(CONFIG_SPL_NAND_SUPPORT) += drivers/mtd/nand/libnand.o
LIBS-$(CONFIG_SPL_NET_SUPPORT) += net/libnet.o
LIBS-$(CONFIG_SPL_ETH_SUPPORT) += drivers/net/libnet.o
LIBS-$(CONFIG_SPL_ETH_SUPPORT) += drivers/net/phy/libphy.o
+LIBS-$(CONFIG_SPL_USB_ETH_SUPPORT) += drivers/usb/gadget/libusb_gadget.o
+LIBS-$(CONFIG_SPL_MUSB_GADGET_SUPPORT) += drivers/usb/musb-new/libusb_musb-new.o
ifeq ($(SOC),ti81xx)
LIBS-y += $(CPUDIR)/omap-common/libomap-common.o