]> git.dujemihanovic.xyz Git - u-boot.git/commit
panel: Expand the backlight support
authorSimon Glass <sjg@chromium.org>
Mon, 1 Oct 2018 18:22:41 +0000 (12:22 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Oct 2018 10:40:27 +0000 (04:40 -0600)
commita4f737a9c39abb45a5bde47f313df48e645331f7
treeb491944bdc102e4bd9f7009ccead12ed5256d214
parent5d9a88f44a93daf623906fee7ca20fa396460ae2
panel: Expand the backlight support

At present the panel can be turned on but not off, and the brightness
cannot be controlled at run-time. Add a new API function to both the panel
and backlight uclasses to handle this. Enhance the PWM backlight driver
to deal with custom levels properly and allow the backlight to be turned
on and off.

Update the test to cover thes new features.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/backlight-uclass.c
drivers/video/panel-uclass.c
drivers/video/pwm_backlight.c
drivers/video/simple_panel.c
include/backlight.h
include/panel.h
test/dm/panel.c