Imx6q convert LVDS to VGA output

Source: Internet
Author: User

we useths8136VGAThe encoder is connected to the Imx6qDisp0_dat0 ~ dat23. When resolution Less than or equal to 720p , image good quality

however , If the solution is greater than 720p , pixels will run on 100MHz of The clock. We only need to modify  IPU_DISP.C as follows:

uint32_t rounded_pixel_clk_upper, rounded_pixel_clk_lower;
...
if (Rounded_pixel_clk < 100000000) {
Rounded_pixel_clk_upper = pixel_clk + pixel_clk/200;
Rounded_pixel_clk_lower = pixel_clk-pixel_clk/200;
} else {
Rounded_pixel_clk_upper = pixel_clk + pixel_clk/50000;
Rounded_pixel_clk_lower = pixel_clk-pixel_clk/50000;
}
if (!sig.int_clk && (rounded_pixel_clk >= rounded_pixel_clk_upper) | |
(ROUNDED_PIXEL_CLK <= rounded_pixel_clk_lower))) {
dev_dbg (Ipu->dev, "try IPU ext di clk\n");
...

then modify MXC_LCDIF.C:
/* 800x480 @ 60 Hz, pixel CLK @ 32MHz */
"SEIKO-WVGA", 800, 480, 29850, 89, 164, 23, 1 0, Ten,
Fb_sync_clk_lat_fall,
fb_vmode_noninterlaced,
0,},
{
/* 1280x1024 @ Hz, pixel CLK @ 108MHz * /
"SXGA", Max, 9231, 248, 1, 3, Fb_sync_hor_high_act | Fb_sync_vert_high_act,
fb_vmode_noninterlaced,
Fb_mode_is_vesa},
{
/* 1920x1080 @ Hz, pixel CLK @ 148.5MHz */
"1080P60", Max, 1920x1080, 7692, 136, 336, 3, 6, Fb_sync_hor_high_act | Fb_sync_vert_high_act,
fb_vmode_noninterlaced,
Fb_mode_is_vesa},
{
/* 1920x1200 @ Hz, pixel CLK @ 193.16MHz */
"WUXGA", 5175, 336, 1, 208, 3,
Fb_sync_hor_high_act | Fb_sync_vert_high_act,
fb_vmode_noninterlaced,
Fb_mode_is_vesa},

You are done, the resolution will be displayed when the boot is set.

Imx6q convert LVDS to VGA output

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.