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>
This commit is contained in:
parent
910929b767
commit
2c23d9de9f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue