tegra: cardhu: disable GPIO state on PWM pin
Jon Mayo [Mon, 7 Mar 2011 17:50:35 +0000 (09:50 -0800)]
use AD8/PH0 as PWM0, not as GPIO.

Bug 786163

Original-Change-Id: I2ef420ff28fb03b792827381103d1bb0d389ec33
Reviewed-on: http://git-master/r/21906
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: Ia12cee61321e05e52ecb4e6e46eb98fd0fd16f7a

Rebase-Id: R543f97e08d1f2efc9f9a2178d7cc5a9dae5b1112

arch/arm/mach-tegra/board-cardhu-panel.c

index c6c30d2..8954c52 100644 (file)
@@ -46,6 +46,7 @@
 
 #define cardhu_lvds_shutdown   TEGRA_GPIO_PL2
 #define cardhu_bl_enb          TEGRA_GPIO_PH2
+#define cardhu_bl_pwm          TEGRA_GPIO_PH0
 #define cardhu_hdmi_hpd                TEGRA_GPIO_PN7
 
 #ifdef DSI_PANEL_219
@@ -62,6 +63,8 @@ static int cardhu_backlight_init(struct device *dev) {
        int ret;
 
 #ifndef CONFIG_TEGRA_CARDHU_DSI
+       tegra_gpio_disable(cardhu_bl_pwm);
+
        ret = gpio_request(cardhu_bl_enb, "backlight_enb");
        if (ret < 0)
                return ret;