mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
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:
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user