1、mxc_lcdif.c文件中 fb_videomode结构体中加如下代码
static struct fb_videomode lcdif_modedb[] = {
{
/* 800x480 @ 57 Hz , pixel clk @ 27MHz */
"CLAA-WVGA", 57, 800, 480, 37037, 25, 75, 10, 10, 20, 10,
FB_SYNC_CLK_LAT_FALL,
FB_VMODE_NONINTERLACED,
0,},
{
/* 800x480 @ 60 Hz , pixel clk @ 32MHz */
"SEIKO-WVGA", 60, 800, 480, 29850, 89, 164, 23, 10, 10, 10,
FB_SYNC_CLK_LAT_FALL,
FB_VMODE_NONINTERLACED,
0,},
{
/* 1600*900@ 60 Hz , pixel clk @ 55MHz */ 这段是我加的
"TQ-VGA_1024768", 60, 1600, 916, 18182, //分表率我试过800*900 1600*900
499, 300,
10, 5,
1, 1,
FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
FB_VMODE_NONINTERLACED,
0,},
};
2、board-mx6q_sabresd.c文件中
static struct ipuv3_fb_platform_data sabresd_fb_data[] =
{
{ //这段是我加的
.disp_dev = "lcd",
.interface_pix_fmt = IPU_PIX_FMT_RGB24,
.mode_str = "TQ-VGA_1024768",
.default_bpp = 24,
.int_clk = false,
.late_init = false,
},
{
.disp_dev = "ldb",
.interface_pix_fmt = IPU_PIX_FMT_RGB666,
.mode_str = "LDB-XGA",
.default_bpp = 16,
.int_clk = false,
.late_init = false,
},
#if 0
{ /*fb0*/
.disp_dev = "ldb",
.interface_pix_fmt = IPU_PIX_FMT_RGB666,
.mode_str = "TQ_ldb_1024768",
.default_bpp = 16,
.int_clk = false,
.late_init = false,
},
#endif
{
.disp_dev = "hdmi",
.interface_pix_fmt = IPU_PIX_FMT_RGB24,
.mode_str = "1920x1080M@60",
.default_bpp = 32,
.int_clk = false,
.late_init = false,
},
/*{
.disp_dev = "lcd",
.interface_pix_fmt = IPU_PIX_FMT_RGB24,
.mode_str = "TQ-TN92",
.default_bpp = 24,
.int_clk = false,
.late_init = false,
},*/
};
图像闪的很厉害,出现很多白色的块,看不清图像
|