Lines Matching full:scfg
67 struct regmap *scfg; member
193 static void scfg_pcie_send_turnoff_msg(struct regmap *scfg, u32 reg, u32 mask) in scfg_pcie_send_turnoff_msg() argument
196 regmap_write_bits(scfg, reg, mask, mask); in scfg_pcie_send_turnoff_msg()
208 regmap_write_bits(scfg, reg, mask, 0); in scfg_pcie_send_turnoff_msg()
216 scfg_pcie_send_turnoff_msg(pcie->scfg, SCFG_PEXPMWRCR(pcie->index), PMXMTTURNOFF); in ls1021a_pcie_send_turnoff_msg()
219 static int scfg_pcie_exit_from_l2(struct regmap *scfg, u32 reg, u32 mask) in scfg_pcie_exit_from_l2() argument
222 regmap_write_bits(scfg, reg, mask, mask); in scfg_pcie_exit_from_l2()
223 regmap_write_bits(scfg, reg, mask, 0); in scfg_pcie_exit_from_l2()
233 return scfg_pcie_exit_from_l2(pcie->scfg, SCFG_PEXSFTRSTCR, PEXSR(pcie->index)); in ls1021a_pcie_exit_from_l2()
241 scfg_pcie_send_turnoff_msg(pcie->scfg, SCFG_PEXPMECR, PEXPME(pcie->index)); in ls1043a_pcie_send_turnoff_msg()
358 pcie->scfg = syscon_regmap_lookup_by_phandle(dev->of_node, "fsl,pcie-scfg"); in ls_pcie_probe()
359 if (IS_ERR(pcie->scfg)) { in ls_pcie_probe()
361 return PTR_ERR(pcie->scfg); in ls_pcie_probe()
364 ret = of_property_read_u32_array(dev->of_node, "fsl,pcie-scfg", index, 2); in ls_pcie_probe()