1
0
Fork 0

MLK-19194 PCI: imx: disable the ltssm when link is down in uboot

Disable the LTSSM when link is down in uboot.
Otherwise, the pcie ep/rc validation system in kernel
would be impacted by the enabled ltssm stat in the uboot.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
zero-sugar
Richard Zhu 2018-08-10 16:51:20 +08:00
parent bbfd694dc0
commit cdedbb42e0
1 changed files with 4 additions and 0 deletions

View File

@ -698,6 +698,8 @@ static int imx_pcie_link_up(void)
/* link is down, stop here */
setenv("bootcmd", "sleep 2;");
DBGF("pcie link is down, stop here!\n");
clrbits_le32(&iomuxc_regs->gpr[12],
IOMUXC_GPR12_APPS_LTSSM_ENABLE);
return -EINVAL;
}
#endif
@ -708,6 +710,8 @@ static int imx_pcie_link_up(void)
debug("DEBUG_R0: 0x%08x, DEBUG_R1: 0x%08x\n",
readl(MX6_DBI_ADDR + PCIE_PHY_DEBUG_R0),
readl(MX6_DBI_ADDR + PCIE_PHY_DEBUG_R1));
clrbits_le32(&iomuxc_regs->gpr[12],
IOMUXC_GPR12_APPS_LTSSM_ENABLE);
return -EINVAL;
}
}