summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorJong Kim <jongk@nvidia.com>2011-09-06 18:56:45 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-09-08 17:21:04 -0700
commit22d69cae292d99204502f685f483a575fe2e82c8 (patch)
tree5d6a244916fb92f02e082a1b2a76fb115be7ea35 /arch/arm
parent9e7bf6bd080289b9381c6e1602207535eec5a613 (diff)
arm: tegra: Add power on sequence timing for Harmony display panel
Added proper power on sequence for Harmony display panel. BUG=None TESTS=Flash Harmony and boot/suspend/reboot works fine. Change-Id: I81d6488d187908b4323810a99cfb70d176a994b4 Signed-off-by: Jong Kim <jongk@nvidia.com> Reviewed-on: http://git-master/r/50955 Reviewed-by: Winnie Hsu <whsu@nvidia.com> Reviewed-by: Mursalin Akon <makon@nvidia.com> Reviewed-by: Allen Martin <amartin@nvidia.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-tegra/board-harmony-panel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-harmony-panel.c b/arch/arm/mach-tegra/board-harmony-panel.c
index 94baae1181b7..de4bb087d03c 100644
--- a/arch/arm/mach-tegra/board-harmony-panel.c
+++ b/arch/arm/mach-tegra/board-harmony-panel.c
@@ -43,6 +43,10 @@
#define harmony_bl_pwm TEGRA_GPIO_PB4
#define harmony_hdmi_hpd TEGRA_GPIO_PN7
+/*panel power on sequence timing*/
+#define harmony_pnl_to_lvds_ms 0
+#define harmony_lvds_to_bl_ms 200
+
static int harmony_backlight_init(struct device *dev)
{
int ret;
@@ -99,13 +103,17 @@ static struct platform_device harmony_backlight_device = {
static int harmony_panel_enable(void)
{
+ gpio_set_value(harmony_en_vdd_pnl, 1);
+ mdelay(harmony_pnl_to_lvds_ms);
gpio_set_value(harmony_lvds_shutdown, 1);
+ mdelay(harmony_lvds_to_bl_ms);
return 0;
}
static int harmony_panel_disable(void)
{
gpio_set_value(harmony_lvds_shutdown, 0);
+ gpio_set_value(harmony_en_vdd_pnl, 0);
return 0;
}