九鼎创展论坛中文版English
登录 | 立即注册 设为首页收藏本站 切换到宽版
查看: 4882|回复: 0
打印 上一主题 下一主题

ibox 6818 怎么添加 vga-1920x1080的分辨率?

[复制链接]
跳转到指定楼层
楼主
发表于 2016-6-23 17:14:29 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
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正常显示???

1.png (40.92 KB, 下载次数: 473)

1.png

2.png (55.29 KB, 下载次数: 455)

2.png

x6818-lcds.rar

1.47 KB, 下载次数: 2

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|深圳市九鼎创展科技官方论坛 ( 粤ICP备11028681号-2  

GMT+8, 2024-11-26 06:56 , Processed in 0.019898 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表