summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-cardhu-panel.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu-panel.c')
-rw-r--r--arch/arm/mach-tegra/board-cardhu-panel.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-panel.c b/arch/arm/mach-tegra/board-cardhu-panel.c
index 9c1c768c7475..693cc1a051e8 100644
--- a/arch/arm/mach-tegra/board-cardhu-panel.c
+++ b/arch/arm/mach-tegra/board-cardhu-panel.c
@@ -190,7 +190,6 @@ static void cardhu_backlight_exit(struct device *dev) {
static int cardhu_backlight_notify(struct device *unused, int brightness)
{
int cur_sd_brightness = atomic_read(&sd_brightness);
- int orig_brightness = brightness;
#ifndef CONFIG_TEGRA_CARDHU_DSI
/* Set the backlight GPIO pin mode to 'backlight_enable' */
@@ -268,7 +267,8 @@ static int cardhu_panel_enable(void)
else
regulator_enable(cardhu_lvds_vdd_panel);
}
- if (board_info.board_id == BOARD_PM269)
+ if ((board_info.board_id == BOARD_PM269) ||
+ (board_info.board_id == BOARD_PM305))
gpio_set_value(pm269_lvds_shutdown, 1);
else
gpio_set_value(cardhu_lvds_shutdown, 1);
@@ -289,7 +289,8 @@ static int cardhu_panel_disable(void)
regulator_disable(cardhu_lvds_vdd_panel);
regulator_put(cardhu_lvds_vdd_panel);
cardhu_lvds_vdd_panel= NULL;
- if (board_info.board_id == BOARD_PM269)
+ if ((board_info.board_id == BOARD_PM269) ||
+ (board_info.board_id == BOARD_PM305))
gpio_set_value(pm269_lvds_shutdown, 0);
else
gpio_set_value(cardhu_lvds_shutdown, 0);
@@ -1031,7 +1032,8 @@ int __init cardhu_panel_init(void)
cardhu_disp1_out.n_modes = ARRAY_SIZE(cardhu_panel_modes_55hz);
}
- if (board_info.board_id == BOARD_PM269) {
+ if ((board_info.board_id == BOARD_PM269) ||
+ (board_info.board_id == BOARD_PM305)) {
gpio_request(pm269_lvds_shutdown, "lvds_shutdown");
gpio_direction_output(pm269_lvds_shutdown, 1);
tegra_gpio_enable(pm269_lvds_shutdown);