* [PATCH] video: make backlight and panel drivers optional
@ 2020-05-25 22:20 Anatolij Gustschin
2020-05-26 12:39 ` Simon Glass
2020-06-19 13:42 ` Anatolij Gustschin
0 siblings, 2 replies; 3+ messages in thread
From: Anatolij Gustschin @ 2020-05-25 22:20 UTC (permalink / raw)
To: u-boot
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>
---
drivers/video/Kconfig | 27 +++++++++++++++++++++++++--
drivers/video/Makefile | 5 +++--
2 files changed, 28 insertions(+), 4 deletions(-)
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index eb5e26644a..01e8dbf678 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
diff --git a/drivers/video/Makefile b/drivers/video/Makefile
index df7119d62a..1dbd09a172 100644
--- a/drivers/video/Makefile
+++ b/drivers/video/Makefile
@@ -4,17 +4,18 @@
# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
ifdef CONFIG_DM
+obj-$(CONFIG_BACKLIGHT) += backlight-uclass.o
obj-$(CONFIG_BACKLIGHT_GPIO) += backlight_gpio.o
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/
obj-$(CONFIG_DISPLAY) += display-uclass.o
-obj-$(CONFIG_DM_VIDEO) += backlight-uclass.o
obj-$(CONFIG_VIDEO_MIPI_DSI) += dsi-host-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
+obj-$(CONFIG_PANEL) += panel-uclass.o
+obj-$(CONFIG_SIMPLE_PANEL) += simple_panel.o
endif
obj-${CONFIG_EXYNOS_FB} += exynos/
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] video: make backlight and panel drivers optional
2020-05-25 22:20 [PATCH] video: make backlight and panel drivers optional Anatolij Gustschin
@ 2020-05-26 12:39 ` Simon Glass
2020-06-19 13:42 ` Anatolij Gustschin
1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2020-05-26 12:39 UTC (permalink / raw)
To: u-boot
On Mon, 25 May 2020 at 16:20, Anatolij Gustschin <agust@denx.de> wrote:
>
> 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>
> ---
> drivers/video/Kconfig | 27 +++++++++++++++++++++++++--
> drivers/video/Makefile | 5 +++--
> 2 files changed, 28 insertions(+), 4 deletions(-)
>
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] video: make backlight and panel drivers optional
2020-05-25 22:20 [PATCH] video: make backlight and panel drivers optional Anatolij Gustschin
2020-05-26 12:39 ` Simon Glass
@ 2020-06-19 13:42 ` Anatolij Gustschin
1 sibling, 0 replies; 3+ messages in thread
From: Anatolij Gustschin @ 2020-06-19 13:42 UTC (permalink / raw)
To: u-boot
On Tue, 26 May 2020 00:20:49 +0200
Anatolij Gustschin agust at denx.de wrote:
> 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>
> ---
> drivers/video/Kconfig | 27 +++++++++++++++++++++++++--
> drivers/video/Makefile | 5 +++--
> 2 files changed, 28 insertions(+), 4 deletions(-)
Applied to u-boot-video/next, thanks!
--
Anatolij
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-19 13:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-25 22:20 [PATCH] video: make backlight and panel drivers optional Anatolij Gustschin
2020-05-26 12:39 ` Simon Glass
2020-06-19 13:42 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox