Skip to contentSkip to conversation

video: SIMPLE_PANEL depends on DM_GPIO

PATCH New Asherah Connor 2 participants 2 messages Mar 3, 2021 – Apr 11, 2021 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: SIMPLE_PANEL depends on DM_GPIO

SIMPLE_PANEL currently only depends on PANEL && BACKLIGHT, but the code makes references to dm_gpio_set_value and gpio_request_by_name. These are defined in drivers/gpio/gpio-uclass.c, so a dependency on DM_GPIO corrects these link errors:

aarch64-linux-gnu-ld.bfd: drivers/built-in.o: in function `simple_panel_set_backlight':
/home/kameliya/u-boot/drivers/video/simple_panel.c:42: undefined reference to dm_gpio_set_value' aarch64-linux-gnu-ld.bfd: drivers/built-in.o: in function simple_panel_enable_backlight':
/home/kameliya/u-boot/drivers/video/simple_panel.c:27: undefined reference to dm_gpio_set_value' aarch64-linux-gnu-ld.bfd: drivers/built-in.o: in function simple_panel_of_to_plat':
/home/kameliya/u-boot/drivers/video/simple_panel.c:72: undefined reference to `gpio_request_by_name'

This issue is only exposed if you have a board which enables CONFIG_DM_VIDEO without CONFIG_DM_GPIO; so far, none do, but soon a QEMU board may.

---

 drivers/video/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/Kconfig +1 -1
index 667157c2e9..220c008f8a 100644
@@ -209,7 +209,7 @@ config PANEL
 
 config SIMPLE_PANEL
 	bool "Enable simple panel support"
-	depends on PANEL && BACKLIGHT
+	depends on PANEL && BACKLIGHT && DM_GPIO
 	default y
 	help
 	  This turns on a simple panel driver that enables a compatible
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 video: SIMPLE_PANEL depends on DM_GPIO

On Wed, 3 Mar 2021 14:46:47 +1100
Asherah Connor ashe at kivikakk.ee wrote:
...

Quoted 2 lines
 drivers/video/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

applied to u-boot-video/master, thanks!

--
Anatolij