From 0b313530b3fa263c5537a55703948a980f333388 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 19 Oct 2010 22:11:37 -0700 Subject: [PATCH] video: tegra: fb: Add flag to flip fb during probe Change-Id: Ibe65175392fe2fe491cb88b5df0771a17bc0c706 Signed-off-by: Colin Cross --- arch/arm/mach-tegra/include/mach/dc.h | 4 ++++ drivers/video/tegra/fb.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/arch/arm/mach-tegra/include/mach/dc.h b/arch/arm/mach-tegra/include/mach/dc.h index f33c724ed864..78a303e12634 100644 --- a/arch/arm/mach-tegra/include/mach/dc.h +++ b/arch/arm/mach-tegra/include/mach/dc.h @@ -143,8 +143,12 @@ struct tegra_fb_data { int xres; int yres; int bits_per_pixel; + + unsigned long flags; }; +#define TEGRA_FB_FLIP_ON_PROBE (1 << 0) + struct tegra_dc_platform_data { unsigned long flags; struct tegra_dc_out *default_out; diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c index 8e0964841cdb..6d826d03aef9 100644 --- a/drivers/video/tegra/fb.c +++ b/drivers/video/tegra/fb.c @@ -703,6 +703,11 @@ struct tegra_fb_info *tegra_fb_register(struct nvhost_device *ndev, dev_info(&ndev->dev, "probed\n"); + if (fb_data->flags & TEGRA_FB_FLIP_ON_PROBE) { + tegra_dc_update_windows(&tegra_fb->win, 1); + tegra_dc_sync_windows(&tegra_fb->win, 1); + } + return tegra_fb; err_iounmap_fb: -- 2.34.1