BCMA - Account for variable PCI memory base/size
[openwrt/svn-archive/archive.git] / target / linux / brcm47xx / patches-3.2 / 232-bcma_account_for_variable_pci_memory.patch
1 --- a/drivers/bcma/driver_pci_host.c
2 +++ b/drivers/bcma/driver_pci_host.c
3 @@ -490,8 +490,9 @@ void __devinit bcma_core_pci_hostmode_in
4 /* Ok, ready to run, register it to the system.
5 * The following needs change, if we want to port hostmode
6 * to non-MIPS platform. */
7 - io_map_base = (unsigned long)ioremap_nocache(BCMA_SOC_PCI_MEM,
8 - 0x04000000);
9 + io_map_base = (unsigned long)ioremap_nocache(pc_host->mem_resource.start,
10 + pc_host->mem_resource.end -
11 + pc_host->mem_resource.start + 1);
12 pc_host->pci_controller.io_map_base = io_map_base;
13 set_io_port_base(pc_host->pci_controller.io_map_base);
14 /* Give some time to the PCI controller to configure itself with the new