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>
This commit is contained in:

committed by
Felipe Balbi

parent
e2eddc6103
commit
034d7c13a7
@@ -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);
|
||||
|
Reference in New Issue
Block a user