Lines Matching refs:spear13xx_pcie

24 struct spear13xx_pcie {
69 static int spear13xx_pcie_establish_link(struct spear13xx_pcie *spear13xx_pcie)
71 struct dw_pcie *pci = spear13xx_pcie->pci;
73 struct pcie_app_reg *app_reg = spear13xx_pcie->app_base;
107 struct spear13xx_pcie *spear13xx_pcie = arg;
108 struct pcie_app_reg *app_reg = spear13xx_pcie->app_base;
109 struct dw_pcie *pci = spear13xx_pcie->pci;
125 static void spear13xx_pcie_enable_interrupts(struct spear13xx_pcie *spear13xx_pcie)
127 struct dw_pcie *pci = spear13xx_pcie->pci;
129 struct pcie_app_reg *app_reg = spear13xx_pcie->app_base;
141 struct spear13xx_pcie *spear13xx_pcie = to_spear13xx_pcie(pci);
142 struct pcie_app_reg *app_reg = spear13xx_pcie->app_base;
153 struct spear13xx_pcie *spear13xx_pcie = to_spear13xx_pcie(pci);
155 spear13xx_pcie_establish_link(spear13xx_pcie);
156 spear13xx_pcie_enable_interrupts(spear13xx_pcie);
165 static int spear13xx_add_pcie_port(struct spear13xx_pcie *spear13xx_pcie,
168 struct dw_pcie *pci = spear13xx_pcie->pci;
179 "spear1340-pcie", spear13xx_pcie);
204 struct spear13xx_pcie *spear13xx_pcie;
209 spear13xx_pcie = devm_kzalloc(dev, sizeof(*spear13xx_pcie), GFP_KERNEL);
210 if (!spear13xx_pcie)
220 spear13xx_pcie->pci = pci;
222 spear13xx_pcie->phy = devm_phy_get(dev, "pcie-phy");
223 if (IS_ERR(spear13xx_pcie->phy)) {
224 ret = PTR_ERR(spear13xx_pcie->phy);
232 phy_init(spear13xx_pcie->phy);
234 spear13xx_pcie->clk = devm_clk_get(dev, NULL);
235 if (IS_ERR(spear13xx_pcie->clk)) {
237 return PTR_ERR(spear13xx_pcie->clk);
239 ret = clk_prepare_enable(spear13xx_pcie->clk);
251 spear13xx_pcie->app_base = pci->dbi_base + 0x2000;
256 platform_set_drvdata(pdev, spear13xx_pcie);
258 ret = spear13xx_add_pcie_port(spear13xx_pcie, pdev);
265 clk_disable_unprepare(spear13xx_pcie->clk);