Lines Matching full:bus
36 return dev->bus->chipinfo.id == BCMA_CHIP_ID_BCM47162 && in bcma_core_mips_bcm47162a0_quirk()
37 dev->bus->chipinfo.rev == 0 && dev->id.id == BCMA_CORE_MIPS_74K; in bcma_core_mips_bcm47162a0_quirk()
43 return (dev->bus->chipinfo.id == BCMA_CHIP_ID_BCM5357 || in bcma_core_mips_bcm5357b0_quirk()
44 dev->bus->chipinfo.id == BCMA_CHIP_ID_BCM4749) && in bcma_core_mips_bcm5357b0_quirk()
45 dev->bus->chipinfo.pkg == 11 && in bcma_core_mips_bcm5357b0_quirk()
72 struct bcma_device *mdev = dev->bus->drv_mips.core; in bcma_core_mips_irq()
91 struct bcma_bus *bus = dev->bus; in bcma_core_mips_set_irq() local
92 struct bcma_device *mdev = bus->drv_mips.core; in bcma_core_mips_set_irq()
122 list_for_each_entry(core, &bus->cores, list) { in bcma_core_mips_set_irq()
134 bcma_debug(bus, "set_irq: core 0x%04x, irq %d => %d\n", in bcma_core_mips_set_irq()
138 static void bcma_core_mips_set_irq_name(struct bcma_bus *bus, unsigned int irq, in bcma_core_mips_set_irq_name() argument
143 core = bcma_find_core_unit(bus, coreid, unit); in bcma_core_mips_set_irq_name()
145 bcma_warn(bus, in bcma_core_mips_set_irq_name()
165 bcma_debug(dev->bus, "core 0x%04x, irq:%s\n", dev->id.id, interrupts); in bcma_core_mips_print_irq()
168 static void bcma_core_mips_dump_irq(struct bcma_bus *bus) in bcma_core_mips_dump_irq() argument
172 list_for_each_entry(core, &bus->cores, list) { in bcma_core_mips_dump_irq()
179 struct bcma_bus *bus = mcore->core->bus; in bcma_cpu_clock() local
181 if (bus->drv_cc.capabilities & BCMA_CC_CAP_PMU) in bcma_cpu_clock()
182 return bcma_pmu_get_cpu_clock(&bus->drv_cc); in bcma_cpu_clock()
184 bcma_err(bus, "No PMU available, need this to get the cpu clock\n"); in bcma_cpu_clock()
189 static enum bcma_boot_dev bcma_boot_dev(struct bcma_bus *bus) in bcma_boot_dev() argument
191 struct bcma_drv_cc *cc = &bus->drv_cc; in bcma_boot_dev()
197 core = bcma_find_core(bus, BCMA_CORE_NS_ROM); in bcma_boot_dev()
230 struct bcma_bus *bus = mcore->core->bus; in bcma_core_mips_nvram_init() local
234 boot_dev = bcma_boot_dev(bus); in bcma_core_mips_nvram_init()
256 struct bcma_bus *bus = mcore->core->bus; in bcma_core_mips_early_init() local
261 bcma_chipco_serial_init(&bus->drv_cc); in bcma_core_mips_early_init()
267 static void bcma_fix_i2s_irqflag(struct bcma_bus *bus) in bcma_fix_i2s_irqflag() argument
274 if (bus->chipinfo.id != BCMA_CHIP_ID_BCM4716 && in bcma_fix_i2s_irqflag()
275 bus->chipinfo.id != BCMA_CHIP_ID_BCM4748) in bcma_fix_i2s_irqflag()
278 cpu = bcma_find_core(bus, BCMA_CORE_MIPS_74K); in bcma_fix_i2s_irqflag()
279 pcie = bcma_find_core(bus, BCMA_CORE_PCIE); in bcma_fix_i2s_irqflag()
280 i2s = bcma_find_core(bus, BCMA_CORE_I2S); in bcma_fix_i2s_irqflag()
288 bcma_debug(bus, in bcma_fix_i2s_irqflag()
295 struct bcma_bus *bus; in bcma_core_mips_init() local
297 bus = mcore->core->bus; in bcma_core_mips_init()
302 bcma_debug(bus, "Initializing MIPS core...\n"); in bcma_core_mips_init()
306 bcma_fix_i2s_irqflag(bus); in bcma_core_mips_init()
308 switch (bus->chipinfo.id) { in bcma_core_mips_init()
311 bcma_core_mips_set_irq_name(bus, 1, BCMA_CORE_80211, 0); in bcma_core_mips_init()
312 bcma_core_mips_set_irq_name(bus, 2, BCMA_CORE_MAC_GBIT, 0); in bcma_core_mips_init()
313 bcma_core_mips_set_irq_name(bus, 3, BCMA_CORE_USB20_HOST, 0); in bcma_core_mips_init()
314 bcma_core_mips_set_irq_name(bus, 4, BCMA_CORE_PCIE, 0); in bcma_core_mips_init()
315 bcma_core_mips_set_irq_name(bus, 0, BCMA_CORE_CHIPCOMMON, 0); in bcma_core_mips_init()
316 bcma_core_mips_set_irq_name(bus, 0, BCMA_CORE_I2S, 0); in bcma_core_mips_init()
321 bcma_core_mips_set_irq_name(bus, 1, BCMA_CORE_80211, 0); in bcma_core_mips_init()
322 bcma_core_mips_set_irq_name(bus, 2, BCMA_CORE_MAC_GBIT, 0); in bcma_core_mips_init()
323 bcma_core_mips_set_irq_name(bus, 0, BCMA_CORE_CHIPCOMMON, 0); in bcma_core_mips_init()
327 bcma_core_mips_set_irq_name(bus, 1, BCMA_CORE_80211, 0); in bcma_core_mips_init()
328 bcma_core_mips_set_irq_name(bus, 2, BCMA_CORE_MAC_GBIT, 0); in bcma_core_mips_init()
329 bcma_core_mips_set_irq_name(bus, 3, BCMA_CORE_USB20_HOST, 0); in bcma_core_mips_init()
330 bcma_core_mips_set_irq_name(bus, 0, BCMA_CORE_CHIPCOMMON, 0); in bcma_core_mips_init()
331 bcma_core_mips_set_irq_name(bus, 0, BCMA_CORE_I2S, 0); in bcma_core_mips_init()
334 bcma_core_mips_set_irq_name(bus, 1, BCMA_CORE_PCIE, 0); in bcma_core_mips_init()
335 bcma_core_mips_set_irq_name(bus, 2, BCMA_CORE_4706_MAC_GBIT, in bcma_core_mips_init()
337 bcma_core_mips_set_irq_name(bus, 3, BCMA_CORE_PCIE, 1); in bcma_core_mips_init()
338 bcma_core_mips_set_irq_name(bus, 4, BCMA_CORE_USB20_HOST, 0); in bcma_core_mips_init()
339 bcma_core_mips_set_irq_name(bus, 0, BCMA_CORE_4706_CHIPCOMMON, in bcma_core_mips_init()
343 list_for_each_entry(core, &bus->cores, list) { in bcma_core_mips_init()
346 bcma_err(bus, in bcma_core_mips_init()
348 bus->chipinfo.id); in bcma_core_mips_init()
350 bcma_debug(bus, "IRQ reconfiguration done\n"); in bcma_core_mips_init()
351 bcma_core_mips_dump_irq(bus); in bcma_core_mips_init()