diff options
author | Tim Harvey <tharvey@gateworks.com> | 2015-05-08 15:17:10 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-05-28 12:01:44 +0200 |
commit | 378b02d7edea56a53cfd51700e0c63c3ee126bbc (patch) | |
tree | ee1b630b3546f86cb0a4fa7b858d2b851be09039 | |
parent | 8649b405c5e53314598c6e50a0e72f2eb481ce37 (diff) | |
download | u-boot-imx-378b02d7edea56a53cfd51700e0c63c3ee126bbc.zip u-boot-imx-378b02d7edea56a53cfd51700e0c63c3ee126bbc.tar.gz u-boot-imx-378b02d7edea56a53cfd51700e0c63c3ee126bbc.tar.bz2 |
pci: imx: display message if no pcie link
If CONFIG_PCI_SCAN_SHOW enabled then lets print a message of no link was
detected.
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
-rw-r--r-- | drivers/pci/pcie_imx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/pcie_imx.c b/drivers/pci/pcie_imx.c index fd7e4d4..ca485ba 100644 --- a/drivers/pci/pcie_imx.c +++ b/drivers/pci/pcie_imx.c @@ -588,7 +588,9 @@ static int imx_pcie_link_up(void) udelay(10); count++; if (count >= 2000) { - debug("phy link never came up\n"); +#ifdef CONFIG_PCI_SCAN_SHOW + puts("PCI: pcie phy link never came up\n"); +#endif 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)); |