]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/usb/gadget/gadget_chips.h
USB: gadget: MIPS ci13xxx_udc
[linux-2.6.git] / drivers / usb / gadget / gadget_chips.h
index 17d9905101b75a9ebc082b92c9fe00ade4c34f84..c0679b1760276d40b890c9119dcb8fcce4124525 100644 (file)
 #define        gadget_is_m66592(g)     0
 #endif
 
+/* Freescale CPM/QE UDC SUPPORT */
+#ifdef CONFIG_USB_GADGET_FSL_QE
+#define gadget_is_fsl_qe(g)    !strcmp("fsl_qe_udc", (g)->name)
+#else
+#define gadget_is_fsl_qe(g)    0
+#endif
+
+#ifdef CONFIG_USB_GADGET_CI13XXX
+#define gadget_is_ci13xxx(g)   (!strcmp("ci13xxx_udc", (g)->name))
+#else
+#define gadget_is_ci13xxx(g)   0
+#endif
 
 // CONFIG_USB_GADGET_SX2
 // CONFIG_USB_GADGET_AU1X00
@@ -216,6 +228,10 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
                return 0x20;
        else if (gadget_is_m66592(gadget))
                return 0x21;
+       else if (gadget_is_fsl_qe(gadget))
+               return 0x22;
+       else if (gadget_is_ci13xxx(gadget))
+               return 0x23;
        return -ENOENT;
 }