Commit d2eef1fc authored by Li Yang's avatar Li Yang Committed by Greg Kroah-Hartman

USB: update gadget files for fsl_usb2_udc driver

Update gadget_chip.c, ether.c for newly added Freescale Highspeed USB
device driver.
Signed-off-by: default avatarLi Yang <leoli@freescale.com>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b504882d
...@@ -282,6 +282,9 @@ MODULE_PARM_DESC(host_addr, "Host Ethernet Address"); ...@@ -282,6 +282,9 @@ MODULE_PARM_DESC(host_addr, "Host Ethernet Address");
#define DEV_CONFIG_CDC #define DEV_CONFIG_CDC
#endif #endif
#ifdef CONFIG_USB_GADGET_FSL_USB2
#define DEV_CONFIG_CDC
#endif
/* For CDC-incapable hardware, choose the simple cdc subset. /* For CDC-incapable hardware, choose the simple cdc subset.
* Anything that talks bulk (without notable bugs) can do this. * Anything that talks bulk (without notable bugs) can do this.
......
...@@ -99,6 +99,12 @@ ...@@ -99,6 +99,12 @@
#define gadget_is_imx(g) 0 #define gadget_is_imx(g) 0
#endif #endif
#ifdef CONFIG_USB_GADGET_FSL_USB2
#define gadget_is_fsl_usb2(g) !strcmp("fsl-usb2-udc", (g)->name)
#else
#define gadget_is_fsl_usb2(g) 0
#endif
/* Mentor high speed function controller */ /* Mentor high speed function controller */
#ifdef CONFIG_USB_GADGET_MUSBHSFC #ifdef CONFIG_USB_GADGET_MUSBHSFC
#define gadget_is_musbhsfc(g) !strcmp("musbhsfc_udc", (g)->name) #define gadget_is_musbhsfc(g) !strcmp("musbhsfc_udc", (g)->name)
...@@ -177,5 +183,7 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget) ...@@ -177,5 +183,7 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
return 0x17; return 0x17;
else if (gadget_is_husb2dev(gadget)) else if (gadget_is_husb2dev(gadget))
return 0x18; return 0x18;
else if (gadget_is_fsl_usb2(gadget))
return 0x19;
return -ENOENT; return -ENOENT;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment