From: Bo Shen Date: Wed, 3 Dec 2014 18:02:20 +0800 Subject: [U-Boot] [PATCH 3/6] ARM: atmel: sama5d4ek: add option for usb ethernet gadget In-Reply-To: <1417600943-7566-1-git-send-email-voice.shen@atmel.com> References: <1417600943-7566-1-git-send-email-voice.shen@atmel.com> Message-ID: <1417600943-7566-4-git-send-email-voice.shen@atmel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add the option for USB Ethernet gadget based on atmel usb device. Signed-off-by: Bo Shen --- board/atmel/sama5d4ek/sama5d4ek.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/board/atmel/sama5d4ek/sama5d4ek.c b/board/atmel/sama5d4ek/sama5d4ek.c index f8394f5..e014e0a 100644 --- a/board/atmel/sama5d4ek/sama5d4ek.c +++ b/board/atmel/sama5d4ek/sama5d4ek.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -294,6 +295,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; } @@ -313,5 +317,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; } -- 2.1.0.24.g4109c28