要点華凌光電 320*240 STN 单色屏,4根数据线
static const struct display_panel disp_panel = {
WVGA,
1,
1,
MONOCHROME,
};
结构lcd_cfg改为如下
static struct lcd_ctrl_config lcd_cfg = {
&disp_panel,
.ac_bias = 255,
.ac_bias_intrpt = 0,
.dma_burst_sz = 16,
.bpp = 1,
.fdd = 0x80,
.tft_alt_mode = 0,
.stn_565_mode = 0,
.mono_8bit_mode = 0,
.invert_line_clock = 1,
.invert_frm_clock = 1,
.sync_edge = 0,
.sync_ctrl = 1,
.raster_order = 0,
};
然后把drivers/video/da8xx-fb.c内的的known_lcd_panels结构添加
static struct da8xx_panel known_lcd_panels[] = {
[4] = {
.name = "TOPWAY_240128_LCD",
.width = 320,
.height = 240,
.hfp = 10,
.hbp = 10,
.hsw = 26,
.vfp = 1,
.vbp = 1,
.vsw = 1,
.pxl_clk = 1307200,
.invert_pxl_clk = 0,
},
}
屏是亮了,可以是黑的,很明显这里配得不对
不知道哪里出错?有没有高手搞个这个屏?
这里有个贴子,跟我差不多,不知道有没有解决..
sankye zhang:
http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/71324.aspx
sankye zhang:
datasheet上说支持stn,Dstn,C-dstn,可我的是FSTN,是不是我这屏不支持?
Gary Wu:
能否提供屏的数据手册查看?
leo chen:
回复 sankye zhang:
可能是不支持的,最好有详细的时序参数
要不然很难配置