Commit 08a43cfbc29224dadf1d725e26697c227bf9723a
Committed by
Anatolij Gustschin
1 parent
c98ac3487e
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
dm: backlight: Add CONFIG_BACKLIGHT_PWM
Add a config to select individually the driver for PWM backlights. Manage "depends on" to be backyard compatible. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Showing 2 changed files with 12 additions and 3 deletions Side-by-side Diff
drivers/video/Kconfig
... | ... | @@ -14,6 +14,17 @@ |
14 | 14 | option compiles in the video uclass and routes all LCD/video access |
15 | 15 | through this. |
16 | 16 | |
17 | +config BACKLIGHT_PWM | |
18 | + bool "Generic PWM based Backlight Driver" | |
19 | + depends on DM_VIDEO && DM_PWM | |
20 | + default y | |
21 | + help | |
22 | + If you have a LCD backlight adjustable by PWM, say Y to enable | |
23 | + this driver. | |
24 | + This driver can be use with "simple-panel" and | |
25 | + it understands the standard device tree | |
26 | + (leds/backlight/pwm-backlight.txt) | |
27 | + | |
17 | 28 | config VIDEO_BPP8 |
18 | 29 | bool "Support 8-bit-per-pixel displays" |
19 | 30 | depends on DM_VIDEO |
drivers/video/Makefile
... | ... | @@ -11,9 +11,7 @@ |
11 | 11 | obj-$(CONFIG_DM_VIDEO) += panel-uclass.o simple_panel.o |
12 | 12 | obj-$(CONFIG_DM_VIDEO) += video-uclass.o vidconsole-uclass.o |
13 | 13 | obj-$(CONFIG_DM_VIDEO) += video_bmp.o |
14 | -ifdef CONFIG_DM_VIDEO | |
15 | -obj-$(CONFIG_DM_PWM) += pwm_backlight.o | |
16 | -endif | |
14 | +obj-$(CONFIG_BACKLIGHT_PWM) += pwm_backlight.o | |
17 | 15 | obj-$(CONFIG_CONSOLE_NORMAL) += console_normal.o |
18 | 16 | obj-$(CONFIG_CONSOLE_ROTATION) += console_rotate.o |
19 | 17 | obj-$(CONFIG_CONSOLE_TRUETYPE) += console_truetype.o fonts/ |