Lines Matching full:lcd
4 * VGG2432A4 (ILI9320) LCD controller driver.
15 #include <linux/lcd.h>
108 static int vgg2432a4_lcd_init(struct ili9320 *lcd, in vgg2432a4_lcd_init() argument
115 ret = ili9320_write(lcd, 0x00e5, 0x8000); in vgg2432a4_lcd_init()
120 ret = ili9320_write(lcd, ILI9320_OSCILATION, ILI9320_OSCILATION_OSC); in vgg2432a4_lcd_init()
127 ret = ili9320_write_regs(lcd, vgg_init0, ARRAY_SIZE(vgg_init0)); in vgg2432a4_lcd_init()
131 ili9320_write(lcd, ILI9320_DISPLAY2, cfg->display2); in vgg2432a4_lcd_init()
132 ili9320_write(lcd, ILI9320_DISPLAY3, cfg->display3); in vgg2432a4_lcd_init()
133 ili9320_write(lcd, ILI9320_DISPLAY4, cfg->display4); in vgg2432a4_lcd_init()
135 ili9320_write(lcd, ILI9320_RGB_IF1, cfg->rgb_if1); in vgg2432a4_lcd_init()
136 ili9320_write(lcd, ILI9320_FRAMEMAKER, 0x0); in vgg2432a4_lcd_init()
137 ili9320_write(lcd, ILI9320_RGB_IF2, cfg->rgb_if2); in vgg2432a4_lcd_init()
139 ret = ili9320_write_regs(lcd, vgg_init1, ARRAY_SIZE(vgg_init1)); in vgg2432a4_lcd_init()
145 ret = ili9320_write_regs(lcd, vgg_init2, ARRAY_SIZE(vgg_init2)); in vgg2432a4_lcd_init()
151 ili9320_write(lcd, ILI9320_POWER3, 0x13c); in vgg2432a4_lcd_init()
155 ili9320_write(lcd, ILI9320_POWER4, 0x1c00); in vgg2432a4_lcd_init()
156 ili9320_write(lcd, ILI9320_POWER7, 0x000e); in vgg2432a4_lcd_init()
160 ili9320_write(lcd, ILI9320_GRAM_HORIZ_ADDR, 0x00); in vgg2432a4_lcd_init()
161 ili9320_write(lcd, ILI9320_GRAM_VERT_ADD, 0x00); in vgg2432a4_lcd_init()
163 ret = ili9320_write_regs(lcd, vgg_gamma, ARRAY_SIZE(vgg_gamma)); in vgg2432a4_lcd_init()
167 ili9320_write(lcd, ILI9320_HORIZ_START, 0x0); in vgg2432a4_lcd_init()
168 ili9320_write(lcd, ILI9320_HORIZ_END, cfg->hsize - 1); in vgg2432a4_lcd_init()
169 ili9320_write(lcd, ILI9320_VERT_START, 0x0); in vgg2432a4_lcd_init()
170 ili9320_write(lcd, ILI9320_VERT_END, cfg->vsize - 1); in vgg2432a4_lcd_init()
172 ili9320_write(lcd, ILI9320_DRIVER2, in vgg2432a4_lcd_init()
175 ili9320_write(lcd, ILI9320_BASE_IMAGE, 0x1); in vgg2432a4_lcd_init()
176 ili9320_write(lcd, ILI9320_VERT_SCROLL, 0x00); in vgg2432a4_lcd_init()
180 ili9320_write(lcd, addr, 0x0); in vgg2432a4_lcd_init()
183 ili9320_write(lcd, ILI9320_INTERFACE1, 0x10); in vgg2432a4_lcd_init()
184 ili9320_write(lcd, ILI9320_INTERFACE2, cfg->interface2); in vgg2432a4_lcd_init()
185 ili9320_write(lcd, ILI9320_INTERFACE3, cfg->interface3); in vgg2432a4_lcd_init()
186 ili9320_write(lcd, ILI9320_INTERFACE4, cfg->interface4); in vgg2432a4_lcd_init()
187 ili9320_write(lcd, ILI9320_INTERFACE5, cfg->interface5); in vgg2432a4_lcd_init()
188 ili9320_write(lcd, ILI9320_INTERFACE6, cfg->interface6); in vgg2432a4_lcd_init()
190 lcd->display1 = (ILI9320_DISPLAY1_D(3) | ILI9320_DISPLAY1_DTE | in vgg2432a4_lcd_init()
194 ili9320_write(lcd, ILI9320_DISPLAY1, lcd->display1); in vgg2432a4_lcd_init()
261 MODULE_DESCRIPTION("VGG2432A4 LCD Driver");