ARM: tegra: cardhu: Initialize gpio for lvds_shutdown properly.
Kevin Huang [Mon, 25 Jul 2011 19:28:02 +0000 (12:28 -0700)]
Original-Change-Id: I5f1f13089cc8eaaee9f33b5ef811f4e8036225b0
Reviewed-on: http://git-master/r/43085
Reviewed-by: Kevin Huang <kevinh@nvidia.com>
Tested-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>

Rebase-Id: R86bae22ba87898d11ec854d4326b7f7a50cb5fb8

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

index bfea805..5e28f35 100644 (file)
@@ -957,10 +957,15 @@ int __init cardhu_panel_init(void)
        cardhu_carveouts[1].base = tegra_carveout_start;
        cardhu_carveouts[1].size = tegra_carveout_size;
 
-       if (board_info.board_id == BOARD_PM269)
+       if (board_info.board_id == BOARD_PM269) {
                gpio_request(pm269_lvds_shutdown, "lvds_shutdown");
-       else
+               gpio_direction_output(pm269_lvds_shutdown, 1);
+               tegra_gpio_enable(pm269_lvds_shutdown);
+       } else {
                gpio_request(cardhu_lvds_shutdown, "lvds_shutdown");
+               gpio_direction_output(cardhu_lvds_shutdown, 1);
+               tegra_gpio_enable(cardhu_lvds_shutdown);
+       }
 
        tegra_gpio_enable(cardhu_hdmi_hpd);
        gpio_request(cardhu_hdmi_hpd, "hdmi_hpd");