summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Chang <kenc@nvidia.com>2011-07-19 10:29:33 +0800
committerVarun Colbert <vcolbert@nvidia.com>2011-07-25 18:47:00 -0700
commita36baae3aa112e166584484dec9d6520e5e5cee6 (patch)
tree80a5b075e08388820241b0671b9e9f04890e5c72
parent9a4f701f037c95522947950ed0933584b31d5742 (diff)
ARM: tegra: ventana: support power sequence timing
below variables should be defined according to power sequence specifications of panels. - timing between panel power on to lvds singal enable - timing between lvds signal enable to backlight enable bug 818959 (cherry picked from commit 38c3b4bc7fcda70df84bd4a10112cc1468f0a856) (reviewed on http://git-master/r/41669) Change-Id: I4844baf2cb680e3e898bcf0907be57f29e0c71da Reviewed-on: http://git-master/r/42967 Tested-by: Ken Chang <kenc@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: ChihJen Hsu <chhsu@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/board-ventana-panel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-ventana-panel.c b/arch/arm/mach-tegra/board-ventana-panel.c
index fab0a1b54881..5ad6acd57472 100644
--- a/arch/arm/mach-tegra/board-ventana-panel.c
+++ b/arch/arm/mach-tegra/board-ventana-panel.c
@@ -43,6 +43,10 @@
#define ventana_hdmi_hpd TEGRA_GPIO_PN7
#define ventana_hdmi_enb TEGRA_GPIO_PV5
+/*panel power on sequence timing*/
+#define ventana_pnl_to_lvds_ms 0
+#define ventana_lvds_to_bl_ms 200
+
static struct regulator *ventana_hdmi_reg = NULL;
static struct regulator *ventana_hdmi_pll = NULL;
@@ -105,7 +109,9 @@ static int ventana_panel_enable(void)
regulator_put(reg);
gpio_set_value(ventana_pnl_pwr_enb, 1);
+ mdelay(ventana_pnl_to_lvds_ms);
gpio_set_value(ventana_lvds_shutdown, 1);
+ mdelay(ventana_lvds_to_bl_ms);
return 0;
}