mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 20:09:55 +02:00
ar71xx: don't register PCI controller on AR934x if PCIE_RC bit is not set
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29456 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f6ab961f67
commit
097436bca8
@ -68,6 +68,7 @@ int __init pcibios_map_irq(const struct pci_dev *dev, uint8_t slot, uint8_t pin)
|
|||||||
|
|
||||||
int __init ar71xx_pci_init(unsigned nr_irqs, struct ar71xx_pci_irq *map)
|
int __init ar71xx_pci_init(unsigned nr_irqs, struct ar71xx_pci_irq *map)
|
||||||
{
|
{
|
||||||
|
u32 t;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
switch (ar71xx_soc) {
|
switch (ar71xx_soc) {
|
||||||
@ -86,9 +87,13 @@ int __init ar71xx_pci_init(unsigned nr_irqs, struct ar71xx_pci_irq *map)
|
|||||||
|
|
||||||
case AR71XX_SOC_AR9342:
|
case AR71XX_SOC_AR9342:
|
||||||
case AR71XX_SOC_AR9344:
|
case AR71XX_SOC_AR9344:
|
||||||
ret = ar724x_pcibios_init(AR934X_IP2_IRQ_PCIE);
|
t = ar71xx_reset_rr(AR934X_RESET_REG_BOOTSTRAP);
|
||||||
break;
|
if (t & AR934X_BOOTSTRAP_PCIE_RC) {
|
||||||
|
ret = ar724x_pcibios_init(AR934X_IP2_IRQ_PCIE);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* fall through */
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user