- 一、在boot中增加LVDS设置分辨率1024*600选项
1、修改文件TQIMX6_android-4.2.2\bootable\bootloader\uboot-imx\common\cmd_menu.c文件
在函数lcd_menu_shell中添加:
1 case '2': 2 do 3 { 4 printf("\r\n##### display select LVDS #####\r\n"); 5 printf("[1] 800*600 for LVDS->VGA\r\n"); 6 printf("[2] 1024*600 for LVDS->VGA\r\n"); 7 printf("[3] 1024*768 for LVDS->VGA \r\n"); 8 printf("[4] 1280*800 for LVDS->VGA \r\n"); 9 printf("[5] 1366*768 for LVDS \r\n"); 10 printf("[6] 1920*1080 for LVDS (2 lvds is needed,LVDS only) \r\n"); 11 printf("[q] quit \r\n"); 12 printf("Enter your selection: "); 13 c = getc(); 14 printf("%c\n", c); 15 if (c == '1')11 ……………………… 12 }
1 else if (c == '2') 2 { 3 sprintf(cmd_buf, "dev=ldb,LDB-LVDS,if=RGB666,bpp=32 ldb=dul0"); 4 break; 5 }
2、修改后烧入板子后效果:
- 二、修改内核驱动支持1024*600
1、修改文件TQIMX6_android-4.2.2\kernel_imx\drivers\video\mxc\ldb.c
在ldb_modedb[]中添加以下代码
static struct fb_videomode ldb_modedb[] = { { "LDB-LVDS", 60, 1024, 600, 19531, 140, 160, 20, 12