Lines Matching refs:utmi
167 struct mvebu_cp110_utmi *utmi = port->priv; in mvebu_cp110_utmi_phy_power_off() local
171 regmap_clear_bits(utmi->syscon, SYSCON_UTMI_CFG_REG(port->id), in mvebu_cp110_utmi_phy_power_off()
175 int test = regmap_test_bits(utmi->syscon, in mvebu_cp110_utmi_phy_power_off()
184 regmap_clear_bits(utmi->syscon, SYSCON_USB_CFG_REG, USB_CFG_PLL_MASK); in mvebu_cp110_utmi_phy_power_off()
192 struct mvebu_cp110_utmi *utmi = port->priv; in mvebu_cp110_utmi_phy_power_on() local
211 regmap_update_bits(utmi->syscon, SYSCON_USB_CFG_REG, in mvebu_cp110_utmi_phy_power_on()
229 regmap_set_bits(utmi->syscon, SYSCON_UTMI_CFG_REG(port->id), in mvebu_cp110_utmi_phy_power_on()
265 regmap_set_bits(utmi->syscon, SYSCON_USB_CFG_REG, USB_CFG_PLL_MASK); in mvebu_cp110_utmi_phy_power_on()
285 struct mvebu_cp110_utmi *utmi; in mvebu_cp110_utmi_phy_probe() local
290 utmi = devm_kzalloc(dev, sizeof(*utmi), GFP_KERNEL); in mvebu_cp110_utmi_phy_probe()
291 if (!utmi) in mvebu_cp110_utmi_phy_probe()
294 utmi->dev = dev; in mvebu_cp110_utmi_phy_probe()
297 utmi->syscon = syscon_regmap_lookup_by_phandle(dev->of_node, in mvebu_cp110_utmi_phy_probe()
299 if (IS_ERR(utmi->syscon)) { in mvebu_cp110_utmi_phy_probe()
301 return PTR_ERR(utmi->syscon); in mvebu_cp110_utmi_phy_probe()
305 utmi->regs = devm_platform_ioremap_resource(pdev, 0); in mvebu_cp110_utmi_phy_probe()
306 if (IS_ERR(utmi->regs)) in mvebu_cp110_utmi_phy_probe()
307 return PTR_ERR(utmi->regs); in mvebu_cp110_utmi_phy_probe()
349 utmi->ops = &mvebu_cp110_utmi_phy_ops; in mvebu_cp110_utmi_phy_probe()
352 phy = devm_phy_create(dev, child, utmi->ops); in mvebu_cp110_utmi_phy_probe()
359 port->priv = utmi; in mvebu_cp110_utmi_phy_probe()
367 dev_set_drvdata(dev, utmi); in mvebu_cp110_utmi_phy_probe()