video: tegra: set window size on mode change
Erik Gilling [Tue, 24 Aug 2010 23:13:39 +0000 (16:13 -0700)]
otherwise it's hardcoded by the platform-data

Signed-off-by: Erik Gilling <konkers@android.com>

drivers/video/tegra/fb.c

index 95c7c48..dd3f772 100644 (file)
@@ -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;
 }