summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorSean Paul <seanpaul@chromium.org>2011-09-21 15:18:45 -0400
committerSean Paul <seanpaul@chromium.org>2011-09-27 09:08:21 -0700
commitfa9e36d6efa9d75a2e8dc79a95d5b3a66d9d000e (patch)
treed6290395581adb7c290a9c87800b75ff3c1771a6 /drivers/video
parent9cc79dbbd72b2200763357a0c0fdd16190f3ed5e (diff)
CHROMIUM: ARM: tegra: asymptote: Fix Asymptote backlight vdd enable line
This line is a NC on Asymptote, but right now we're using the pwm line (incorrectly). This CL removes the backlight-vdd line from Asymptote dts and ensures that it's safely ignored if it's missing. BUG=None TEST=Built u-boot for Asymptote and flashed it on the device. Ensured that the backlight still works in u-boot. Change-Id: Id751b6756bac120e2211b7b32c58f356ff30b767 Signed-off-by: Sean Paul <seanpaul@chromium.org> Reviewed-on: http://gerrit.chromium.org/gerrit/8063 Reviewed-by: Jon Kliegman <kliegs@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/tegra2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/tegra2.c b/drivers/video/tegra2.c
index a8d83d3708..429194b047 100644
--- a/drivers/video/tegra2.c
+++ b/drivers/video/tegra2.c
@@ -152,8 +152,10 @@ static void init_lcd_pwm(struct fdt_lcd *config)
if ((long)(config->panel_timings[1] * 1000) > pre_delay)
udelay((long)(config->panel_timings[1] * 1000) - pre_delay);
- gpio_set_value(config->backlight_vdd.gpio, 1);
- udelay(config->panel_timings[2] * 1000);
+ if (fdt_gpio_isvalid(&config->backlight_vdd)) {
+ gpio_set_value(config->backlight_vdd.gpio, 1);
+ udelay(config->panel_timings[2] * 1000);
+ }
/* Enable PWM at 15/16 high, divider 1 */
pwfm_setup(config->pwfm, 1, 0xdf, 1);