From 85b8599c0384fe795d6f058c3a11060747ef4124 Mon Sep 17 00:00:00 2001 From: Erik Gilling Date: Tue, 24 Aug 2010 16:13:39 -0700 Subject: [PATCH] video: tegra: set window size on mode change otherwise it's hardcoded by the platform-data Signed-off-by: Erik Gilling --- drivers/video/tegra/fb.c | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- 2.34.1