我使用IMX6Q的Linux LCD模块,LCD屏的格式是800*480VGA。我修改了文件mxc_lcdif.c和board-mx6q_sabresd.c及u-boot环境参数中相应的部分。图片能显示但是图片有向左上偏,怎么调都不行。能否帮我看看哪里不对?
mxc_lcdif.c中修改
static struct fb_videomode lcdif_modedb[] = {
{
"CLAA-WVGA", 59, 800, 480, 33898, 96, 24, 3, 10, 72, 7,
2,
FB_VMODE_NONINTERLACED,
0,},
board-mx6q_sabresd.c中修改
static struct fsl_mxc_lcd_platform_data lcdif_data = {
.ipu_id = 0,
.disp_id = 0,
.default_ifmt = IPU_PIX_FMT_RGB24,
};
static struct ipuv3_fb_platform_data sabresd_fb_data[] = {
{
.disp_dev = "lcd",
.interface_pix_fmt = IPU_PIX_FMT_RGB24,
.mode_str = "CLAA-WVGA",
.default_bpp = 24,
.int_clk = false,
.late_init = false,
},
u-boot环境参数修改
setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootfstype=ext4 rootwait video=mxcfb0:dev=lcd,CLAA-WVGA,if=RGB24'
|