summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Kozaruk <oleksandr.kozaruk@globallogic.com>2015-07-31 15:00:22 -0700
committerEvan Wilson <evan@oliodevices.com>2015-08-07 12:54:31 -0700
commit3c4344266cc13c4f0180a34394ded212d7ea0350 (patch)
tree599b7a9bade5be178a837030b9056ce76044a772
parent17effd3107a92f2579d28ad8d0b39c44d401bf4b (diff)
downloadolio-linux-3.10-3c4344266cc13c4f0180a34394ded212d7ea0350.tar.xz
olio-linux-3.10-3c4344266cc13c4f0180a34394ded212d7ea0350.zip
olio: board: Use simple backlight enable/disable mode.
In off mode we want to be able to control it with PWM pin We can set pinmux pin connected to PWM to be pulled down in off mode, thus it will put the lm3530 device in shutdown. Change-Id: I5bc903b3c3cdd16f36b103cf9e2cf1a8e60e3653 Signed-off-by: Evan Wilson <evan@oliodevices.com>
-rw-r--r--arch/arm/mach-omap2/board-omap3h1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-omap3h1.c b/arch/arm/mach-omap2/board-omap3h1.c
index 6a6e8b2bd45..c2f3feac561 100644
--- a/arch/arm/mach-omap2/board-omap3h1.c
+++ b/arch/arm/mach-omap2/board-omap3h1.c
@@ -91,6 +91,8 @@
#define LCD_RESET_GPIO 122
#endif
+#define BACKLIGHT_PWM_GPIO 128
+
static struct of_device_id omap_dt_match_table[] __initdata = {
{ .compatible = "olio,omap3-h1", },
{ .compatible = "simple-bus", },
@@ -199,7 +201,7 @@ static struct mpu_platform_data mpu_data = {
#endif
static struct lm3530_platform_data omap3h1_backlight_platform_data = {
- .mode = LM3530_BL_MODE_MANUAL,
+ .mode = LM3530_BL_MODE_SIMPLE_MANUAL,
//.als_input_mode = LM3530_INPUT_ALS1,
.max_current = LM3530_FS_CURR_29mA,
//.pwm_pol_hi = true,
@@ -212,6 +214,7 @@ static struct lm3530_platform_data omap3h1_backlight_platform_data = {
//.als_vmin = 730, /* mV */
//.als_vmax = 10a20, /* mV */
.brt_val = 0x64, /* initial brightness */
+ .pwm_gpio = BACKLIGHT_PWM_GPIO,
};