]> git.sur5r.net Git - u-boot/commitdiff
pci: imx: display message if no pcie link
authorTim Harvey <tharvey@gateworks.com>
Fri, 8 May 2015 22:17:10 +0000 (15:17 -0700)
committerStefano Babic <sbabic@denx.de>
Thu, 28 May 2015 10:01:44 +0000 (12:01 +0200)
If CONFIG_PCI_SCAN_SHOW enabled then lets print a message of no link was
detected.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
drivers/pci/pcie_imx.c

index fd7e4d499f06b01fa8bd5a491b7eaaccff0943d3..ca485ba90cb67c3b53336514884feaf47b94157d 100644 (file)
@@ -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));