aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pwm_backlight.h
diff options
context:
space:
mode:
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>2018-03-28 19:03:25 +0200
committerLee Jones <lee.jones@linaro.org>2018-04-30 10:50:44 +0100
commit3157694d8c7fed9046dece8b63434cafef21cbf6 (patch)
treefad20686e233da7d607d81292a3a9718b6784ff8 /include/linux/pwm_backlight.h
parentdt-bindings: pwm-backlight: Add PWM delay proprieties. (diff)
downloadlinux-dev-3157694d8c7fed9046dece8b63434cafef21cbf6.tar.xz
linux-dev-3157694d8c7fed9046dece8b63434cafef21cbf6.zip
pwm-backlight: Add support for PWM delays proprieties.
Some panels (i.e. N116BGE-L41), in their power sequence specifications, request a delay between set the PWM signal and enable the backlight and between clear the PWM signal and disable the backlight. Add support for the new post-pwm-on-delay-ms and pwm-off-delay-ms proprieties to meet the timings. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: Pavel Machek <pavel@ucw.cz> Acked-by: Daniel Thompson <daniel.thompson@linaro.org> Acked-by: Jingoo Han <jingoohan1@gmail.com> Acked-by: Thierry Reding <thierry.reding@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/pwm_backlight.h')
-rw-r--r--include/linux/pwm_backlight.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pwm_backlight.h b/include/linux/pwm_backlight.h
index e8afbd71a140..8ea265a022fd 100644
--- a/include/linux/pwm_backlight.h
+++ b/include/linux/pwm_backlight.h
@@ -14,6 +14,8 @@ struct platform_pwm_backlight_data {
unsigned int lth_brightness;
unsigned int pwm_period_ns;
unsigned int *levels;
+ unsigned int post_pwm_on_delay;
+ unsigned int pwm_off_delay;
/* TODO remove once all users are switched to gpiod_* API */
int enable_gpio;
int (*init)(struct device *dev);