ar71xx: fix pci link detection for ar724x
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 26 Mar 2010 22:35:27 +0000 (22:35 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 26 Mar 2010 22:35:27 +0000 (22:35 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20493 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c

index 31d2fd8..d21df49 100644 (file)
@@ -353,6 +353,7 @@ void ar71xx_ddr_flush(u32 reg);
 #define AR724X_PCI_REG_INT_MASK                0x50
 
 #define AR724X_PCI_APP_LTSSM_ENABLE    BIT(0)
+#define AR724X_PCI_RESET_LINK_UP       BIT(0)
 
 #define AR724X_PCI_INT_DEV0            BIT(14)
 
index fd52216..3bbad1f 100644 (file)
@@ -242,8 +242,8 @@ static int __init ar724x_pci_setup(void)
        (void) __raw_readl(base + AR724X_PCI_REG_APP);
        udelay(1000);
 
-       t = __raw_readl(base + AR724X_PCI_REG_APP);
-       if ((t & AR724X_PCI_APP_LTSSM_ENABLE) == 0x0) {
+       t = __raw_readl(base + AR724X_PCI_REG_RESET);
+       if ((t & AR724X_PCI_RESET_LINK_UP) == 0x0) {
                printk(KERN_WARNING "PCI: no PCIe module found\n");
                return -ENODEV;
        }
This page took 0.024483 seconds and 4 git commands to generate.