Lines Matching +full:vco +full:- +full:offset
1 // SPDX-License-Identifier: GPL-2.0
114 static unsigned int u2o_get(void __iomem *base, unsigned int offset) in u2o_get() argument
116 return readl_relaxed(base + offset); in u2o_get()
119 static void u2o_set(void __iomem *base, unsigned int offset, in u2o_set() argument
124 reg = readl_relaxed(base + offset); in u2o_set()
126 writel_relaxed(reg, base + offset); in u2o_set()
127 readl_relaxed(base + offset); in u2o_set()
130 static void u2o_clear(void __iomem *base, unsigned int offset, in u2o_clear() argument
135 reg = readl_relaxed(base + offset); in u2o_clear()
137 writel_relaxed(reg, base + offset); in u2o_clear()
138 readl_relaxed(base + offset); in u2o_clear()
144 void __iomem *base = mmp3_usb_phy->base; in mmp3_usb_phy_init()
159 dev_err(&phy->dev, "unsupported silicon revision\n"); in mmp3_usb_phy_init()
160 return -ENODEV; in mmp3_usb_phy_init()
199 void __iomem *base = mmp3_usb_phy->base; in mmp3_usb_phy_calibrate()
203 * PLL VCO and TX Impedance Calibration Timing: in mmp3_usb_phy_calibrate()
227 dev_err(&phy->dev, "PLL_READY not set after 100mS.\n"); in mmp3_usb_phy_calibrate()
228 return -ETIMEDOUT; in mmp3_usb_phy_calibrate()
242 { .compatible = "marvell,mmp3-usb-phy", },
249 struct device *dev = &pdev->dev; in mmp3_usb_phy_probe()
255 return -ENOMEM; in mmp3_usb_phy_probe()
257 mmp3_usb_phy->base = devm_platform_ioremap_resource(pdev, 0); in mmp3_usb_phy_probe()
258 if (IS_ERR(mmp3_usb_phy->base)) { in mmp3_usb_phy_probe()
260 return PTR_ERR(mmp3_usb_phy->base); in mmp3_usb_phy_probe()
263 mmp3_usb_phy->phy = devm_phy_create(dev, NULL, &mmp3_usb_phy_ops); in mmp3_usb_phy_probe()
264 if (IS_ERR(mmp3_usb_phy->phy)) { in mmp3_usb_phy_probe()
266 return PTR_ERR(mmp3_usb_phy->phy); in mmp3_usb_phy_probe()
269 phy_set_drvdata(mmp3_usb_phy->phy, mmp3_usb_phy); in mmp3_usb_phy_probe()
282 .name = "mmp3-usb-phy",