summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRichard Zhu <hongxing.zhu@nxp.com>2018-06-14 14:41:34 +0800
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2020-02-09 22:49:20 +0100
commitcec7cedec4cd253dbc7320aa1fc1b441333fe455 (patch)
tree7bc5b8247047f099e8ae983afa29e3d99d57f58b /drivers
parent8cc569eb4aea25ca6ad9d56840f2c3d7b2d9b464 (diff)
MLK-18433 PCI: imx: remove the lpcg_xxx clocks in driver
Remove the lpcg_xxx clocks codes, since they are HW gated. These clocks controlled by HW, and would be turned on automatically, if there are access operations. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> (cherry picked from commit 9b8da32493057502a912b6d1426eadeb76780e69) Conflicts: arch/arm64/boot/dts/freescale/fsl-imx8qm.dtsi drivers/pci/host/pci-imx6.c Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 7615a560c48aeb53911c7a6f025420c0f9a5a51f) (cherry picked from commit 0507816aa4b9a4f5764d308b23332fc297e6fe0f) (cherry picked from commit 24258f088b89df68e5fa2c54eb3334ff50fcb8f0)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/dwc/pci-imx6.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/pci/dwc/pci-imx6.c b/drivers/pci/dwc/pci-imx6.c
index 6717a6627887..cf104ec7ca7a 100644
--- a/drivers/pci/dwc/pci-imx6.c
+++ b/drivers/pci/dwc/pci-imx6.c
@@ -78,7 +78,6 @@ struct imx_pcie {
struct clk *pcie_bus;
struct clk *pcie_phy;
struct clk *pcie_inbound_axi;
- struct clk *pcie_per;
struct clk *pcie;
struct clk *pcie_ext;
struct clk *pcie_ext_src;
@@ -641,16 +640,8 @@ static int imx_pcie_enable_ref_clk(struct imx_pcie *imx_pcie)
case IMX8QXP:
case IMX8QM:
ret = clk_prepare_enable(imx_pcie->pcie_inbound_axi);
- if (ret) {
+ if (ret)
dev_err(dev, "unable to enable pcie_axi clock\n");
- break;
- }
- ret = clk_prepare_enable(imx_pcie->pcie_per);
- if (ret) {
- dev_err(dev, "unable to enable pcie_per clock\n");
- clk_disable_unprepare(imx_pcie->pcie_inbound_axi);
- break;
- }
break;
}
@@ -1499,7 +1490,6 @@ static void pci_imx_clk_disable(struct device *dev)
break;
case IMX8QXP:
case IMX8QM:
- clk_disable_unprepare(imx_pcie->pcie_per);
clk_disable_unprepare(imx_pcie->pcie_inbound_axi);
break;
}
@@ -2512,12 +2502,6 @@ static int imx_pcie_probe(struct platform_device *pdev)
("fsl,imx6sx-iomuxc-gpr");
} else if (imx_pcie->variant == IMX8QM
|| imx_pcie->variant == IMX8QXP) {
- imx_pcie->pcie_per = devm_clk_get(dev, "pcie_per");
- if (IS_ERR(imx_pcie->pcie_per)) {
- dev_err(dev, "pcie_per clock source missing or invalid\n");
- return PTR_ERR(imx_pcie->pcie_per);
- }
-
imx_pcie->iomuxc_gpr =
syscon_regmap_lookup_by_phandle(node, "hsio");
imx_pcie->pcie_inbound_axi = devm_clk_get(&pdev->dev,