Lines Matching +full:apb +full:- +full:base
1 // SPDX-License-Identifier: GPL-2.0-only
35 /* USS APB slave registers */
76 ret = regmap_update_bits(priv->regmap_cpr, USS_CPR_CLK_SET, in keembay_usb_clocks_on()
79 dev_err(priv->dev, "error clock set: %d\n", ret); in keembay_usb_clocks_on()
83 ret = regmap_update_bits(priv->regmap_cpr, USS_CPR_RST_SET, in keembay_usb_clocks_on()
86 dev_err(priv->dev, "error reset set: %d\n", ret); in keembay_usb_clocks_on()
90 ret = regmap_update_bits(priv->regmap_slv, in keembay_usb_clocks_on()
95 dev_err(priv->dev, "error iddq disable: %d\n", ret); in keembay_usb_clocks_on()
102 ret = regmap_update_bits(priv->regmap_slv, USS_USB_PHY_CFG0, in keembay_usb_clocks_on()
106 dev_err(priv->dev, "error ref clock select: %d\n", ret); in keembay_usb_clocks_on()
115 ret = regmap_update_bits(priv->regmap_slv, USS_USB_CTRL_CFG0, in keembay_usb_core_off()
119 dev_err(priv->dev, "error core reset: %d\n", ret); in keembay_usb_core_off()
128 ret = regmap_update_bits(priv->regmap_slv, USS_USB_CTRL_CFG0, in keembay_usb_core_on()
132 dev_err(priv->dev, "error core on: %d\n", ret); in keembay_usb_core_on()
141 ret = regmap_update_bits(priv->regmap_slv, USS_USB_PHY_CFG0, in keembay_usb_phys_on()
145 dev_err(priv->dev, "error phys on: %d\n", ret); in keembay_usb_phys_on()
170 ret = regmap_update_bits(priv->regmap_slv, in keembay_usb_phy_init()
175 dev_err(priv->dev, "error cr clock disable: %d\n", ret); in keembay_usb_phy_init()
185 ret = regmap_update_bits(priv->regmap_slv, in keembay_usb_phy_init()
190 dev_err(priv->dev, "error cr select: %d\n", ret); in keembay_usb_phy_init()
194 ret = regmap_update_bits(priv->regmap_slv, in keembay_usb_phy_init()
199 dev_err(priv->dev, "error cr clock enable: %d\n", ret); in keembay_usb_phy_init()
203 ret = regmap_read_poll_timeout(priv->regmap_slv, USS_USB_STATUS_REG, in keembay_usb_phy_init()
207 dev_err(priv->dev, "SRAM init not done: %d\n", ret); in keembay_usb_phy_init()
211 ret = regmap_update_bits(priv->regmap_slv, USS_USB_PHY_CFG6, in keembay_usb_phy_init()
215 dev_err(priv->dev, "error SRAM init done set: %d\n", ret); in keembay_usb_phy_init()
235 struct device *dev = &pdev->dev; in keembay_usb_phy_probe()
239 void __iomem *base; in keembay_usb_phy_probe() local
244 return -ENOMEM; in keembay_usb_phy_probe()
246 base = devm_platform_ioremap_resource_byname(pdev, "cpr-apb-base"); in keembay_usb_phy_probe()
247 if (IS_ERR(base)) in keembay_usb_phy_probe()
248 return PTR_ERR(base); in keembay_usb_phy_probe()
250 priv->regmap_cpr = devm_regmap_init_mmio(dev, base, in keembay_usb_phy_probe()
252 if (IS_ERR(priv->regmap_cpr)) in keembay_usb_phy_probe()
253 return PTR_ERR(priv->regmap_cpr); in keembay_usb_phy_probe()
255 base = devm_platform_ioremap_resource_byname(pdev, "slv-apb-base"); in keembay_usb_phy_probe()
256 if (IS_ERR(base)) in keembay_usb_phy_probe()
257 return PTR_ERR(base); in keembay_usb_phy_probe()
259 priv->regmap_slv = devm_regmap_init_mmio(dev, base, in keembay_usb_phy_probe()
261 if (IS_ERR(priv->regmap_slv)) in keembay_usb_phy_probe()
262 return PTR_ERR(priv->regmap_slv); in keembay_usb_phy_probe()
264 generic_phy = devm_phy_create(dev, dev->of_node, &ops); in keembay_usb_phy_probe()
285 { .compatible = "intel,keembay-usb-phy" },
293 .name = "keembay-usb-phy",