Lines Matching full:otg
23 #include <linux/usb/otg.h>
33 struct usb_phy *otg; member
79 static int pxa310_ulpi_read(struct usb_phy *otg, u32 reg) in pxa310_ulpi_read() argument
98 static int pxa310_ulpi_write(struct usb_phy *otg, u32 val, u32 reg) in pxa310_ulpi_write() argument
126 /* setup OTG sync mode */ in pxa310_otg_transceiver_rtsm()
139 err = usb_phy_init(u2d->otg); in pxa310_start_otg_host_transcvr()
141 pr_err("OTG transceiver init failed"); in pxa310_start_otg_host_transcvr()
145 err = otg_set_vbus(u2d->otg->otg, 1); in pxa310_start_otg_host_transcvr()
147 pr_err("OTG transceiver VBUS set failed"); in pxa310_start_otg_host_transcvr()
151 err = otg_set_host(u2d->otg->otg, host); in pxa310_start_otg_host_transcvr()
153 pr_err("OTG transceiver Host mode set failed"); in pxa310_start_otg_host_transcvr()
178 /* start OTG host controller */ in pxa310_start_otg_hc()
189 otg_set_host(u2d->otg->otg, NULL); in pxa310_stop_otg_hc()
190 otg_set_vbus(u2d->otg->otg, 0); in pxa310_stop_otg_hc()
191 usb_phy_shutdown(u2d->otg); in pxa310_stop_otg_hc()
221 u2d->otg = otg_ulpi_create(&pxa310_ulpi_access_ops, ulpi_mode); in pxa310_otg_init()
222 if (!u2d->otg) in pxa310_otg_init()
225 u2d->otg->io_priv = u2d->mmio_base; in pxa310_otg_init()
232 kfree(u2d->otg); in pxa310_otg_exit()
324 /* Only PXA310 U2D has OTG functionality */ in pxa3xx_u2d_probe()