summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Huang <kevinh@nvidia.com>2011-09-13 16:49:40 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-09-14 14:34:16 -0700
commit17efce7b49626cde29af8db695b18d4ab3db9099 (patch)
treea7c953297fd1f533457cc2ed948590f1f0044660
parent92ec78210ee1526dc2c35b7775674105aa6f729b (diff)
ARM: tegra: enterprise: Fix backlight toggling on Enterprise.
Bug 873860 Change-Id: I035ddc3106d1c9a71acbbf47072f888dee8ded36 Reviewed-on: http://git-master/r/52178 Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com> Tested-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com> Reviewed-by: Robert Morell <rmorell@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/board-enterprise-panel.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-panel.c b/arch/arm/mach-tegra/board-enterprise-panel.c
index efc9a3c84b06..89b658c84aee 100644
--- a/arch/arm/mach-tegra/board-enterprise-panel.c
+++ b/arch/arm/mach-tegra/board-enterprise-panel.c
@@ -127,6 +127,8 @@ static int enterprise_backlight_notify(struct device *unused, int brightness)
return brightness;
}
+static int enterprise_disp1_check_fb(struct device *dev, struct fb_info *info);
+
/*
* In case which_pwm is TEGRA_PWM_PM0,
* gpio_conf_to_sfio should be TEGRA_GPIO_PW0: set LCD_CS1_N pin to SFIO
@@ -144,6 +146,8 @@ static struct platform_tegra_pwm_backlight_data enterprise_disp1_backlight_data
.period = 0xFF,
.clk_div = 0x3FF,
.clk_select = 0,
+ /* Only toggle backlight on fb blank notifications for disp1 */
+ .check_fb = enterprise_disp1_check_fb,
};
static struct platform_device enterprise_disp1_backlight_device = {
@@ -636,6 +640,11 @@ static struct nvhost_device enterprise_disp1_device = {
},
};
+static int enterprise_disp1_check_fb(struct device *dev, struct fb_info *info)
+{
+ return info->device == &enterprise_disp1_device.dev;
+}
+
static struct nvhost_device enterprise_disp2_device = {
.name = "tegradc",
.id = 1,