[U-Boot] [PATCH 37/45] panel: Expand the backlight support

sjg at google.com sjg at google.com
Tue Oct 9 23:54:54 UTC 2018


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 at chromium.org>
---

 drivers/video/backlight-uclass.c |  10 ++
 drivers/video/panel-uclass.c     |  18 +++
 drivers/video/pwm_backlight.c    | 186 +++++++++++++++++++++++++------
 drivers/video/simple_panel.c     |  20 +++-
 include/backlight.h              |  25 +++++
 include/panel.h                  |  22 +++-
 test/dm/panel.c                  |  29 +++++
 7 files changed, 273 insertions(+), 37 deletions(-)

Applied to u-boot-dm


More information about the U-Boot mailing list