bcma: add driver for PCIe Gen 2 core
[deliverable/linux.git] / drivers / bcma / main.c
index 34ea4c588d36bd798ee83bc9db6273eba6baf034..0ff8d58831ef30fcbe7a5452baa8b00e3fdababa 100644 (file)
@@ -132,6 +132,7 @@ static int bcma_register_cores(struct bcma_bus *bus)
                case BCMA_CORE_CHIPCOMMON:
                case BCMA_CORE_PCI:
                case BCMA_CORE_PCIE:
+               case BCMA_CORE_PCIE2:
                case BCMA_CORE_MIPS_74K:
                case BCMA_CORE_4706_MAC_GBIT_COMMON:
                        continue;
@@ -281,6 +282,13 @@ int bcma_bus_register(struct bcma_bus *bus)
                bcma_core_pci_init(&bus->drv_pci[1]);
        }
 
+       /* Init PCIe Gen 2 core */
+       core = bcma_find_core_unit(bus, BCMA_CORE_PCIE2, 0);
+       if (core) {
+               bus->drv_pcie2.core = core;
+               bcma_core_pcie2_init(&bus->drv_pcie2);
+       }
+
        /* Init GBIT MAC COMMON core */
        core = bcma_find_core(bus, BCMA_CORE_4706_MAC_GBIT_COMMON);
        if (core) {
This page took 0.02648 seconds and 5 git commands to generate.