diff options
author | Anatolij Gustschin <agust@denx.de> | 2020-05-26 00:20:49 +0200 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2020-06-18 19:28:36 +0200 |
commit | e26e520046a1b551f25acf3d7b6705a37c808deb (patch) | |
tree | 49c614e432034e98c10ab132252dff73c67dc625 /drivers/video/Kconfig | |
parent | 0b12f76f7241cb22d4a41ab048b64c8c3a88199d (diff) | |
download | u-boot-e26e520046a1b551f25acf3d7b6705a37c808deb.tar.gz u-boot-e26e520046a1b551f25acf3d7b6705a37c808deb.tar.xz u-boot-e26e520046a1b551f25acf3d7b6705a37c808deb.zip |
video: make backlight and panel drivers optional
Not all boards use these drivers, so allow to disable them to fix
building boards with U-Boot binary image size restrictions.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/video/Kconfig')
-rw-r--r-- | drivers/video/Kconfig | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index d0e9563b77..aaea7ce743 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -14,9 +14,17 @@ config DM_VIDEO option compiles in the video uclass and routes all LCD/video access through this. +config BACKLIGHT + bool "Enable panel backlight uclass support" + depends on DM_VIDEO + default y + help + This provides backlight uclass driver that enables basic panel + backlight support. + config BACKLIGHT_PWM bool "Generic PWM based Backlight Driver" - depends on DM_VIDEO && DM_PWM + depends on BACKLIGHT && DM_PWM default y help If you have a LCD backlight adjustable by PWM, say Y to enable @@ -27,7 +35,7 @@ config BACKLIGHT_PWM config BACKLIGHT_GPIO bool "Generic GPIO based Backlight Driver" - depends on DM_VIDEO + depends on BACKLIGHT help If you have a LCD backlight adjustable by GPIO, say Y to enable this driver. @@ -151,6 +159,21 @@ config NO_FB_CLEAR loads takes over the screen. This, for example, can be used to keep splash image on screen until grub graphical boot menu starts. +config PANEL + bool "Enable panel uclass support" + depends on DM_VIDEO + default y + help + This provides panel uclass driver that enables basic panel support. + +config SIMPLE_PANEL + bool "Enable simple panel support" + depends on PANEL + default y + help + This turns on a simple panel driver that enables a compatible + video panel. + source "drivers/video/fonts/Kconfig" config VIDCONSOLE_AS_LCD |