From d4a3755368ca3d99f0a2b58ced8f8ddd42a80822 Mon Sep 17 00:00:00 2001 From: Mugunthan V N Date: Fri, 18 Nov 2016 11:09:15 +0530 Subject: drivers: usb: gadget: ether/rndis: convert driver to adopt device driver model Adopt usb ether gadget and rndis driver to adopt driver model Signed-off-by: Mugunthan V N --- include/net.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/net.h b/include/net.h index 06320c6514c..1f4d9473500 100644 --- a/include/net.h +++ b/include/net.h @@ -254,6 +254,13 @@ int eth_setenv_enetaddr_by_index(const char *base_name, int index, uchar *enetaddr); +/* + * Initialize USB ethernet device with CONFIG_DM_ETH + * Returns: + * 0 is success, non-zero is error status. + */ +int usb_ether_init(void); + /* * Get the hardware address for an ethernet interface . * Args: -- cgit v1.2.3 From 1dfd7c21124ac21e3eff4964997ac8b189c29a10 Mon Sep 17 00:00:00 2001 From: Mugunthan V N Date: Thu, 17 Nov 2016 14:38:14 +0530 Subject: am335x_evm: enable usb ether gadget as it supports DM_ETH Since usb ether gadget have support for driver model, so enable usb ether gadget. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini --- include/configs/am335x_evm.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'include') diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 49c14df8add..e78afde972a 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -281,12 +281,9 @@ #endif #ifdef CONFIG_USB_MUSB_GADGET -/* Removing USB gadget and can be enabled adter adding support usb DM */ -#ifndef CONFIG_DM_ETH #define CONFIG_USB_ETHER #define CONFIG_USB_ETH_RNDIS #define CONFIG_USBNET_HOST_ADDR "de:ad:be:af:00:00" -#endif /* CONFIG_DM_ETH */ #endif /* CONFIG_USB_MUSB_GADGET */ /* -- cgit v1.2.3