diff options
author | Jon Mayo <jmayo@nvidia.com> | 2012-03-16 12:50:59 -0700 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-04-11 15:00:58 -0700 |
commit | 44c7bd82653b68c04fef5db9650dc739f7b76eee (patch) | |
tree | 6f02e55a9086f6a50c77063c6c97f79c32afaab6 /drivers/video/tegra/dc/dc_priv.h | |
parent | ca4fdaf787a68ff8eb1a31999725a80c2b4f084f (diff) |
video: tegra: dc: load video mode during vblank
Handle mode set for FBIOPUT_VSCREENINFO at the end of a frame (during
vblank). This elimiates the work around that requires disabling then
enabling display to change modes.
Adds a spinlock to protect irq code from updates to tegra_dc_mode structure.
Bug 560152
Change-Id: I5d2175f01a177a32d685b46e5af4f78efeec0786
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/90688
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/dc/dc_priv.h')
-rw-r--r-- | drivers/video/tegra/dc/dc_priv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/dc_priv.h b/drivers/video/tegra/dc/dc_priv.h index a10e648debc9..5cba88f9e806 100644 --- a/drivers/video/tegra/dc/dc_priv.h +++ b/drivers/video/tegra/dc/dc_priv.h @@ -4,6 +4,8 @@ * Copyright (C) 2010 Google, Inc. * Author: Erik Gilling <konkers@android.com> * + * Copyright (C) 2010-2012 NVIDIA Corporation + * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. @@ -93,6 +95,8 @@ struct tegra_dc { void *out_data; struct tegra_dc_mode mode; + bool mode_dirty; + spinlock_t mode_lock; struct tegra_dc_win windows[DC_N_WINDOWS]; struct tegra_dc_blend blend; |