]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
dm: backlight: Add CONFIG_BACKLIGHT_PWM
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 3 Aug 2017 10:36:06 +0000 (12:36 +0200)
committerAnatolij Gustschin <agust@denx.de>
Tue, 12 Sep 2017 11:40:47 +0000 (13:40 +0200)
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>
drivers/video/Kconfig
drivers/video/Makefile

index 082cc4a528be58169d9d5b6f2d63d8d3ef2a663c..fe34da073bbbaeb899134b8f5d8e497d468237b1 100644 (file)
@@ -14,6 +14,17 @@ config DM_VIDEO
          option compiles in the video uclass and routes all LCD/video access
          through this.
 
+config BACKLIGHT_PWM
+       bool "Generic PWM based Backlight Driver"
+       depends on DM_VIDEO && DM_PWM
+       default y
+       help
+         If you have a LCD backlight adjustable by PWM, say Y to enable
+         this driver.
+         This driver can be use with "simple-panel" and
+         it understands the standard device tree
+         (leds/backlight/pwm-backlight.txt)
+
 config VIDEO_BPP8
        bool "Support 8-bit-per-pixel displays"
        depends on DM_VIDEO
index 5cf8909295c73c22ca9b171d72bd7634fc45c57b..fc1cd14a51eb02f843630f5b6da11aca23d39629 100644 (file)
@@ -11,9 +11,7 @@ obj-$(CONFIG_DM_VIDEO) += backlight-uclass.o
 obj-$(CONFIG_DM_VIDEO) += panel-uclass.o simple_panel.o
 obj-$(CONFIG_DM_VIDEO) += video-uclass.o vidconsole-uclass.o
 obj-$(CONFIG_DM_VIDEO) += video_bmp.o
-ifdef CONFIG_DM_VIDEO
-obj-$(CONFIG_DM_PWM) += pwm_backlight.o
-endif
+obj-$(CONFIG_BACKLIGHT_PWM) += pwm_backlight.o
 obj-$(CONFIG_CONSOLE_NORMAL) += console_normal.o
 obj-$(CONFIG_CONSOLE_ROTATION) += console_rotate.o
 obj-$(CONFIG_CONSOLE_TRUETYPE) += console_truetype.o fonts/