diff options
author | Bo Shen <voice.shen@atmel.com> | 2014-12-03 18:02:20 +0800 |
---|---|---|
committer | Andreas Bießmann <andreas.devel@googlemail.com> | 2015-01-19 15:02:45 +0100 |
commit | da08d791d9e65f9fb82a6b48ee52baacaa68115f (patch) | |
tree | 517c49cb64475c039208d96a368856f8695f811e /board/atmel | |
parent | 765ece8b133be0206353896677b671808b6aa7b4 (diff) | |
download | u-boot-imx-da08d791d9e65f9fb82a6b48ee52baacaa68115f.zip u-boot-imx-da08d791d9e65f9fb82a6b48ee52baacaa68115f.tar.gz u-boot-imx-da08d791d9e65f9fb82a6b48ee52baacaa68115f.tar.bz2 |
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 <voice.shen@atmel.com>
Diffstat (limited to 'board/atmel')
-rw-r--r-- | board/atmel/sama5d4ek/sama5d4ek.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/board/atmel/sama5d4ek/sama5d4ek.c b/board/atmel/sama5d4ek/sama5d4ek.c index d3039c0..d8ff648 100644 --- a/board/atmel/sama5d4ek/sama5d4ek.c +++ b/board/atmel/sama5d4ek/sama5d4ek.c @@ -10,6 +10,7 @@ #include <asm/arch/at91_common.h> #include <asm/arch/at91_pmc.h> #include <asm/arch/at91_rstc.h> +#include <asm/arch/atmel_usba_udc.h> #include <asm/arch/gpio.h> #include <asm/arch/clk.h> #include <asm/arch/sama5d3_smc.h> @@ -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; } |