imx6 修改HDMI分辨率 1280X1024

imx6 修改HDMI分辨率 1280*1024 kernel 4.1.15

 

修改文件为;

1, drivers/video/fbdev/mxc/mxc_edid.c

在const struct fb_videomode mxc_cea_mode[64] = {中添加如下代码:

 

/* #60: 1280x1024@30Hz 4:3 */

[60] = {

NULL, 30, 1280, 1024, 17806, 161, 127, 55, 43, 96, 3,

FB_SYNC_HOR_HIGH_ACT,

FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_4_3, 0

},

 

2, drivers/video/fbdev/mxc/mxc_hdmi.c

添加新的参数:

static const struct fb_videomode sxga_mode = {

/* 1280x1024 @ 30 Hz */

NULL, 30, 1280, 1024, 17806, 161, 127, 55, 43, 96, 3,

FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,

FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_4_3, FB_MODE_IS_VESA,

};

 

在函数static void mxc_hdmi_edid_rebuild_modelist(struct mxc_hdmi *hdmi)中修改:

// fb_add_videomode(&vga_mode, &hdmi->fbi->modelist);

fb_add_videomode(&sxga_mode, &hdmi->fbi->modelist);

 

3,uboot启动传递参数

setenv mmcargs "setenv bootargs console=ttymxc1,115200 root=/dev/mmcblk3p2 rootwait rw video=mxcfb0:dev=hdmi,1280x1024M@30,if=RGB24,bpp=32"

run bootcmd

 

你可能感兴趣的:(imx6 修改HDMI分辨率 1280X1024)