diff options
author | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2018-03-28 20:03:25 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-04-30 12:50:44 +0300 |
commit | 3157694d8c7fed9046dece8b63434cafef21cbf6 (patch) | |
tree | fad20686e233da7d607d81292a3a9718b6784ff8 /include/linux/pwm_backlight.h | |
parent | ac7bfb27729fbfe85b93b083cba7898a1c9a9d91 (diff) | |
download | linux-3157694d8c7fed9046dece8b63434cafef21cbf6.tar.xz |
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.h | 2 |
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); |