Lines Matching +full:- +full:30 +full:mv

1 // SPDX-License-Identifier: GPL-2.0
7 #include <dt-bindings/phy/phy.h>
37 #define UTMI_CTRL_SUSPEND_SET1 (1 << 30)
42 #define UTMI_CTRL_INPKT_DELAY_SHIFT 30
162 void __iomem *base = pxa_usb_phy->base; in pxa_usb_phy_init()
165 dev_info(&phy->dev, "initializing Marvell PXA USB PHY"); in pxa_usb_phy_init()
168 if (pxa_usb_phy->version == PXA_USB_PHY_PXA910) { in pxa_usb_phy_init()
203 if (pxa_usb_phy->version == PXA_USB_PHY_PXA168) { in pxa_usb_phy_init()
205 * fixing Microsoft Altair board interface with NEC hub issue - in pxa_usb_phy_init()
230 dev_warn(&phy->dev, "calibrate timeout, UTMI_PLL %x\n", in pxa_usb_phy_init()
236 if (pxa_usb_phy->version == PXA_USB_PHY_PXA168) { in pxa_usb_phy_init()
249 void __iomem *base = pxa_usb_phy->base; in pxa_usb_phy_exit()
251 dev_info(&phy->dev, "deinitializing Marvell PXA USB PHY"); in pxa_usb_phy_exit()
253 if (pxa_usb_phy->version == PXA_USB_PHY_PXA168) in pxa_usb_phy_exit()
273 .compatible = "marvell,mmp2-usb-phy",
276 .compatible = "marvell,pxa910-usb-phy",
279 .compatible = "marvell,pxa168-usb-phy",
288 struct device *dev = &pdev->dev; in pxa_usb_phy_probe()
295 return -ENOMEM; in pxa_usb_phy_probe()
297 of_id = of_match_node(pxa_usb_phy_of_match, dev->of_node); in pxa_usb_phy_probe()
299 pxa_usb_phy->version = (uintptr_t)of_id->data; in pxa_usb_phy_probe()
301 pxa_usb_phy->version = PXA_USB_PHY_MMP2; in pxa_usb_phy_probe()
303 pxa_usb_phy->base = devm_platform_ioremap_resource(pdev, 0); in pxa_usb_phy_probe()
304 if (IS_ERR(pxa_usb_phy->base)) { in pxa_usb_phy_probe()
306 return PTR_ERR(pxa_usb_phy->base); in pxa_usb_phy_probe()
309 pxa_usb_phy->phy = devm_phy_create(dev, NULL, &pxa_usb_phy_ops); in pxa_usb_phy_probe()
310 if (IS_ERR(pxa_usb_phy->phy)) { in pxa_usb_phy_probe()
312 return PTR_ERR(pxa_usb_phy->phy); in pxa_usb_phy_probe()
315 phy_set_drvdata(pxa_usb_phy->phy, pxa_usb_phy); in pxa_usb_phy_probe()
322 if (!dev->of_node) { in pxa_usb_phy_probe()
323 phy_create_lookup(pxa_usb_phy->phy, "usb", "mv-udc"); in pxa_usb_phy_probe()
324 phy_create_lookup(pxa_usb_phy->phy, "usb", "pxa-u2oehci"); in pxa_usb_phy_probe()
325 phy_create_lookup(pxa_usb_phy->phy, "usb", "mv-otg"); in pxa_usb_phy_probe()
335 .name = "pxa-usb-phy",