aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs/mod_gadget.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/renesas_usbhs/mod_gadget.c')
-rw-r--r--drivers/usb/renesas_usbhs/mod_gadget.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c
index 28478ce26c34..dd41f61893ef 100644
--- a/drivers/usb/renesas_usbhs/mod_gadget.c
+++ b/drivers/usb/renesas_usbhs/mod_gadget.c
@@ -883,6 +883,16 @@ static int usbhsg_get_frame(struct usb_gadget *gadget)
883 return usbhs_frame_get_num(priv); 883 return usbhs_frame_get_num(priv);
884} 884}
885 885
886static int usbhsg_pullup(struct usb_gadget *gadget, int is_on)
887{
888 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget);
889 struct usbhs_priv *priv = usbhsg_gpriv_to_priv(gpriv);
890
891 usbhs_sys_function_pullup(priv, is_on);
892
893 return 0;
894}
895
886static int usbhsg_set_selfpowered(struct usb_gadget *gadget, int is_self) 896static int usbhsg_set_selfpowered(struct usb_gadget *gadget, int is_self)
887{ 897{
888 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget); 898 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget);
@@ -900,6 +910,7 @@ static struct usb_gadget_ops usbhsg_gadget_ops = {
900 .set_selfpowered = usbhsg_set_selfpowered, 910 .set_selfpowered = usbhsg_set_selfpowered,
901 .udc_start = usbhsg_gadget_start, 911 .udc_start = usbhsg_gadget_start,
902 .udc_stop = usbhsg_gadget_stop, 912 .udc_stop = usbhsg_gadget_stop,
913 .pullup = usbhsg_pullup,
903}; 914};
904 915
905static int usbhsg_start(struct usbhs_priv *priv) 916static int usbhsg_start(struct usbhs_priv *priv)