From 16971c4be6bbf07ded3c7d35e60e0ffaf7fccef5 Mon Sep 17 00:00:00 2001 From: David Dastous Date: Fri, 25 Jul 2014 12:47:01 -0700 Subject: arm:tegra:thor: Set dc to stop on hdmi close HDMI needs to set DC to stop when closing, otherwise there is a flicker upon shutdown Bug 1448296 Change-Id: I93d14517e2b2ec77b0a6730a5c40930cd71f4327 Signed-off-by: David Dastous Reviewed-on: http://git-master/r/447733 Tested-by: Anshuman Kar Reviewed-by: Anshul Jain (SW) --- drivers/video/tegra/dc/hdmi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/video/tegra/dc/hdmi.c b/drivers/video/tegra/dc/hdmi.c index c412506e9d64..5b6e93da7bfb 100644 --- a/drivers/video/tegra/dc/hdmi.c +++ b/drivers/video/tegra/dc/hdmi.c @@ -2043,6 +2043,13 @@ static void tegra_dc_hdmi_disable(struct tegra_dc *dc) { struct tegra_dc_hdmi_data *hdmi = tegra_dc_get_outdata(dc); + /* + * set DC to STOP mode + */ + tegra_dc_writel(dc, DISP_CTRL_MODE_STOP, DC_CMD_DISPLAY_COMMAND); + tegra_dc_writel(dc, GENERAL_UPDATE, DC_CMD_STATE_CONTROL); + tegra_dc_writel(dc, GENERAL_ACT_REQ, DC_CMD_STATE_CONTROL); + tegra_nvhdcp_set_plug(hdmi->nvhdcp, 0); #if !defined(CONFIG_ARCH_TEGRA_2x_SOC) -- cgit v1.2.3