]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
video: tegra: Rework some of the driver dependencies
authorTom Rini <trini@konsulko.com>
Wed, 12 Nov 2025 20:00:03 +0000 (14:00 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 30 Dec 2025 16:21:48 +0000 (10:21 -0600)
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
drivers/video/tegra/Kconfig

index 59eabdcb2b439e48bd2a807102c1fe88ee0f6f1d..7015c417e9ebbb7ae288c714a153646cde56df96 100644 (file)
@@ -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
index f32972d937e5e02196a6d8bb15651bffd109a714..8bc29f2838bd8f784ebc2ae3d32200055424e31c 100644 (file)
@@ -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