MLK-13186-4 PCI: imx: enable external osc support
authorRichard Zhu <hongxing.zhu@nxp.com>
Fri, 11 Jan 2019 07:10:48 +0000 (12:40 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitbcf629e174fce39fb8c85b42ae177208bfaf0842
treea0e45856deb6b03427c8e31602f0c8048e36f175
parentd8f5ab52afec48a200f95d7e77dfc466c683afa7
MLK-13186-4 PCI: imx: enable external osc support

In order to pass the pcie gen2 compliance tests,
the external oscillator is mandatory required by
imx6 legacy platforms.
add the external osc support by this patch.
- pll6 should be set bypass mode.
- src of the pll6_bypass should be lvds_clk1
- adjust the swing/deemphase value
- re-configure the phy if the external 100Mhz
differential osc is used. Because that phy used
the 125Mhz before.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
rebase on v4.19
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/pci/controller/dwc/pci-imx6.c