diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-05-03 20:18:41 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2012-05-03 20:18:41 +0000 |
commit | 22b2e3fbb9cc78d671e44f788a062031c97ffc6f (patch) | |
tree | 6395b1a6324793714e3d8d770a71cdc9362da4e1 /target/linux/brcm47xx/patches-3.3/232-bcma_account_for_variable_pci_memory.patch | |
parent | 8e9d914343967982a1a48e80000bbb09161e636c (diff) | |
download | master-31e0f0ae-22b2e3fbb9cc78d671e44f788a062031c97ffc6f.tar.gz master-31e0f0ae-22b2e3fbb9cc78d671e44f788a062031c97ffc6f.tar.bz2 master-31e0f0ae-22b2e3fbb9cc78d671e44f788a062031c97ffc6f.zip |
brcm47xx: add support for kernel 3.3
SVN-Revision: 31573
Diffstat (limited to 'target/linux/brcm47xx/patches-3.3/232-bcma_account_for_variable_pci_memory.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.3/232-bcma_account_for_variable_pci_memory.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/patches-3.3/232-bcma_account_for_variable_pci_memory.patch b/target/linux/brcm47xx/patches-3.3/232-bcma_account_for_variable_pci_memory.patch new file mode 100644 index 0000000000..3a2d512dc7 --- /dev/null +++ b/target/linux/brcm47xx/patches-3.3/232-bcma_account_for_variable_pci_memory.patch @@ -0,0 +1,14 @@ +--- a/drivers/bcma/driver_pci_host.c ++++ b/drivers/bcma/driver_pci_host.c +@@ -491,8 +491,9 @@ void __devinit bcma_core_pci_hostmode_in + /* Ok, ready to run, register it to the system. + * The following needs change, if we want to port hostmode + * to non-MIPS platform. */ +- io_map_base = (unsigned long)ioremap_nocache(BCMA_SOC_PCI_MEM, +- 0x04000000); ++ io_map_base = (unsigned long)ioremap_nocache(pc_host->mem_resource.start, ++ pc_host->mem_resource.end - ++ pc_host->mem_resource.start + 1); + pc_host->pci_controller.io_map_base = io_map_base; + set_io_port_base(pc_host->pci_controller.io_map_base); + /* Give some time to the PCI controller to configure itself with the new |