Changeset 20530 for trunk


Ignore:
Timestamp:
2010-03-28T01:36:37+01:00 (7 years ago)
Author:
nbd
Message:

ar71xx: fix pci on ar7241/ar7242

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c

    r20494 r20530  
    111111         * if we set the BAR with proper base address 
    112112         */ 
    113         if ((where == 0x10) && (size == 4)) 
    114                 ar724x_pci_write(ar724x_pci_devcfg_base, where, size, 0xffff); 
     113        if ((where == 0x10) && (size == 4)) { 
     114                if (ar71xx_soc == AR71XX_SOC_AR7240) 
     115                        ar724x_pci_write(ar724x_pci_devcfg_base, where, size, 0xffff); 
     116                else 
     117                        ar724x_pci_write(ar724x_pci_devcfg_base, where, size, 0x1000ffff); 
     118        } 
    115119 
    116120        return PCIBIOS_SUCCESSFUL; 
     
    238242        } 
    239243 
    240         __raw_writel(AR724X_PCI_APP_LTSSM_ENABLE, base + AR724X_PCI_REG_APP); 
     244        if (ar71xx_soc == AR71XX_SOC_AR7240) 
     245                t = AR724X_PCI_APP_LTSSM_ENABLE; 
     246        else 
     247                t = 0x1ffc1; 
     248        __raw_writel(t, base + AR724X_PCI_REG_APP); 
    241249        /* flush write */ 
    242250        (void) __raw_readl(base + AR724X_PCI_REG_APP); 
Note: See TracChangeset for help on using the changeset viewer.