]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
pwm: Tighten some pwm driver dependencies
authorTom Rini <trini@konsulko.com>
Mon, 4 Aug 2025 21:53:53 +0000 (15:53 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 14 Aug 2025 16:59:05 +0000 (10:59 -0600)
A few pwm 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/pwm/Kconfig

index e4c676d75c2b8813c0584738ca64b69bd1a1198a..06f42f699dec3a5167feb32631bbf9cc249ba44e 100644 (file)
@@ -42,7 +42,7 @@ config PWM_CROS_EC
 
 config PWM_EXYNOS
        bool "Enable support for the Exynos PWM"
-       depends on DM_PWM
+       depends on DM_PWM && ARCH_EXYNOS
        help
          This PWM is found on Samsung Exynos 5250 and other Samsung SoCs. It
          supports a programmable period and duty cycle. A 32-bit counter is
@@ -51,6 +51,7 @@ config PWM_EXYNOS
 
 config PWM_IMX
        bool "Enable support for i.MX27 and later PWM"
+       depends on MACH_IMX
        help
          This PWM is found i.MX27 and later i.MX SoCs.
 
@@ -70,7 +71,7 @@ config PWM_MTK
 
 config PWM_ROCKCHIP
        bool "Enable support for the Rockchip PWM"
-       depends on DM_PWM
+       depends on DM_PWM && ARCH_ROCKCHIP
        help
          This PWM is found on RK3288 and other Rockchip SoCs. It supports a
          programmable period and duty cycle. A 32-bit counter is used.
@@ -98,7 +99,7 @@ config PWM_SIFIVE
 
 config PWM_TEGRA
        bool "Enable support for the Tegra PWM"
-       depends on DM_PWM
+       depends on DM_PWM && ARCH_TEGRA
        help
          This PWM is found on Tegra 20 and other Nvidia SoCs. It supports
          four channels with a programmable period and duty cycle. Only a
@@ -115,7 +116,7 @@ config PWM_STM32
 
 config PWM_SUNXI
        bool "Enable support for the Allwinner Sunxi PWM"
-       depends on DM_PWM
+       depends on DM_PWM && ARCH_SUNXI
        help
          This PWM is found on H3, A64 and other Allwinner SoCs. It supports a
          programmable period and duty cycle. A 16-bit counter is used.