aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-03-26 22:35:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-03-26 22:35:27 +0000
commit4e10c56551e1d3e6c31f933d4ce061a09ad8a92d (patch)
treedc429ad5194dd653793f5b82a8ab8bfdaf2facb4 /target
parent0490c57e312b68a48cb9e0a0b79f8f4634da47b2 (diff)
downloadupstream-4e10c56551e1d3e6c31f933d4ce061a09ad8a92d.tar.gz
upstream-4e10c56551e1d3e6c31f933d4ce061a09ad8a92d.tar.bz2
upstream-4e10c56551e1d3e6c31f933d4ce061a09ad8a92d.zip
ar71xx: fix pci link detection for ar724x
SVN-Revision: 20493
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h1
-rw-r--r--target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
index 31d2fd8e4d..d21df49d66 100644
--- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
+++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
@@ -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)
diff --git a/target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c b/target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c
index fd52216074..3bbad1f3a4 100644
--- a/target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c
+++ b/target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c
@@ -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;
}