summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-03-26 22:35:41 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-03-26 22:35:41 +0000
commitfd3222baa48c89bad08cd33b0b8a6dc8956b0806 (patch)
treee8023a84473f91f4db45bb339911b64fef93eaf2 /target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c
parentc363de958e3fd2e75e3743d484de8fdaec815294 (diff)
ar71xx: add support for ar7241 and ar7242
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20494 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c6
1 files changed, 6 insertions, 0 deletions
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 3bbad1f3a4..b1f5fa9ee1 100644
--- a/target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c
+++ b/target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c
@@ -248,6 +248,12 @@ static int __init ar724x_pci_setup(void)
return -ENODEV;
}
+ if (ar71xx_soc == AR71XX_SOC_AR7241 || ar71xx_soc == AR71XX_SOC_AR7242) {
+ t = __raw_readl(base + AR724X_PCI_REG_APP);
+ t |= BIT(16);
+ __raw_writel(t, base + AR724X_PCI_REG_APP);
+ }
+
return 0;
}