summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Zhu <hongxing.zhu@nxp.com>2020-07-16 09:43:25 +0800
committerMax Krummenacher <max.krummenacher@toradex.com>2020-11-26 13:51:59 +0000
commit3d63f3493ac677bc890a1f56d02b1b5facb1ca73 (patch)
tree8a492a15d6095fa9b1083f401a76648405f2881f
parent23c60e3f4a66191f2fca0de29bab4caf7c560531 (diff)
MLK-24410 phy: pcie: imx8mp: correct the clock mode of the pcie phy
Correct the clock mode of PCIe PHY. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Reviewed-by: Fugang Duan <fugang.duan@nxp.com> (cherry picked from commit 2c23d9de9fc41d5436a7d3f8510fc95f3bf1c56b)
-rw-r--r--drivers/phy/freescale/phy-fsl-imx8-pcie.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/phy/freescale/phy-fsl-imx8-pcie.c b/drivers/phy/freescale/phy-fsl-imx8-pcie.c
index 11f2bff151dd..f2e4d1ac2feb 100644
--- a/drivers/phy/freescale/phy-fsl-imx8-pcie.c
+++ b/drivers/phy/freescale/phy-fsl-imx8-pcie.c
@@ -181,14 +181,16 @@ static int imx8_pcie_phy_probe(struct platform_device *pdev)
return -ENOMEM;
imx8_phy->flags &= ~IMX8MP_PCIE_PHY_FLAG_EXT_OSC;
- if (of_property_read_u32(np, "clk_mode", &val) < 0)
+ if (of_property_read_u32(np, "ext_osc", &val) < 0)
/*
- * Not specify clk_mod, use the external OSC as default
+ * Not specify ext_osc, use the external OSC as default
* CLK mode.
*/
imx8_phy->flags |= IMX8MP_PCIE_PHY_FLAG_EXT_OSC;
if (val == 0)
imx8_phy->flags &= ~IMX8MP_PCIE_PHY_FLAG_EXT_OSC;
+ else if (val == 1)
+ imx8_phy->flags |= IMX8MP_PCIE_PHY_FLAG_EXT_OSC;
else
dev_info(dev, "invalid clk mode %d.\n", val);