Lines Matching refs:mcore
44 static inline u32 mips_read32(struct ssb_mipscore *mcore,
47 return ssb_read32(mcore->dev, offset);
50 static inline void mips_write32(struct ssb_mipscore *mcore,
54 ssb_write32(mcore->dev, offset, value);
202 static void ssb_mips_serial_init(struct ssb_mipscore *mcore)
204 struct ssb_bus *bus = mcore->dev->bus;
207 mcore->nr_serial_ports = ssb_extif_serial_init(&bus->extif, mcore->serial_ports);
209 mcore->nr_serial_ports = ssb_chipco_serial_init(&bus->chipco, mcore->serial_ports);
211 mcore->nr_serial_ports = 0;
214 static void ssb_mips_flash_detect(struct ssb_mipscore *mcore)
216 struct ssb_bus *bus = mcore->dev->bus;
217 struct ssb_sflash *sflash = &mcore->sflash;
218 struct ssb_pflash *pflash = &mcore->pflash;
233 dev_dbg(mcore->dev->dev, "Found serial flash\n");
237 dev_dbg(mcore->dev->dev, "Found parallel flash\n");
265 u32 ssb_cpu_clock(struct ssb_mipscore *mcore)
267 struct ssb_bus *bus = mcore->dev->bus;
293 void ssb_mipscore_init(struct ssb_mipscore *mcore)
300 if (!mcore->dev)
303 dev_dbg(mcore->dev->dev, "Initializing MIPS core...\n");
305 bus = mcore->dev->bus;
351 dev_dbg(mcore->dev->dev, "after irq reconfiguration\n");
354 ssb_mips_serial_init(mcore);
355 ssb_mips_flash_detect(mcore);