diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-02-15 21:19:02 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-02-15 21:19:02 +0000 |
commit | 2c8af97c013fa3458d6ac8c930f2492cd9ea152c (patch) | |
tree | 2a44099a07542e805f649c38c408ec490c581525 /target/linux/ramips/files/arch/mips/pci/pci-rt288x.c | |
parent | ff00f9e46de3eb31073f9d261553f57444419a4b (diff) | |
download | upstream-2c8af97c013fa3458d6ac8c930f2492cd9ea152c.tar.gz upstream-2c8af97c013fa3458d6ac8c930f2492cd9ea152c.tar.bz2 upstream-2c8af97c013fa3458d6ac8c930f2492cd9ea152c.zip |
ramips: rt288x: fix PCI resource conflict
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30563 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/arch/mips/pci/pci-rt288x.c')
-rw-r--r-- | target/linux/ramips/files/arch/mips/pci/pci-rt288x.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/ramips/files/arch/mips/pci/pci-rt288x.c b/target/linux/ramips/files/arch/mips/pci/pci-rt288x.c index 557b1eb494..16f3bf7717 100644 --- a/target/linux/ramips/files/arch/mips/pci/pci-rt288x.c +++ b/target/linux/ramips/files/arch/mips/pci/pci-rt288x.c @@ -212,10 +212,18 @@ int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) static int __init rt2880_pci_init(void) { + void __iomem *io_map_base; int i; rt2880_pci_base = ioremap_nocache(RT2880_PCI_BASE, PAGE_SIZE); + io_map_base = ioremap(RT2880_PCI_IO_BASE, RT2880_PCI_IO_SIZE); + rt2880_pci_controller.io_map_base = (unsigned long) io_map_base; + set_io_port_base((unsigned long) io_map_base); + + ioport_resource.start = RT2880_PCI_IO_BASE; + ioport_resource.end = RT2880_PCI_IO_BASE + RT2880_PCI_IO_SIZE - 1; + rt2880_pci_reg_write(0, RT2880_PCI_REG_PCICFG_ADDR); for(i = 0; i < 0xfffff; i++) {} |