mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-27 14:51:06 +02:00
ar71xx: use ar71xx_pci_fixup on ar71xx SoCs only
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17807 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b737d591cf
commit
19bf20fcbf
@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
static void __iomem *ar71xx_pcicfg_base;
|
static void __iomem *ar71xx_pcicfg_base;
|
||||||
static DEFINE_SPINLOCK(ar71xx_pci_lock);
|
static DEFINE_SPINLOCK(ar71xx_pci_lock);
|
||||||
|
static int ar71xx_pci_fixup_enable;
|
||||||
|
|
||||||
static inline void ar71xx_pci_delay(void)
|
static inline void ar71xx_pci_delay(void)
|
||||||
{
|
{
|
||||||
@ -228,6 +229,9 @@ static void ar71xx_pci_fixup(struct pci_dev *dev)
|
|||||||
{
|
{
|
||||||
u32 t;
|
u32 t;
|
||||||
|
|
||||||
|
if (!ar71xx_pci_fixup_enable)
|
||||||
|
return;
|
||||||
|
|
||||||
if (dev->bus->number != 0 || dev->devfn != 0)
|
if (dev->bus->number != 0 || dev->devfn != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -321,6 +325,7 @@ int __init ar71xx_pcibios_init(void)
|
|||||||
/* clear bus errors */
|
/* clear bus errors */
|
||||||
(void)ar71xx_pci_be_handler(1);
|
(void)ar71xx_pci_be_handler(1);
|
||||||
|
|
||||||
|
ar71xx_pci_fixup_enable = 1;
|
||||||
register_pci_controller(&ar71xx_pci_controller);
|
register_pci_controller(&ar71xx_pci_controller);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user