Lines Matching refs:lcr
205 void __iomem *lcr; member
222 unsigned int bbisc = tmio_ioread16(par->lcr + LCR_BBISC); in tmiofb_irq()
225 tmio_iowrite16(bbisc, par->lcr + LCR_BBISC); in tmiofb_irq()
258 tmio_iowrite16(0, par->lcr + LCR_GM); in tmiofb_hw_stop()
260 tmio_iowrite16(0x0010, par->lcr + LCR_LCDCCRC); in tmiofb_hw_stop()
299 tmio_iowrite16(base >> 16, par->lcr + LCR_CFSAH); in tmiofb_hw_init()
300 tmio_iowrite16(base, par->lcr + LCR_CFSAL); in tmiofb_hw_init()
301 tmio_iowrite16(TMIOFB_FIFO_SIZE - 1, par->lcr + LCR_CFS); in tmiofb_hw_init()
302 tmio_iowrite16(1, par->lcr + LCR_CFC); in tmiofb_hw_init()
303 tmio_iowrite16(1, par->lcr + LCR_BBIE); in tmiofb_hw_init()
304 tmio_iowrite16(0, par->lcr + LCR_CFWS); in tmiofb_hw_init()
320 tmio_iowrite16(0, par->lcr + LCR_GM); in tmiofb_hw_mode()
322 tmio_iowrite16(0x0010, par->lcr + LCR_LCDCCRC); in tmiofb_hw_mode()
326 tmio_iowrite16(info->fix.line_length, par->lcr + LCR_VHPN); in tmiofb_hw_mode()
327 tmio_iowrite16(0, par->lcr + LCR_GDSAH); in tmiofb_hw_mode()
328 tmio_iowrite16(0, par->lcr + LCR_GDSAL); in tmiofb_hw_mode()
329 tmio_iowrite16(info->fix.line_length >> 16, par->lcr + LCR_VHPCH); in tmiofb_hw_mode()
330 tmio_iowrite16(info->fix.line_length, par->lcr + LCR_VHPCL); in tmiofb_hw_mode()
331 tmio_iowrite16(i = 0, par->lcr + LCR_HSS); in tmiofb_hw_mode()
332 tmio_iowrite16(i += mode->hsync_len, par->lcr + LCR_HSE); in tmiofb_hw_mode()
333 tmio_iowrite16(i += mode->left_margin, par->lcr + LCR_HDS); in tmiofb_hw_mode()
334 tmio_iowrite16(i += mode->xres + mode->right_margin, par->lcr + LCR_HT); in tmiofb_hw_mode()
335 tmio_iowrite16(mode->xres, par->lcr + LCR_HNP); in tmiofb_hw_mode()
336 tmio_iowrite16(i = 0, par->lcr + LCR_VSS); in tmiofb_hw_mode()
337 tmio_iowrite16(i += mode->vsync_len, par->lcr + LCR_VSE); in tmiofb_hw_mode()
338 tmio_iowrite16(i += mode->upper_margin, par->lcr + LCR_VDS); in tmiofb_hw_mode()
339 tmio_iowrite16(i += mode->yres, par->lcr + LCR_ILN); in tmiofb_hw_mode()
340 tmio_iowrite16(i += mode->lower_margin, par->lcr + LCR_VT); in tmiofb_hw_mode()
341 tmio_iowrite16(3, par->lcr + LCR_MISC); /* RGB565 mode */ in tmiofb_hw_mode()
342 tmio_iowrite16(1, par->lcr + LCR_GM); /* VRAM enable */ in tmiofb_hw_mode()
343 tmio_iowrite16(0x4007, par->lcr + LCR_LCDCC); in tmiofb_hw_mode()
344 tmio_iowrite16(3, par->lcr + LCR_SP); /* sync polarity */ in tmiofb_hw_mode()
346 tmio_iowrite16(0x0010, par->lcr + LCR_LCDCCRC); in tmiofb_hw_mode()
348 tmio_iowrite16(0x0014, par->lcr + LCR_LCDCCRC); /* STOP_CKP */ in tmiofb_hw_mode()
350 tmio_iowrite16(0x0015, par->lcr + LCR_LCDCCRC); /* STOP_CKP|SOFT_RESET*/ in tmiofb_hw_mode()
351 tmio_iowrite16(0xfffa, par->lcr + LCR_VCS); in tmiofb_hw_mode()
368 while (tmio_ioread16(par->lcr + LCR_CCS) > ccs) { in tmiofb_acc_wait()
380 tmio_ioread16(par->lcr + LCR_CCS) <= ccs, in tmiofb_acc_wait()
404 tmio_iowrite16(*cmd >> 16, par->lcr + LCR_CMDH); in tmiofb_acc_write()
405 tmio_iowrite16(*cmd, par->lcr + LCR_CMDL); in tmiofb_acc_write()
424 while (tmio_ioread16(par->lcr + LCR_BBES) & 2) { /* blit active */ in tmiofb_sync()
495 unsigned int vcount = tmio_ioread16(par->lcr + LCR_CDLN); in tmiofb_vblank()
683 struct resource *lcr = platform_get_resource(dev, IORESOURCE_MEM, 0); in tmiofb_probe() local
697 if (ccr == NULL || lcr == NULL || vram == NULL || irq < 0) { in tmiofb_probe()
727 info->fix.mmio_start = lcr->start; in tmiofb_probe()
728 info->fix.mmio_len = resource_size(lcr); in tmiofb_probe()
739 par->lcr = ioremap(info->fix.mmio_start, info->fix.mmio_len); in tmiofb_probe()
740 if (!par->lcr) { in tmiofb_probe()
800 iounmap(par->lcr); in tmiofb_probe()
827 iounmap(par->lcr); in tmiofb_remove()
859 tmio_ioread16(par->lcr + LCR_ ## n)); in tmiofb_dump_regs()