USB: list atmel husb2_udc gadget controller
authorHåvard Skinnemoen <hskinnemoen@atmel.com>
Wed, 17 Jan 2007 19:03:29 +0000 (11:03 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Feb 2007 23:44:39 +0000 (15:44 -0800)
This identifies the driver for the Atmel HUSB2 Device Controller,
as integrated into the first AVR32 chip, the AT32AP700.

From: Håvard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/gadget_chips.h

index aa80f0910720b2006e0b9dde609ba7f7f5cb49b4..2e3d6620d216f5bae7f466f961a9a62c247411a1 100644 (file)
 #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;
 }