summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-enterprise-panel.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise-panel.c')
-rw-r--r--arch/arm/mach-tegra/board-enterprise-panel.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-panel.c b/arch/arm/mach-tegra/board-enterprise-panel.c
index 9438f865ecb2..867fd7c91494 100644
--- a/arch/arm/mach-tegra/board-enterprise-panel.c
+++ b/arch/arm/mach-tegra/board-enterprise-panel.c
@@ -65,14 +65,22 @@ static struct regulator *enterprise_hdmi_vddio;
static atomic_t sd_brightness = ATOMIC_INIT(255);
+/*
+ * In case which_pwm is TEGRA_PWM_PM0,
+ * gpio_conf_to_sfio should be TEGRA_GPIO_PW0: set LCD_CS1_N pin to SFIO
+ * In case which_pwm is TEGRA_PWM_PM1,
+ * gpio_conf_to_sfio should be TEGRA_GPIO_PW1: set LCD_M1 pin to SFIO
+ */
static struct platform_tegra_pwm_backlight_data enterprise_disp1_backlight_data = {
- .which_dc = 0,
- .which_pwm = TEGRA_PWM_PM1,
- .max_brightness = 255,
- .dft_brightness = 224,
- .period = 0x3F,
- .clk_div = 1,
- .clk_select = 2,
+ .which_dc = 0,
+ .which_pwm = TEGRA_PWM_PM1,
+ .gpio_conf_to_sfio = TEGRA_GPIO_PW1,
+ .switch_to_sfio = &tegra_gpio_disable,
+ .max_brightness = 255,
+ .dft_brightness = 224,
+ .period = 0x3F,
+ .clk_div = 1,
+ .clk_select = 2,
};
static struct platform_device enterprise_disp1_backlight_device = {
@@ -627,8 +635,6 @@ int __init enterprise_panel_init(void)
gpio_direction_output(enterprise_lcd_swp_pl, 0);
enterprise_stereo_set_orientation(enterprise_stereo.orientation);
- tegra_gpio_disable(TEGRA_GPIO_PW1);
-
err = platform_add_devices(enterprise_gfx_devices,
ARRAY_SIZE(enterprise_gfx_devices));