diff options
author | Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | 2007-05-10 00:18:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-12 19:29:45 -0400 |
commit | 4cf2503c6801a69fee25030475eceeefb36d1b56 (patch) | |
tree | d18f2d67a0fc83411458ff581bad53e0fd972ce9 /drivers/usb/gadget/gadget_chips.h | |
parent | 0ca1268e109acf6d71507398cb95cab2e670b654 (diff) |
USB: m66592-udc: peripheral controller driver for M66592
I would like to submit Renesas M66592 udc driver.
The M66592 is Renesas USB 2.0 peripheral controller.
This controller supports USB high-speed.
The driver has been tested Gadget Zero, Ethernet Gadget,
File-backed Storage Gadget, and passed usbtest script.
Signed-off-by : Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/gadget_chips.h')
-rw-r--r-- | drivers/usb/gadget/gadget_chips.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h index d041b919e7b8..96f50e35819f 100644 --- a/drivers/usb/gadget/gadget_chips.h +++ b/drivers/usb/gadget/gadget_chips.h | |||
@@ -125,6 +125,13 @@ | |||
125 | #define gadget_is_mpc8272(g) 0 | 125 | #define gadget_is_mpc8272(g) 0 |
126 | #endif | 126 | #endif |
127 | 127 | ||
128 | #ifdef CONFIG_USB_GADGET_M66592 | ||
129 | #define gadget_is_m66592(g) !strcmp("m66592_udc", (g)->name) | ||
130 | #else | ||
131 | #define gadget_is_m66592(g) 0 | ||
132 | #endif | ||
133 | |||
134 | |||
128 | // CONFIG_USB_GADGET_SX2 | 135 | // CONFIG_USB_GADGET_SX2 |
129 | // CONFIG_USB_GADGET_AU1X00 | 136 | // CONFIG_USB_GADGET_AU1X00 |
130 | // ... | 137 | // ... |
@@ -185,5 +192,7 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget) | |||
185 | return 0x18; | 192 | return 0x18; |
186 | else if (gadget_is_fsl_usb2(gadget)) | 193 | else if (gadget_is_fsl_usb2(gadget)) |
187 | return 0x19; | 194 | return 0x19; |
195 | else if (gadget_is_m66592(gadget)) | ||
196 | return 0x20; | ||
188 | return -ENOENT; | 197 | return -ENOENT; |
189 | } | 198 | } |