]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
pinctrl: Tighten some pinctrl driver dependencies
authorTom Rini <trini@konsulko.com>
Mon, 4 Aug 2025 21:52:53 +0000 (15:52 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 14 Aug 2025 16:58:48 +0000 (10:58 -0600)
A few pinctrl drivers cannot build without access to some platform
specific header files. Express those requirements in Kconfig as well.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/pinctrl/Kconfig
drivers/pinctrl/tegra/Kconfig

index 5e2808abc8a9d6c85c2d6ffbab3ebee418063a03..48119694031da1eecbc249623505323aa176ec93 100644 (file)
@@ -197,7 +197,7 @@ config PINCTRL_AR933X
 
 config PINCTRL_AT91
        bool "AT91 pinctrl driver"
-       depends on DM
+       depends on DM && ARCH_AT91
        help
          This option is to enable the AT91 pinctrl driver for AT91 PIO
          controller.
@@ -213,13 +213,14 @@ config PINCTRL_AT91
 
 config PINCTRL_AT91PIO4
        bool "AT91 PIO4 pinctrl driver"
-       depends on DM
+       depends on DM && ARCH_AT91
        help
          This option is to enable the AT91 pinctrl driver for AT91 PIO4
          controller which is available on SAMA5D2 SoC.
 
 config PINCTRL_INTEL
        bool "Standard Intel pin-control and pin-mux driver"
+       depends on X86
        help
          Recent Intel chips such as Apollo Lake (APL) use a common pin control
          and GPIO scheme. The settings for this come from an SoC-specific
@@ -248,7 +249,7 @@ config PINCTRL_QCA953X
 
 config PINCTRL_QE
        bool "QE based pinctrl driver, like on mpc83xx"
-       depends on DM
+       depends on DM && MPC83xx
        help
          This option is to enable the QE pinctrl driver for QE based io
          controller.
index 669d8e258e430deee7c55b3755aad43871682a13..d2630289d750dde8208ecb5eb17c75a8e21a226d 100644 (file)
@@ -2,7 +2,7 @@
 
 config PINCTRL_TEGRA
        bool "Nvidia Tegra pinctrl driver"
-       depends on DM
+       depends on DM && ARCH_TEGRA
        help
          Support pin multiplexing control on Nvidia Tegra SoCs.
          The driver is an overlay to existing driver and allows
@@ -11,7 +11,7 @@ config PINCTRL_TEGRA
 
 config SPL_PINCTRL_TEGRA
        bool "Nvidia Tegra SPL pinctrl driver"
-       depends on SPL_PINCTRL
+       depends on SPL_PINCTRL && ARCH_TEGRA
        help
          Enables support of pre-DM version of pin multiplexing
          control driver used on SPL stage for board setup and