aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma/main.c
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2011-07-22 19:20:09 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-08 14:29:26 -0400
commit21e0534ad7415559bb8dee0dc00e39646fed83c9 (patch)
treee9e082dfdf6ce9798d6201f1ae4109b68b11920a /drivers/bcma/main.c
parentecd177c21640e92b059a71139f5850243a8f0942 (diff)
bcma: add mips driver
This adds a mips driver to bcma. This is only found on embedded devices. For now the driver just initializes the irqs used on this system. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Acked-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/main.c')
-rw-r--r--drivers/bcma/main.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c
index 2648522432be..7072216a2a3f 100644
--- a/drivers/bcma/main.c
+++ b/drivers/bcma/main.c
@@ -84,6 +84,7 @@ static int bcma_register_cores(struct bcma_bus *bus)
84 case BCMA_CORE_CHIPCOMMON: 84 case BCMA_CORE_CHIPCOMMON:
85 case BCMA_CORE_PCI: 85 case BCMA_CORE_PCI:
86 case BCMA_CORE_PCIE: 86 case BCMA_CORE_PCIE:
87 case BCMA_CORE_MIPS_74K:
87 continue; 88 continue;
88 } 89 }
89 90
@@ -147,6 +148,13 @@ int bcma_bus_register(struct bcma_bus *bus)
147 bcma_core_chipcommon_init(&bus->drv_cc); 148 bcma_core_chipcommon_init(&bus->drv_cc);
148 } 149 }
149 150
151 /* Init MIPS core */
152 core = bcma_find_core(bus, BCMA_CORE_MIPS_74K);
153 if (core) {
154 bus->drv_mips.core = core;
155 bcma_core_mips_init(&bus->drv_mips);
156 }
157
150 /* Init PCIE core */ 158 /* Init PCIE core */
151 core = bcma_find_core(bus, BCMA_CORE_PCIE); 159 core = bcma_find_core(bus, BCMA_CORE_PCIE);
152 if (core) { 160 if (core) {
@@ -217,6 +225,13 @@ int __init bcma_bus_early_register(struct bcma_bus *bus,
217 bcma_core_chipcommon_init(&bus->drv_cc); 225 bcma_core_chipcommon_init(&bus->drv_cc);
218 } 226 }
219 227
228 /* Init MIPS core */
229 core = bcma_find_core(bus, BCMA_CORE_MIPS_74K);
230 if (core) {
231 bus->drv_mips.core = core;
232 bcma_core_mips_init(&bus->drv_mips);
233 }
234
220 pr_info("Early bus registered\n"); 235 pr_info("Early bus registered\n");
221 236
222 return 0; 237 return 0;