aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma/main.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2014-07-04 19:10:41 -0400
committerJohn W. Linville <linville@tuxdriver.com>2014-07-07 16:32:16 -0400
commitf473832fece16611520bf54ad52b16c3f6db0a94 (patch)
treef05540f9ee9ed3b93c065dc631d73f3e9491905b /drivers/bcma/main.c
parentfe5e499f427dadbeeb079e0a796702f4a3da78a0 (diff)
bcma: add driver for PCIe Gen 2 core
New Broadcom PCIe devices (802.11ac ones?) use Gen2 and have to be initialized differently. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/main.c')
-rw-r--r--drivers/bcma/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c
index 34ea4c588d36..0ff8d58831ef 100644
--- a/drivers/bcma/main.c
+++ b/drivers/bcma/main.c
@@ -132,6 +132,7 @@ static int bcma_register_cores(struct bcma_bus *bus)
132 case BCMA_CORE_CHIPCOMMON: 132 case BCMA_CORE_CHIPCOMMON:
133 case BCMA_CORE_PCI: 133 case BCMA_CORE_PCI:
134 case BCMA_CORE_PCIE: 134 case BCMA_CORE_PCIE:
135 case BCMA_CORE_PCIE2:
135 case BCMA_CORE_MIPS_74K: 136 case BCMA_CORE_MIPS_74K:
136 case BCMA_CORE_4706_MAC_GBIT_COMMON: 137 case BCMA_CORE_4706_MAC_GBIT_COMMON:
137 continue; 138 continue;
@@ -281,6 +282,13 @@ int bcma_bus_register(struct bcma_bus *bus)
281 bcma_core_pci_init(&bus->drv_pci[1]); 282 bcma_core_pci_init(&bus->drv_pci[1]);
282 } 283 }
283 284
285 /* Init PCIe Gen 2 core */
286 core = bcma_find_core_unit(bus, BCMA_CORE_PCIE2, 0);
287 if (core) {
288 bus->drv_pcie2.core = core;
289 bcma_core_pcie2_init(&bus->drv_pcie2);
290 }
291
284 /* Init GBIT MAC COMMON core */ 292 /* Init GBIT MAC COMMON core */
285 core = bcma_find_core(bus, BCMA_CORE_4706_MAC_GBIT_COMMON); 293 core = bcma_find_core(bus, BCMA_CORE_4706_MAC_GBIT_COMMON);
286 if (core) { 294 if (core) {