Lines Matching refs:mcore
21 static inline u32 mips_read32(struct ssb_mipscore *mcore, in mips_read32() argument
24 return ssb_read32(mcore->dev, offset); in mips_read32()
27 static inline void mips_write32(struct ssb_mipscore *mcore, in mips_write32() argument
31 ssb_write32(mcore->dev, offset, value); in mips_write32()
177 static void ssb_mips_serial_init(struct ssb_mipscore *mcore) in ssb_mips_serial_init() argument
179 struct ssb_bus *bus = mcore->dev->bus; in ssb_mips_serial_init()
182 mcore->nr_serial_ports = ssb_extif_serial_init(&bus->extif, mcore->serial_ports); in ssb_mips_serial_init()
184 mcore->nr_serial_ports = ssb_chipco_serial_init(&bus->chipco, mcore->serial_ports); in ssb_mips_serial_init()
186 mcore->nr_serial_ports = 0; in ssb_mips_serial_init()
189 static void ssb_mips_flash_detect(struct ssb_mipscore *mcore) in ssb_mips_flash_detect() argument
191 struct ssb_bus *bus = mcore->dev->bus; in ssb_mips_flash_detect()
193 mcore->flash_buswidth = 2; in ssb_mips_flash_detect()
195 mcore->flash_window = 0x1c000000; in ssb_mips_flash_detect()
196 mcore->flash_window_size = 0x02000000; in ssb_mips_flash_detect()
199 mcore->flash_buswidth = 1; in ssb_mips_flash_detect()
201 mcore->flash_window = 0x1fc00000; in ssb_mips_flash_detect()
202 mcore->flash_window_size = 0x00400000; in ssb_mips_flash_detect()
206 u32 ssb_cpu_clock(struct ssb_mipscore *mcore) in ssb_cpu_clock() argument
208 struct ssb_bus *bus = mcore->dev->bus; in ssb_cpu_clock()
234 void ssb_mipscore_init(struct ssb_mipscore *mcore) in ssb_mipscore_init() argument
241 if (!mcore->dev) in ssb_mipscore_init()
246 bus = mcore->dev->bus; in ssb_mipscore_init()
295 ssb_mips_serial_init(mcore); in ssb_mipscore_init()
296 ssb_mips_flash_detect(mcore); in ssb_mipscore_init()