From 44c7bd82653b68c04fef5db9650dc739f7b76eee Mon Sep 17 00:00:00 2001 From: Jon Mayo Date: Fri, 16 Mar 2012 12:50:59 -0700 Subject: 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 Reviewed-on: http://git-master/r/90688 Reviewed-by: Simone Willett Tested-by: Simone Willett --- drivers/video/tegra/dc/dc_priv.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/video/tegra/dc/dc_priv.h') 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 * + * 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; -- cgit v1.2.3