video: tegra: fb: Add flag to flip fb during probe

Change-Id: Ibe65175392fe2fe491cb88b5df0771a17bc0c706
Signed-off-by: Colin Cross <ccross@android.com>
This commit is contained in:
Colin Cross
2010-10-19 22:11:37 -07:00
parent 4076bd38a5
commit 0b313530b3
2 changed files with 9 additions and 0 deletions

View File

@@ -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;

View File

@@ -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: