Lines Matching refs:ctrl_phy
144 static void omap_control_usb_host_mode(struct omap_control_phy *ctrl_phy) in omap_control_usb_host_mode() argument
148 val = readl(ctrl_phy->otghs_control); in omap_control_usb_host_mode()
151 writel(val, ctrl_phy->otghs_control); in omap_control_usb_host_mode()
162 static void omap_control_usb_device_mode(struct omap_control_phy *ctrl_phy) in omap_control_usb_device_mode() argument
166 val = readl(ctrl_phy->otghs_control); in omap_control_usb_device_mode()
170 writel(val, ctrl_phy->otghs_control); in omap_control_usb_device_mode()
181 static void omap_control_usb_set_sessionend(struct omap_control_phy *ctrl_phy) in omap_control_usb_set_sessionend() argument
185 val = readl(ctrl_phy->otghs_control); in omap_control_usb_set_sessionend()
188 writel(val, ctrl_phy->otghs_control); in omap_control_usb_set_sessionend()
203 struct omap_control_phy *ctrl_phy; in omap_control_usb_set_mode() local
208 ctrl_phy = dev_get_drvdata(dev); in omap_control_usb_set_mode()
209 if (!ctrl_phy) { in omap_control_usb_set_mode()
214 if (ctrl_phy->type != OMAP_CTRL_TYPE_OTGHS) in omap_control_usb_set_mode()
219 omap_control_usb_host_mode(ctrl_phy); in omap_control_usb_set_mode()
222 omap_control_usb_device_mode(ctrl_phy); in omap_control_usb_set_mode()
225 omap_control_usb_set_sessionend(ctrl_phy); in omap_control_usb_set_mode()