235 static struct clcd_panel conn_lcd_panel_vga = {
236 .mode = {
237 .name = "VGA portrait",
238 .refresh = 60,
239 .xres = 640,
240 .yres = 480,
241 .pixclock = 20000000,//@191828,
242 .left_margin = 2,//@@4,//@4,
243 .right_margin = 2,//@@8,//@4,
244 .upper_margin = 10,
245 .lower_margin = 1,
246 .hsync_len = 79,//2,
247 .vsync_len = 23,
248 .sync = 0,
249 .vmode = FB_VMODE_NONINTERLACED,
250 },
251 .width = -1,
252 .height = -1,
253 .tim2 = (CLCDC_LCDTIMING2_IVS | CLCDC_LCDTIMING2_IHS),
254 .cntl = (CNTL_BGR | CLCDC_LCDCTRL_TFT | CNTL_LCDVCOMP(1) |
255 CLCDC_LCDCTRL_BPP16_565),
256 .bpp = 16,
257 };
258 //#define PANEL_SIZE (12 * SZ_64K)
260 static struct clcd_panel conn_lcd_panel = {
261 .mode = {
262 .name = "XVGA portrait",
263 .refresh = 55,
264 .xres = 1024,
265 .yres = 768,
266 .pixclock = 28828,//@15828,
267 .left_margin = 123,//80,//@63,
268 .right_margin = 60,//@40,//@30,//@@20
269 .upper_margin = 1,//@1,
270 .lower_margin = 1,//@1,
271 .hsync_len = 147,//@130,//@123,
272 .vsync_len = 23,//@63,
273 .sync = 1,//@1,
274 .vmode = FB_VMODE_NONINTERLACED,
275 },
276 .width = -1,
277 .height = -1,
278 .tim2 = (CLCDC_LCDTIMING2_IVS | CLCDC_LCDTIMING2_IHS | CLCDC_LCDTIMING2_IPC),
279 .cntl = (CNTL_BGR | CLCDC_LCDCTRL_TFT | CNTL_LCDVCOMP(1) |
280 CLCDC_LCDCTRL_BPP16_565),
281 .bpp = 16,
282 };
283 #define PANEL_SIZE (1024*768*2) // (80 * SZ_64K)
群创WVGA屏
279 static struct clcd_panel conn_lcd_panel = {
280 .mode = {
281 .name = "QVGA portrait",
282 .refresh = 60,
283 .xres = 800,
284 .yres = 480,
285 .pixclock = 91828,
286 .left_margin = 42,
287 .right_margin = 2,
288 .upper_margin = 22,
289 .lower_margin = 0,
290 .hsync_len = 5,
291 .vsync_len = 2,
292 .sync = 0,
293 .vmode = FB_VMODE_NONINTERLACED,
294 },
295 .width = -1,
296 .height = -1,
297 .tim2 = (CLCDC_LCDTIMING2_IVS | CLCDC_LCDTIMING2_IHS),
298 .cntl = (CNTL_BGR | CLCDC_LCDCTRL_TFT | CNTL_LCDVCOMP(1) |
299 CLCDC_LCDCTRL_BPP16_565),
300 .bpp = 16,
301 };
302 #define PANEL_SIZE (15 * SZ_64K)