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