Lines Matching refs:platinum_regs

59 	volatile struct platinum_regs	__iomem *platinum_regs;  member
265 volatile struct platinum_regs __iomem *platinum_regs = pinfo->platinum_regs; in platinum_set_hardware() local
277 out_be32(&platinum_regs->reg[24].r, 7); /* turn display off */ in platinum_set_hardware()
280 out_be32(&platinum_regs->reg[i+32].r, init->regs[i]); in platinum_set_hardware()
282 out_be32(&platinum_regs->reg[26+32].r, (pinfo->total_vram == 0x100000 ? in platinum_set_hardware()
285 out_be32(&platinum_regs->reg[16].r, (unsigned) pinfo->frame_buffer_phys+init->fb_offset+0x10); in platinum_set_hardware()
286 out_be32(&platinum_regs->reg[18].r, init->pitch[cmode]); in platinum_set_hardware()
287 out_be32(&platinum_regs->reg[19].r, (pinfo->total_vram == 0x100000 ? in platinum_set_hardware()
290 out_be32(&platinum_regs->reg[20].r, (pinfo->total_vram == 0x100000 ? 0x11 : 0x1011)); in platinum_set_hardware()
291 out_be32(&platinum_regs->reg[21].r, 0x100); in platinum_set_hardware()
292 out_be32(&platinum_regs->reg[22].r, 1); in platinum_set_hardware()
293 out_be32(&platinum_regs->reg[23].r, 1); in platinum_set_hardware()
294 out_be32(&platinum_regs->reg[26].r, 0xc00); in platinum_set_hardware()
295 out_be32(&platinum_regs->reg[27].r, 0x235); in platinum_set_hardware()
306 out_be32(&platinum_regs->reg[24].r, 0); /* turn display on */ in platinum_set_hardware()
408 volatile struct platinum_regs __iomem *platinum_regs = info->platinum_regs; in read_platinum_sense() local
411 out_be32(&platinum_regs->reg[23].r, 7); /* turn off drivers */ in read_platinum_sense()
413 sense = (~in_be32(&platinum_regs->reg[23].r) & 7) << 8; in read_platinum_sense()
416 out_be32(&platinum_regs->reg[23].r, 3); /* drive A low */ in read_platinum_sense()
418 sense |= (~in_be32(&platinum_regs->reg[23].r) & 3) << 4; in read_platinum_sense()
419 out_be32(&platinum_regs->reg[23].r, 5); /* drive B low */ in read_platinum_sense()
421 sense |= (~in_be32(&platinum_regs->reg[23].r) & 4) << 1; in read_platinum_sense()
422 sense |= (~in_be32(&platinum_regs->reg[23].r) & 1) << 2; in read_platinum_sense()
423 out_be32(&platinum_regs->reg[23].r, 6); /* drive C low */ in read_platinum_sense()
425 sense |= (~in_be32(&platinum_regs->reg[23].r) & 6) >> 1; in read_platinum_sense()
427 out_be32(&platinum_regs->reg[23].r, 7); /* turn off drivers */ in read_platinum_sense()
574 pinfo->platinum_regs = ioremap(pinfo->rsrc_reg.start, 0x1000); in platinumfb_probe()
581 out_be32(&pinfo->platinum_regs->reg[16].r, (unsigned)pinfo->frame_buffer_phys); in platinumfb_probe()
582 out_be32(&pinfo->platinum_regs->reg[20].r, 0x1011); /* select max vram */ in platinumfb_probe()
583 out_be32(&pinfo->platinum_regs->reg[24].r, 0); /* switch in vram */ in platinumfb_probe()
628 iounmap(pinfo->platinum_regs); in platinumfb_probe()
645 iounmap(pinfo->platinum_regs); in platinumfb_remove()