Hello, Taxic,
Try like the following,
(1)add new video mode
static struct fb_videomode video_modes[] = {
{
/* 800x480 @ 57 Hz , pixel clk @ 27MHz */
"CLAA-WVGA", 57, 800, 480, 37037, 40, 60, 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,},
{
/* 1600x1200 @ 60 Hz 162M pixel clk*/
"UXGA", 60, 1600, 1200, 6172,
304, 64,
1, 46,
192, 3,
FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT,
FB_VMODE_NONINTERLACED,
0,},
{
/* 272x480 @ 60 Hz , pixel clk @ 9MHz */
"NHD",
/*Vsync cycle:*/ 60,
/*Horizontal display period:*/ 480,
/*Vertical display period:*/ 272,
/*Clock [1/Hz]:*/ 111111, /*Is it right ? it's unit should be picosencond , check it ,please !*/
/*Horizontal back porch:*/ 2,
/*Horizontal front porch:*/ 2,
/*Vertical back porch:*/ 2,
/*Vertical front porch:*/ 2,
/*Horizontal pulse width:*/ 41,
/*Vertical pulse width:*/ 10,
0,
FB_VMODE_NONINTERLACED,
0,},
};
(2) Connecting New LCD to DI0
static struct mxc_fb_platform_data fb_data[] = {
{
.interface_pix_fmt = IPU_PIX_FMT_RGB24,
.mode_str = "NHD",
.mode = video_modes,
.num_modes = ARRAY_SIZE(video_modes),
},
{
.interface_pix_fmt = IPU_PIX_FMT_GBR24,
.mode_str = "VGA-WXGA+",
.mode = video_modes,
.num_modes = ARRAY_SIZE(video_modes),
},
};
(3)Setting parameters in u-boot environment.
u-boot> setevn bootargs console=ttymxc0 init=/init androidboot.console=ttymxc0 video=mxcdi0fb:RGB24,NHD,bpp=24 di0_primary gpu_memory=64M fbmem=10M pmem=32M,64M
u-boot>run bootcmd
Try to test above code,please !
Regards,
Weidong