From f0a2ca55641520d9a1d86a50e59c202d175c4635 Mon Sep 17 00:00:00 2001 From: Rakesh Iyer Date: Tue, 21 Aug 2012 18:25:17 -0700 Subject: video: tegra: dc: support for vblank sync Add wait for vsync support for one-shot panels. The code supports extension of this feature to other panels. Bug 1033411. Change-Id: Ie4d6cb45e5de81083458169ccdfa33230235ed72 Signed-off-by: Rakesh Iyer Reviewed-on: http://git-master/r/128927 Reviewed-by: Mrutyunjay Sawant Tested-by: Mrutyunjay Sawant --- arch/arm/mach-tegra/include/mach/dc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arch/arm/mach-tegra') diff --git a/arch/arm/mach-tegra/include/mach/dc.h b/arch/arm/mach-tegra/include/mach/dc.h index 3483fe91ce66..d7aaed0bdcdc 100644 --- a/arch/arm/mach-tegra/include/mach/dc.h +++ b/arch/arm/mach-tegra/include/mach/dc.h @@ -24,6 +24,7 @@ #include #include +#include #include #define TEGRA_MAX_DC 2 @@ -368,6 +369,8 @@ struct tegra_dc_out { u8 *out_sel_configs; unsigned n_out_sel_configs; + bool user_needs_vblank; + struct completion user_vblank_comp; int (*enable)(void); int (*postpoweron)(void); @@ -525,6 +528,8 @@ bool tegra_dc_get_connected(struct tegra_dc *); bool tegra_dc_hpd(struct tegra_dc *dc); +void tegra_dc_get_fbvblank(struct tegra_dc *dc, struct fb_vblank *vblank); +int tegra_dc_wait_for_vsync(struct tegra_dc *dc); void tegra_dc_blank(struct tegra_dc *dc); void tegra_dc_enable(struct tegra_dc *dc); -- cgit v1.2.3