arm: tegra: tn8: Disable panel rst before suspend
Jiukai Ma [Tue, 3 Sep 2013 11:40:22 +0000 (11:40 +0000)]
LCD_BL_EN is not used on TN8, disable dsi_panel_rst_gpio before suspend.

bug 1353663

Change-Id: Iefa6df02308be44761f12352acdbe3fe23de8187
Signed-off-by: Jiukai Ma <jiukaim@nvidia.com>
Reviewed-on: http://git-master/r/269497
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

arch/arm/mach-tegra/panel-p-wuxga-10-1.c

index 49e5ec7..519e256 100644 (file)
@@ -348,6 +348,9 @@ fail:
 
 static int dsi_p_wuxga_10_1_disable(void)
 {
+       if (gpio_is_valid(dsi_p_wuxga_10_1_pdata.dsi_panel_rst_gpio))
+               gpio_set_value(dsi_p_wuxga_10_1_pdata.dsi_panel_rst_gpio, 0);
+
        if (vdd_lcd_bl)
                regulator_disable(vdd_lcd_bl);