根据LQ035NC111_V-B_20080613修改LCD驱动

开发板:tiny210

内核:linux-2.6.35.7

触摸屏:3.5寸触摸屏

LCD采用8bit串行接法,驱动主要进行了如下修改:

/arch/arm/mach-s5pv210/mini210-lcds.c

static struct s3cfb_lcd wvga_w35 = {

       .width= 320,

       .height = 240,

       .p_width = 70,

       .p_height = 52,

       .bpp = 32,

       .freq = 180,

 

       .timing = {

              .h_fp =  20,

              .h_bp = 38,

              .h_sw =  30,

              .v_fp =  4,

              .v_fpe = 1,

              .v_bp = 15,

              .v_bpe = 1,

              .v_sw =  3,

       },

       .polarity = {

              .rise_vclk = 1,

              .inv_hsync = 1,

              .inv_vsync = 1,

              .inv_vden = 1,

       },

};

drivers/video/samsung/s3cfb.c

static int s3cfb_init_global(struct s3cfb_global *ctrl)

{

       ctrl->output = OUTPUT_RGB;

       ctrl->rgb_mode = MODE_RGB_P;

 

       init_completion(&ctrl->fb_complete);

       mutex_init(&ctrl->lock);

 

       s3cfb_set_output(ctrl);

       s3cfb_set_display_mode(ctrl);

       s3cfb_set_polarity(ctrl);

       s3cfb_set_timing(ctrl);

       s3cfb_set_lcd_size(ctrl);

 

       return 0;

}

修改FriendlyARM.ini文件

LCD-Type=W35

有一点我还是不太明白,我使用的是8位串行RGB接法,可是时序却采用的是并行的时序参数。如果有懂的朋友,可以告诉我一下,先谢谢了。呵呵

你可能感兴趣的:(Linux驱动开发)