aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/gadget_chips.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-04-04 22:40:54 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-13 19:07:07 -0400
commit2f98382dcdfe1f0048b447da35f34507ffb514dc (patch)
tree2b488080471eceb387de0f7ccb22d8a8c12be403 /drivers/usb/gadget/gadget_chips.h
parentf1407d5c66240b33d11a7f1a41d55ccf6a9d7647 (diff)
usb: renesas_usbhs: Add Renesas USBHS Gadget
This patch add usb gadget code to SuperH USBHS. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h
index e896f6359dfe..ec3fd979c71d 100644
--- a/drivers/usb/gadget/gadget_chips.h
+++ b/drivers/usb/gadget/gadget_chips.h
@@ -148,6 +148,12 @@
148#define gadget_is_ci13xxx_msm(g) 0 148#define gadget_is_ci13xxx_msm(g) 0
149#endif 149#endif
150 150
151#ifdef CONFIG_USB_GADGET_RENESAS_USBHS
152#define gadget_is_renesas_usbhs(g) (!strcmp("renesas_usbhs_udc", (g)->name))
153#else
154#define gadget_is_renesas_usbhs(g) 0
155#endif
156
151/** 157/**
152 * usb_gadget_controller_number - support bcdDevice id convention 158 * usb_gadget_controller_number - support bcdDevice id convention
153 * @gadget: the controller being driven 159 * @gadget: the controller being driven
@@ -207,6 +213,9 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
207 return 0x27; 213 return 0x27;
208 else if (gadget_is_ci13xxx_msm(gadget)) 214 else if (gadget_is_ci13xxx_msm(gadget))
209 return 0x28; 215 return 0x28;
216 else if (gadget_is_renesas_usbhs(gadget))
217 return 0x29;
218
210 return -ENOENT; 219 return -ENOENT;
211} 220}
212 221