Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f5b9cc9 authored by Hvard Skinnemoen's avatar Hvard Skinnemoen Committed by Greg Kroah-Hartman
Browse files

USB: list atmel husb2_udc gadget controller



This identifies the driver for the Atmel HUSB2 Device Controller,
as integrated into the first AVR32 chip, the AT32AP700.

From: Hvard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 49631ca7
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -75,6 +75,12 @@
#define	gadget_is_pxa27x(g)	0
#endif

#ifdef CONFIG_USB_GADGET_HUSB2DEV
#define gadget_is_husb2dev(g)	!strcmp("husb2_udc", (g)->name)
#else
#define gadget_is_husb2dev(g)	0
#endif

#ifdef CONFIG_USB_GADGET_S3C2410
#define gadget_is_s3c2410(g)    !strcmp("s3c2410_udc", (g)->name)
#else
@@ -169,5 +175,7 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
		return 0x16;
	else if (gadget_is_mpc8272(gadget))
		return 0x17;
	else if (gadget_is_husb2dev(gadget))
		return 0x18;
	return -ENOENT;
}