From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Cc: Anatolij Gustschin <ag.dev.uboot@gmail.com>,
Svyatoslav Ryhel <clamor95@gmail.com>
Subject: [PATCHv2 2/7] video: tegra: Rework some of the driver dependencies
Date: Wed, 12 Nov 2025 14:00:03 -0600 [thread overview]
Message-ID: <20251112200315.1111980-3-trini@konsulko.com> (raw)
In-Reply-To: <20251112200315.1111980-1-trini@konsulko.com>
Looking these drivers over, all of them cannot build without access to
some platform specific header files. Express those requirements in
Kconfig as well. Furthermore, update the logic a bit more to reflect
which parts are optional when other drivers are enabled and which parts
cannot be enabled (meaningfully) by themselves.
Reviewed-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
configs/star_defconfig | 1 +
drivers/video/tegra/Kconfig | 19 ++++++++++---------
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/configs/star_defconfig b/configs/star_defconfig
index 59eabdcb2b43..7015c417e9eb 100644
--- a/configs/star_defconfig
+++ b/configs/star_defconfig
@@ -86,4 +86,5 @@ CONFIG_VIDEO_LCD_LG_LH400WV3=y
CONFIG_VIDEO_LCD_HITACHI_TX10D07VM0BAA=y
CONFIG_BACKLIGHT_AAT2870=y
CONFIG_VIDEO_BRIDGE=y
+CONFIG_VIDEO_TEGRA=y
CONFIG_TEGRA_8BIT_CPU_BRIDGE=y
diff --git a/drivers/video/tegra/Kconfig b/drivers/video/tegra/Kconfig
index f32972d937e5..8bc29f2838bd 100644
--- a/drivers/video/tegra/Kconfig
+++ b/drivers/video/tegra/Kconfig
@@ -1,10 +1,12 @@
config HOST1X_TEGRA
- bool "NVIDIA Tegra host1x BUS support"
- depends on SIMPLE_BUS
+ bool
+ select SIMPLE_BUS
+ help
+ NVIDIA Tegra host1x BUS support
config VIDEO_TEGRA
bool "Enable Display Controller support on Tegra devices"
- depends on OF_CONTROL
+ depends on OF_CONTROL && ARCH_TEGRA
select HOST1X_TEGRA
help
Enable support for Display Controller found in Tegra SoC. The
@@ -17,7 +19,7 @@ config VIDEO_TEGRA
config VIDEO_DSI_TEGRA
bool "Enable DSI controller support on Tegra devices"
- depends on VIDEO_BRIDGE && PANEL && DM_GPIO
+ depends on VIDEO_BRIDGE && PANEL && DM_GPIO && ARCH_TEGRA
select VIDEO_TEGRA
select VIDEO_MIPI_DSI
help
@@ -27,7 +29,7 @@ config VIDEO_DSI_TEGRA
config VIDEO_HDMI_TEGRA
bool "Enable HDMI support on Tegra devices"
- depends on VIDEO_BRIDGE && DM_I2C
+ depends on VIDEO_BRIDGE && DM_I2C && ARCH_TEGRA
select I2C_EDID
select VIDEO_TEGRA
help
@@ -36,16 +38,14 @@ config VIDEO_HDMI_TEGRA
config TEGRA_BACKLIGHT_PWM
bool "Enable Tegra DC PWM backlight support"
- depends on BACKLIGHT
- select VIDEO_TEGRA
+ depends on BACKLIGHT && VIDEO_TEGRA
help
Enable support for the Display Controller dependent PWM backlight
found in the Tegra SoC and usually used with DSI panels.
config TEGRA_8BIT_CPU_BRIDGE
bool "Enable 8 bit panel communication protocol for Tegra 20/30"
- depends on VIDEO_BRIDGE && DM_GPIO
- select VIDEO_TEGRA
+ depends on VIDEO_BRIDGE && DM_GPIO && VIDEO_TEGRA
select VIDEO_MIPI_DSI
help
Tegra 20 and Tegra 30 feature 8 bit CPU driver panel control
@@ -54,6 +54,7 @@ config TEGRA_8BIT_CPU_BRIDGE
config VIDEO_TEGRA124
bool "Enable video support on Tegra124"
+ depends on ARCH_TEGRA
imply VIDEO_DAMAGE
help
Tegra124 supports many video output options including eDP and
--
2.43.0
next prev parent reply other threads:[~2025-11-12 20:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-12 20:00 [PATCHv2 0/7] video: Remove unused drivers, clean up dependencies Tom Rini
2025-11-12 20:00 ` [PATCHv2 1/7] video: mali_dp: Remove unused driver Tom Rini
2025-11-12 20:00 ` Tom Rini [this message]
2025-11-12 20:00 ` [PATCHv2 3/7] video: Tighten some video driver dependencies Tom Rini
2025-11-12 20:00 ` [PATCHv2 4/7] video: anx9804: Only build when needed Tom Rini
2025-11-12 20:00 ` [PATCHv2 5/7] video: ihs_video_out: Add missing <asm/io.h> to ihs_video_out.c Tom Rini
2025-11-12 20:00 ` [PATCHv2 6/7] video: sharp-lq101r1sx01: Do not make use of 'z' for printing non-size_t Tom Rini
2025-11-12 20:00 ` [PATCHv2 7/7] video: stm32: stm32_ltdc: Add missing <linux/sizes.h> to stm32_ltdc.c Tom Rini
2025-12-30 23:19 ` [PATCHv2 0/7] video: Remove unused drivers, clean up dependencies Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251112200315.1111980-3-trini@konsulko.com \
--to=trini@konsulko.com \
--cc=ag.dev.uboot@gmail.com \
--cc=clamor95@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox