]> git.sur5r.net Git - u-boot/commitdiff
spl: support for booting via usbeth
authorIlya Yanok <ilya.yanok@cogentembedded.com>
Tue, 5 Feb 2013 11:36:24 +0000 (11:36 +0000)
committerTom Rini <trini@ti.com>
Mon, 18 Feb 2013 18:48:04 +0000 (13:48 -0500)
In case of usbeth booting just call net_load_image("usb_ether").
This patch also adds CONFIG_SPL_USBETH_SUPPORT and
CONFIG_SPL_MUSB_NEW_SUPPORT config options to enable linking of SPL
against USB gagdet support and new MUSB driver resp.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
common/spl/spl.c
spl/Makefile

index ff9ba7b0a59ef5cff6fddbb7771da8b6d63e26ee..6a5a1365a145af5e05f3e5063bb876873f2d8c25 100644 (file)
@@ -220,6 +220,11 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
                spl_net_load_image(NULL);
 #endif
                break;
+#endif
+#ifdef CONFIG_SPL_USBETH_SUPPORT
+       case BOOT_DEVICE_USBETH:
+               spl_net_load_image("usb_ether");
+               break;
 #endif
        default:
                debug("SPL: Un-supported Boot Device\n");
index 101d478c669a30284dbfec99102fb36a9993e8a6..aac614686e801f8613ad9fa81c142583d91fcc65 100644 (file)
@@ -81,6 +81,8 @@ LIBS-$(CONFIG_SPL_POST_MEM_SUPPORT) += post/drivers/memory.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_MUSB_NEW_SUPPORT) += drivers/usb/musb-new/libusb_musb-new.o
+LIBS-$(CONFIG_SPL_USBETH_SUPPORT) += drivers/usb/gadget/libusb_gadget.o
 
 ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP34XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
 LIBS-y += $(CPUDIR)/omap-common/libomap-common.o