diff options
author | Narendra Damahe <ndamahe@nvidia.com> | 2010-12-17 13:57:48 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:46:08 -0800 |
commit | 89eeee0b70937d50420e42c714e64274ed445a2b (patch) | |
tree | 7bb8c97f31110ca4261d0aa548b93a8dc1ff22ca /arch/arm/mach-tegra/board-ventana-panel.c | |
parent | 99a41e2d15377a5e4a8dd89649970ea374fd3d46 (diff) |
[tegra/ventana] display/panel power control support
added code to control panel power during display on/off.
Original-Change-Id: I41754c0a7639a395162c7df564ea6057b863edbc
Reviewed-on: http://git-master/r/13673
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Tested-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Rebase-Id: R8ec61009d50d81ba1ba1a83e855982f4875fab83
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana-panel.c')
-rw-r--r-- | arch/arm/mach-tegra/board-ventana-panel.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/board-ventana-panel.c b/arch/arm/mach-tegra/board-ventana-panel.c index b2f61b323e27..c09272ac8b44 100644 --- a/arch/arm/mach-tegra/board-ventana-panel.c +++ b/arch/arm/mach-tegra/board-ventana-panel.c @@ -34,7 +34,7 @@ #include "devices.h" #include "gpio-names.h" - +#define ventana_pnl_pwr_enb TEGRA_GPIO_PC6 #define ventana_bl_enb TEGRA_GPIO_PD4 #define ventana_lvds_shutdown TEGRA_GPIO_PB2 #define ventana_hdmi_hpd TEGRA_GPIO_PN7 @@ -93,7 +93,7 @@ static struct platform_device ventana_backlight_device = { static int ventana_panel_enable(void) { static struct regulator *reg = NULL; - + gpio_set_value(ventana_pnl_pwr_enb, 1); if (reg == NULL) { reg = regulator_get(NULL, "avdd_lvds"); if (WARN_ON(IS_ERR(reg))) @@ -102,7 +102,6 @@ static int ventana_panel_enable(void) else regulator_enable(reg); } - gpio_set_value(ventana_lvds_shutdown, 1); return 0; } @@ -110,6 +109,7 @@ static int ventana_panel_enable(void) static int ventana_panel_disable(void) { gpio_set_value(ventana_lvds_shutdown, 0); + gpio_set_value(ventana_pnl_pwr_enb, 0); return 0; } @@ -325,6 +325,9 @@ static struct platform_device *ventana_gfx_devices[] __initdata = { int __init ventana_panel_init(void) { int err; + gpio_request(ventana_pnl_pwr_enb, "pnl_pwr_enb"); + gpio_direction_output(ventana_pnl_pwr_enb, 1); + tegra_gpio_enable(ventana_pnl_pwr_enb); gpio_request(ventana_lvds_shutdown, "lvds_shdn"); gpio_direction_output(ventana_lvds_shutdown, 1); |