summaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs/mod.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-10-10 22:07:40 -0700
committerFelipe Balbi <balbi@ti.com>2011-10-13 20:41:52 +0300
commit034d7c13a79c67d3b52dd782d68e6c324613878a (patch)
tree7fb097e30b0ac121450101da3f9ddfbb8f5f60a2 /drivers/usb/renesas_usbhs/mod.h
parente2eddc6103c7f00a2a1a0dfe5fac494d039b099a (diff)
downloadtalos-obmc-linux-034d7c13a79c67d3b52dd782d68e6c324613878a.tar.gz
talos-obmc-linux-034d7c13a79c67d3b52dd782d68e6c324613878a.zip
usb: gadget: renesas_usbhs: add mod_host support
This is mod_host prototype support for renesas_usbhs driver. It doesn't support USB-Hub, and USB-DMAC for now. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs/mod.h')
-rw-r--r--drivers/usb/renesas_usbhs/mod.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/mod.h b/drivers/usb/renesas_usbhs/mod.h
index df4b61dab313..1f28ed2e9abe 100644
--- a/drivers/usb/renesas_usbhs/mod.h
+++ b/drivers/usb/renesas_usbhs/mod.h
@@ -139,8 +139,21 @@ void usbhs_irq_callback_update(struct usbhs_priv *priv, struct usbhs_mod *mod);
})
/*
- * gadget control
+ * host / gadget control
*/
+#ifdef CONFIG_USB_RENESAS_USBHS_HCD
+extern int __devinit usbhs_mod_host_probe(struct usbhs_priv *priv);
+extern int __devexit usbhs_mod_host_remove(struct usbhs_priv *priv);
+#else
+static inline int usbhs_mod_host_probe(struct usbhs_priv *priv)
+{
+ return 0;
+}
+static inline void usbhs_mod_host_remove(struct usbhs_priv *priv)
+{
+}
+#endif
+
#ifdef CONFIG_USB_RENESAS_USBHS_UDC
extern int __devinit usbhs_mod_gadget_probe(struct usbhs_priv *priv);
extern void __devexit usbhs_mod_gadget_remove(struct usbhs_priv *priv);
OpenPOWER on IntegriCloud