summaryrefslogtreecommitdiff
path: root/drivers/video/tegra
diff options
context:
space:
mode:
authorJon Mayo <jmayo@nvidia.com>2012-06-05 12:57:54 -0700
committerSimone Willett <swillett@nvidia.com>2012-06-06 17:42:02 -0700
commite0ecb969c723600e47aee6711a52fa4a2d714dc9 (patch)
treefe087c570a26e402e9db79cbd26f236560457070 /drivers/video/tegra
parent5969910cc439df68c1a8d565708fd23f7f1aa795 (diff)
video: tegra: dc: blank windows on shutdown
Clear out all overlays and disable DC on .shutdown Change-Id: I4bc78fddb0ed8bd621733df191f305ecb279e3f7 Signed-off-by: Jon Mayo <jmayo@nvidia.com> Reviewed-on: http://git-master/r/106549 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'drivers/video/tegra')
-rw-r--r--drivers/video/tegra/dc/dc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index 256cacf..2fee71d 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -2879,6 +2879,17 @@ static int tegra_dc_resume(struct nvhost_device *ndev)
#endif /* CONFIG_PM */
+static void tegra_dc_shutdown(struct nvhost_device *ndev)
+{
+ struct tegra_dc *dc = nvhost_get_drvdata(ndev);
+
+ if (!dc || !dc->enabled)
+ return;
+
+ tegra_dc_blank(dc);
+ tegra_dc_disable(dc);
+}
+
extern int suspend_set(const char *val, struct kernel_param *kp)
{
if (!strcmp(val, "dump"))
@@ -2913,6 +2924,7 @@ struct nvhost_driver tegra_dc_driver = {
.suspend = tegra_dc_suspend,
.resume = tegra_dc_resume,
#endif
+ .shutdown = tegra_dc_shutdown,
};
static int __init tegra_dc_module_init(void)