|
6818上VGA接口通过看x6818-lcd.c这个文件得知vga接口适合的分辨率有两种; 1024*768 ,1440*900;
现在想添加一种vga 1920*1080的;于是在x6818-lcd.c中添加了:
else if(strstr(commandline, "lcd=vga-1920x1080"))
{
/* PLL2 = 594MHZ */
x6818_set_pll2(4, 198, 1, 0);
CFG_DISP_PRI_RESOL_WIDTH = 1920;
CFG_DISP_PRI_RESOL_HEIGHT = 1080;
CFG_DISP_PRI_HSYNC_SYNC_WIDTH = 44;
CFG_DISP_PRI_HSYNC_BACK_PORCH = 148;
CFG_DISP_PRI_HSYNC_FRONT_PORCH = 88;
CFG_DISP_PRI_HSYNC_ACTIVE_HIGH = 1;
CFG_DISP_PRI_VSYNC_SYNC_WIDTH = 5;
CFG_DISP_PRI_VSYNC_BACK_PORCH = 36;
CFG_DISP_PRI_VSYNC_FRONT_PORCH = 4;
CFG_DISP_PRI_VSYNC_ACTIVE_HIGH = 0;
CFG_DISP_PRI_CLKGEN0_DIV = 4;
CFG_DISP_PRI_PIXEL_CLOCK = (594000000 / CFG_DISP_PRI_CLKGEN0_DIV);
这个是石工发给我的[color=Red],通过查看VESA得知有一个参数设置有误,CFG_DISP_PRI_VSYNC_ACTIVE_HIGH = 0;应该是1;
Timing Name = 1920 x 1080 @ 60Hz;
Hor Pixels = 1920; // Pixels
Ver Pixels = 1080; // Lines
Hor Frequency = 67.500; // kHz = 14.8 usec / line
Ver Frequency = 60.000; // Hz = 16.7 msec / frame
Pixel Clock = 148.500; // MHz = 6.7 nsec ± 0.5%
Character Width = 4; // Pixels = 26.9 nsec
Scan Type = NONINTERLACED; // H Phase = 1.4 %
Hor Sync Polarity = POSITIVE // HBlank = 12.7% of HTotal
Ver Sync Polarity = POSITIVE // VBlank = 4.0% of VTotal
Hor Total Time = 14.815; // (usec) = 550 chars = 2200 Pixels
Hor Addr Time = 12.929; // (usec) = 480 chars = 1920 Pixels
Hor Blank Start = 12.929; // (usec) = 480 chars = 1920 Pixels
Hor Blank Time = 1.886; // (usec) = 70 chars = 280 Pixels
Hor Sync Start = 13.522; // (usec) = 502 chars = 2008 Pixels
// H Right Border = 0.000; // (usec) = 0 chars = 0 Pixels
// H Front Porch = 0.593; // (usec) = 22 chars = 88 Pixels
Hor Sync Time = 0.296; // (usec) = 11 chars = 44 Pixels
// H Back Porch = 0.997; // (usec) = 37 chars = 148 Pixels
// H Left Border = 0.000; // (usec) = 0 chars = 0 Pixels
Ver Total Time = 16.667; // (msec) = 1125 lines HT – (1.06xHA)
Ver Addr Time = 16.000; // (msec) = 1080 lines = 1.11
Ver Blank Start = 16.000; // (msec) = 1080 lines
Ver Blank Time = 0.667; // (msec) = 45 lines
Ver Sync Start = 16.059; // (msec) = 1084 lines
// V Bottom Border = 0.000; // (msec) = 0 lines
// V Front Porch = 0.059; // (msec) = 4 lines
Ver Sync Time = 0.074; // (msec) = 5 lines
// V Back Porch = 0.533; // (msec) = 36 lines
// V Top Border = 0.000; // (msec) = 0 lines
,于是做了修改,重新编译uboot ,烧写到开发板的现象是,屏幕出现了自适应中,然后显示无信号了,加的这段代码:x6818_set_pll2(4, 198, 1, 0);这个参数是根据什么设置的???还需要修改源码哪块,才能让VGA-1920x1080正常显示??? |
|