Lines Matching refs:lcr
197 void __iomem *lcr;
214 unsigned int bbisc = tmio_ioread16(par->lcr + LCR_BBISC);
217 tmio_iowrite16(bbisc, par->lcr + LCR_BBISC);
250 tmio_iowrite16(0, par->lcr + LCR_GM);
252 tmio_iowrite16(0x0010, par->lcr + LCR_LCDCCRC);
291 tmio_iowrite16(base >> 16, par->lcr + LCR_CFSAH);
292 tmio_iowrite16(base, par->lcr + LCR_CFSAL);
293 tmio_iowrite16(TMIOFB_FIFO_SIZE - 1, par->lcr + LCR_CFS);
294 tmio_iowrite16(1, par->lcr + LCR_CFC);
295 tmio_iowrite16(1, par->lcr + LCR_BBIE);
296 tmio_iowrite16(0, par->lcr + LCR_CFWS);
312 tmio_iowrite16(0, par->lcr + LCR_GM);
314 tmio_iowrite16(0x0010, par->lcr + LCR_LCDCCRC);
318 tmio_iowrite16(info->fix.line_length, par->lcr + LCR_VHPN);
319 tmio_iowrite16(0, par->lcr + LCR_GDSAH);
320 tmio_iowrite16(0, par->lcr + LCR_GDSAL);
321 tmio_iowrite16(info->fix.line_length >> 16, par->lcr + LCR_VHPCH);
322 tmio_iowrite16(info->fix.line_length, par->lcr + LCR_VHPCL);
323 tmio_iowrite16(i = 0, par->lcr + LCR_HSS);
324 tmio_iowrite16(i += mode->hsync_len, par->lcr + LCR_HSE);
325 tmio_iowrite16(i += mode->left_margin, par->lcr + LCR_HDS);
326 tmio_iowrite16(i += mode->xres + mode->right_margin, par->lcr + LCR_HT);
327 tmio_iowrite16(mode->xres, par->lcr + LCR_HNP);
328 tmio_iowrite16(i = 0, par->lcr + LCR_VSS);
329 tmio_iowrite16(i += mode->vsync_len, par->lcr + LCR_VSE);
330 tmio_iowrite16(i += mode->upper_margin, par->lcr + LCR_VDS);
331 tmio_iowrite16(i += mode->yres, par->lcr + LCR_ILN);
332 tmio_iowrite16(i += mode->lower_margin, par->lcr + LCR_VT);
333 tmio_iowrite16(3, par->lcr + LCR_MISC); /* RGB565 mode */
334 tmio_iowrite16(1, par->lcr + LCR_GM); /* VRAM enable */
335 tmio_iowrite16(0x4007, par->lcr + LCR_LCDCC);
336 tmio_iowrite16(3, par->lcr + LCR_SP); /* sync polarity */
338 tmio_iowrite16(0x0010, par->lcr + LCR_LCDCCRC);
340 tmio_iowrite16(0x0014, par->lcr + LCR_LCDCCRC); /* STOP_CKP */
342 tmio_iowrite16(0x0015, par->lcr + LCR_LCDCCRC); /* STOP_CKP|SOFT_RESET*/
343 tmio_iowrite16(0xfffa, par->lcr + LCR_VCS);
360 while (tmio_ioread16(par->lcr + LCR_CCS) > ccs) {
372 tmio_ioread16(par->lcr + LCR_CCS) <= ccs,
396 tmio_iowrite16(*cmd >> 16, par->lcr + LCR_CMDH);
397 tmio_iowrite16(*cmd, par->lcr + LCR_CMDL);
416 while (tmio_ioread16(par->lcr + LCR_BBES) & 2) { /* blit active */
487 unsigned int vcount = tmio_ioread16(par->lcr + LCR_CDLN);
675 struct resource *lcr = platform_get_resource(dev, IORESOURCE_MEM, 0);
689 if (ccr == NULL || lcr == NULL || vram == NULL || irq < 0) {
719 info->fix.mmio_start = lcr->start;
720 info->fix.mmio_len = resource_size(lcr);
731 par->lcr = ioremap(info->fix.mmio_start, info->fix.mmio_len);
732 if (!par->lcr) {
792 iounmap(par->lcr);
819 iounmap(par->lcr);
849 printk(KERN_DEBUG "lcr: \n");
851 tmio_ioread16(par->lcr + LCR_ ## n));