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