MLK-19113-2 PCI: imx: enable the l1.1 aspm on imx8mm
authorRichard Zhu <hongxing.zhu@nxp.com>
Mon, 14 Jan 2019 12:47:10 +0000 (18:17 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Enable the L1.1 ASPM support on iMX8MM, and
verified the EVK board.

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

index 3f9337c..e6420a6 100644 (file)
@@ -1609,7 +1609,9 @@ static int imx_pcie_host_init(struct pcie_port *pp)
                 * controlled by HW when link is up.
                 * Otherwise, turn off the REF_CLK to save power consumption.
                 */
-               if (imx_pcie->variant == IMX8MQ) {
+               switch (imx_pcie->variant) {
+               case IMX8MQ:
+               case IMX8MM:
                        if (imx_pcie->ctrl_id == 0)
                                val = IOMUXC_GPR14;
                        else
@@ -1618,6 +1620,9 @@ static int imx_pcie_host_init(struct pcie_port *pp)
                        regmap_update_bits(imx_pcie->iomuxc_gpr, val,
                                        IMX8MQ_GPR_PCIE_CLK_REQ_OVERRIDE_EN,
                                        0);
+                       break;
+               default:
+                       break;
                }
                if (ret < 0)
                        return ret;