mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-17 02:10:10 +00:00
ar71xx: fix pci link detection for ar724x
SVN-Revision: 20493
This commit is contained in:
parent
0490c57e31
commit
4e10c56551
@ -353,6 +353,7 @@ void ar71xx_ddr_flush(u32 reg);
|
|||||||
#define AR724X_PCI_REG_INT_MASK 0x50
|
#define AR724X_PCI_REG_INT_MASK 0x50
|
||||||
|
|
||||||
#define AR724X_PCI_APP_LTSSM_ENABLE BIT(0)
|
#define AR724X_PCI_APP_LTSSM_ENABLE BIT(0)
|
||||||
|
#define AR724X_PCI_RESET_LINK_UP BIT(0)
|
||||||
|
|
||||||
#define AR724X_PCI_INT_DEV0 BIT(14)
|
#define AR724X_PCI_INT_DEV0 BIT(14)
|
||||||
|
|
||||||
|
@ -242,8 +242,8 @@ static int __init ar724x_pci_setup(void)
|
|||||||
(void) __raw_readl(base + AR724X_PCI_REG_APP);
|
(void) __raw_readl(base + AR724X_PCI_REG_APP);
|
||||||
udelay(1000);
|
udelay(1000);
|
||||||
|
|
||||||
t = __raw_readl(base + AR724X_PCI_REG_APP);
|
t = __raw_readl(base + AR724X_PCI_REG_RESET);
|
||||||
if ((t & AR724X_PCI_APP_LTSSM_ENABLE) == 0x0) {
|
if ((t & AR724X_PCI_RESET_LINK_UP) == 0x0) {
|
||||||
printk(KERN_WARNING "PCI: no PCIe module found\n");
|
printk(KERN_WARNING "PCI: no PCIe module found\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user