本文转载自:http://m.blog.csdn.net/bzw73/article/details/46564275
有了前面的LCD驱动的框架,再移植VGA驱动就相当的容易了。默认在光盘中已经支持了多款VGA驱动,我们在此基础上增加分辨率为1440*900的驱动。 在kernel/drivers/video/samsung/x4412_lcds.c中添加结构体vga_1440_900:- /* VGA-1440X900 */
- static struct s3cfb_lcd vga_1440_900 = {
- .width = 1440,
- .height = 900,
- .bpp = 32,
- .freq = 60,
- .timing = {
- .h_fp = 48,
- .h_bp = 80,
- .h_sw = 32,
- .v_fp = 3,
- .v_fpe = 1,
- .v_bp = 17,
- .v_bpe = 1,
- .v_sw = 6,
- },
- .polarity = {
- .rise_vclk = 1,
- .inv_hsync = 1,
- .inv_vsync = 0,
- .inv_vden = 0,
- },
- .init_ldi = NULL,
- };
- static struct {
- char * name;
- struct s3cfb_lcd * lcd;
- } x4412_lcd_config[] = {
- { "ek070tn93", &ek070tn93},
- { "vs070cxn", &vs070cxn},
- { "vga-1024x768", &vga_1024_768},
- { "vga-1280x1024", &vga_1280_1024},
- { "vga-1440x900", &vga_1440_900},
- { "vga-1920x1200", &vga_1920_1200},
- };
- memset(fb->screen_base, 0, fix->smem_len);
- memset(fb->screen_base, 0, fix->smem_len/3);
- setenv bootargs "lcd=vga-1440x900 tp=ft5x06-1024x600 cam=ov2655 mac=00:09:c0:ff:ee:58"