Lines Matching full:apb
155 struct regmap *apb; member
283 regmap_write(phy->apb, SOC_PCIECTRL_CTRL20_ADDR, in hi3670_pcie_natural_cfg()
286 regmap_read(phy->apb, SOC_PCIECTRL_CTRL7_ADDR, &val); in hi3670_pcie_natural_cfg()
288 regmap_write(phy->apb, SOC_PCIECTRL_CTRL7_ADDR, val); in hi3670_pcie_natural_cfg()
291 regmap_read(phy->apb, SOC_PCIECTRL_CTRL12_ADDR, &val); in hi3670_pcie_natural_cfg()
294 regmap_write(phy->apb, SOC_PCIECTRL_CTRL12_ADDR, val); in hi3670_pcie_natural_cfg()
434 regmap_write(phy->apb, SOC_PCIECTRL_CTRL21_ADDR, in hi3670_pcie_ioref_gt()
574 * We might just use NULL instead of the APB name, as the in hi3670_pcie_get_resources_from_pcie()
581 phy->apb = dev_get_regmap(pcie_dev, "kirin_pcie_apb"); in hi3670_pcie_get_resources_from_pcie()
582 if (!phy->apb) { in hi3670_pcie_get_resources_from_pcie()
583 dev_err(dev, "Failed to get APB regmap\n"); in hi3670_pcie_get_resources_from_pcie()
644 * access the reset-gpios and the APB registers, both from the in hi3670_pcie_phy_init()
647 * The APB is obtained via the pcie driver's regmap in hi3670_pcie_phy_init()
650 * be already probed, as it needs to register the APB regmap. in hi3670_pcie_phy_init()
693 regmap_read(phy->apb, SOC_PCIECTRL_CTRL12_ADDR, &val); in hi3670_pcie_phy_power_on()
695 regmap_write(phy->apb, SOC_PCIECTRL_CTRL12_ADDR, val); in hi3670_pcie_phy_power_on()