--- sources/kernel/display/drivers/video/tegra/dc/dc.c +++ sources/kernel/display/drivers/video/tegra/dc/dc.c @@ -120,17 +120,17 @@ static struct of_device_id tegra_disb_pd[] = { #endif struct fb_videomode tegra_dc_vga_mode = { - .refresh = 60, - .xres = 640, + .refresh = 59, + .xres = 720, .yres = 480, - .pixclock = KHZ2PICOS(25200), - .hsync_len = 96, /* h_sync_width */ - .vsync_len = 2, /* v_sync_width */ - .left_margin = 48, /* h_back_porch */ - .upper_margin = 33, /* v_back_porch */ - .right_margin = 16, /* h_front_porch */ - .lower_margin = 10, /* v_front_porch */ - .vmode = 0, + .pixclock = KHZ2PICOS(37037), + .hsync_len = 62, // h_sync_width + .vsync_len = 6, // v_sync_width + .left_margin = 60, // h_back_porch + .upper_margin = 30, // v_back_porch + .right_margin = 16, // h_front_porch + .lower_margin = 9, // v_front_porch + .vmode = FB_VMODE_NONINTERLACED | FB_VMODE_IS_CEA, .sync = 0, }; --- sources/kernel/display/drivers/video/tegra/dc/mode.c +++ sources/kernel/display/drivers/video/tegra/dc/mode.c @@ -355,7 +355,7 @@ static bool check_mode_timings(const struct tegra_dc *dc, } if (dc->out->type == TEGRA_DC_OUT_DP) { - mode->h_ref_to_sync = 1; + mode->h_ref_to_sync = 2; mode->v_ref_to_sync = 1; }