[PATCH v1] nitrogen6x: Fix compile error if VIDEO_IPUV3 is disabled
Simon Gaynor
Simon.Gaynor at ezurio.com
Sat Apr 25 20:10:55 CEST 2026
Reviewed-by: Simon Gaynor <simon.gaynor at ezurio.com>
Thanks,
Simon.
________________________________
From: Jacky Cao <Jacky.Cao at sony.com>
Sent: Thursday, April 23, 2026 7:37 AM
To: u-boot at lists.denx.de <u-boot at lists.denx.de>
Cc: Simon Gaynor <simon.gaynor at ezurio.com>; trini at konsulko.com <trini at konsulko.com>; troy.kisky at boundarydevices.com <troy.kisky at boundarydevices.com>; Jacky Cao <Jacky.Cao at sony.com>
Subject: [PATCH v1] nitrogen6x: Fix compile error if VIDEO_IPUV3 is disabled
[You don't often get email from jacky.cao at sony.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
EXTERNAL EMAIL: Be careful with attachments and links.
Following compile error happens for mx6qsabrelite when disable
CONFIG_VIDEO_IPUV3.
board/boundary/nitrogen6x/nitrogen6x.c: In function 'misc_init_r':
board/boundary/nitrogen6x/nitrogen6x.c:912:22: error: 'RGB_BACKLIGHT_GP' undeclared (first use in this function)
912 | gpio_request(RGB_BACKLIGHT_GP, "lvds backlight");
| ^~~~~~~~~~~~~~~~
board/boundary/nitrogen6x/nitrogen6x.c:912:22: note: each undeclared identifier is reported only once for each function it appears in
CC cmd/bind.o
CC drivers/gpio/gpio-uclass.o
CC boot/bootmeth_extlinux.o
board/boundary/nitrogen6x/nitrogen6x.c:913:22: error: 'LVDS_BACKLIGHT_GP' undeclared (first use in this function)
913 | gpio_request(LVDS_BACKLIGHT_GP, "lvds backlight");
| ^~~~~~~~~~~~~~~~~
AR arch/arm/lib/lib.a
make[1]: *** [scripts/Makefile.build:271: board/boundary/nitrogen6x/nitrogen6x.o] Error 1
CC boot/bootmeth_pxe.o
make: *** [Makefile:2205: board/boundary/nitrogen6x] Error 2
make: *** Waiting for unfinished jobs....
To fix this, use reported macros included in CONFIG_VIDEO_IPUV3.
Fixes: 1b51e5f4cd2a ("nitrogen6x: reserve used gpios")
Signed-off-by: Jacky Cao <Jacky.Cao at sony.com>
---
board/boundary/nitrogen6x/nitrogen6x.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
index 1adee9a461f..e45db109f4f 100644
--- a/board/boundary/nitrogen6x/nitrogen6x.c
+++ b/board/boundary/nitrogen6x/nitrogen6x.c
@@ -909,8 +909,10 @@ static const struct boot_mode board_boot_modes[] = {
int misc_init_r(void)
{
+#if defined(CONFIG_VIDEO_IPUV3)
gpio_request(RGB_BACKLIGHT_GP, "lvds backlight");
gpio_request(LVDS_BACKLIGHT_GP, "lvds backlight");
+#endif
gpio_request(GP_USB_OTG_PWR, "usbotg power");
gpio_request(IMX_GPIO_NR(7, 12), "usbh1 hub reset");
gpio_request(IMX_GPIO_NR(2, 2), "back");
--
2.34.1
THE INFORMATION CONTAINED IN THIS DOCUMENT IS OF A PROPRIETARY NATURE AND IS INTENDED TO BE KEPT CONFIDENTIAL BETWEEN THE SENDER AND THE INTENDED RECIPIENT. IT MAY NOT BE REPRODUCED OR USED WITHOUT EXPRESS WRITTEN PERMISSION OF EZURIO
More information about the U-Boot
mailing list