From: Bo Shen Date: Wed, 3 Dec 2014 10:02:20 +0000 (+0800) Subject: ARM: atmel: sama5d4ek: add option for usb ethernet gadget X-Git-Tag: v2015.04-rc1~38^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da08d791d9e65f9fb82a6b48ee52baacaa68115f;p=u-boot ARM: atmel: sama5d4ek: add option for usb ethernet gadget Add the option for USB Ethernet gadget based on atmel usb device. Signed-off-by: Bo Shen --- diff --git a/board/atmel/sama5d4ek/sama5d4ek.c b/board/atmel/sama5d4ek/sama5d4ek.c index d3039c021a..d8ff648957 100644 --- a/board/atmel/sama5d4ek/sama5d4ek.c +++ b/board/atmel/sama5d4ek/sama5d4ek.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -293,6 +294,9 @@ int board_init(void) #ifdef CONFIG_CMD_USB sama5d4ek_usb_hw_init(); #endif +#ifdef CONFIG_USB_GADGET_ATMEL_USBA + at91_udp_hw_init(); +#endif return 0; } @@ -312,5 +316,12 @@ int board_eth_init(bd_t *bis) rc = macb_eth_initialize(0, (void *)ATMEL_BASE_GMAC0, 0x00); #endif +#ifdef CONFIG_USB_GADGET_ATMEL_USBA + usba_udc_probe(&pdata); +#ifdef CONFIG_USB_ETH_RNDIS + usb_eth_initialize(bis); +#endif +#endif + return rc; }