From: Erik Gilling Date: Tue, 24 Aug 2010 23:13:39 +0000 (-0700) Subject: video: tegra: set window size on mode change X-Git-Tag: firefly_0821_release~9833^2~262 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=85b8599c0384fe795d6f058c3a11060747ef4124;p=firefly-linux-kernel-4.4.55.git video: tegra: set window size on mode change otherwise it's hardcoded by the platform-data Signed-off-by: Erik Gilling --- diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c index 95c7c489b513..dd3f772df93d 100644 --- a/drivers/video/tegra/fb.c +++ b/drivers/video/tegra/fb.c @@ -138,6 +138,11 @@ static int tegra_fb_set_par(struct fb_info *info) mode.v_front_porch = info->mode->lower_margin; tegra_dc_set_mode(tegra_fb->win->dc, &mode); + + tegra_fb->win->w = info->mode->xres; + tegra_fb->win->h = info->mode->xres; + tegra_fb->win->out_w = info->mode->xres; + tegra_fb->win->out_h = info->mode->xres; } return 0; }