Changeset 20493


Ignore:
Timestamp:
2010-03-26T23:35:27+01:00 (8 years ago)
Author:
nbd
Message:

ar71xx: fix pci link detection for ar724x

Location:
trunk/target/linux/ar71xx/files/arch/mips
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h

    r20282 r20493  
    354354 
    355355#define AR724X_PCI_APP_LTSSM_ENABLE     BIT(0) 
     356#define AR724X_PCI_RESET_LINK_UP        BIT(0) 
    356357 
    357358#define AR724X_PCI_INT_DEV0             BIT(14) 
  • trunk/target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c

    r20285 r20493  
    243243        udelay(1000); 
    244244 
    245         t = __raw_readl(base + AR724X_PCI_REG_APP); 
    246         if ((t & AR724X_PCI_APP_LTSSM_ENABLE) == 0x0) { 
     245        t = __raw_readl(base + AR724X_PCI_REG_RESET); 
     246        if ((t & AR724X_PCI_RESET_LINK_UP) == 0x0) { 
    247247                printk(KERN_WARNING "PCI: no PCIe module found\n"); 
    248248                return -ENODEV; 
Note: See TracChangeset for help on using the changeset viewer.