|
本帖最后由 enzo26 于 2013-11-28 13:37 编辑
我们购买了2416核心板,但是换了LCD,内核配置液晶如下,可正常显示
#elif defined(CONFIG_FB_S3C_VGA640480)
#define S3CFB_HFP 16 /* front porch */
#define S3CFB_HSW 10 /* hsync width */
#define S3CFB_HBP 134 /* back porch */
#define S3CFB_VFP 32 /* front porch */
#define S3CFB_VSW 2 /* vsync width */
#define S3CFB_VBP 11 /* back porch */
#define S3CFB_HRES 640 /* horizon pixel x resolition */
#define S3CFB_VRES 480 /* line cnt y resolution */
#define S3CFB_HRES_VIRTUAL 640 /* horizon pixel x resolition */
#define S3CFB_VRES_VIRTUAL 960 /* line cnt y resolution */
#define S3CFB_HRES_OSD 640 /* horizon pixel x resolition */
#define S3CFB_VRES_OSD 480 /* line cnt y resolution */
#define S3CFB_VFRAME_FREQ 60 /* frame rate freq */
#define S3CFB_PIXEL_CLOCK 4//(S3CFB_VFRAME_FREQ * (S3CFB_HFP + S3CFB_HSW + S3CFB_HBP + S3CFB_HRES) * (S3CFB_VFP + S3CFB_VSW + S3CFB_VBP + S3CFB_VRES))
#define LCD_TYPE "VGA 640*480"
但是同样的道理修改uboot, s3c2416_fb_parameter.c
#if 0
//640x480
{
29,//VBPD
5,//VFPD
4,//VSPW
71,//HBPD
40,//HFPD
31,//HSPW
1,//CLKVAL
16,//BPP
640,//XSIZE
480//YSIZE
},
#endif
//640x480
{
11,//VBPD
32,//VFPD
2,//VSPW
134,//HBPD
16,//HFPD
10,//HSPW
4,//CLKVAL
16,//BPP
640,//XSIZE
480//YSIZE
},
修改后会花屏一会儿,知道内核重新初始化lcd后,液晶才能正常显示, uboot还应该修改什么 |
|