]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
adc: Tighten some adc driver dependencies
authorTom Rini <trini@konsulko.com>
Wed, 2 Jul 2025 01:04:32 +0000 (19:04 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 10 Jul 2025 14:41:05 +0000 (08:41 -0600)
A few adc 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/adc/Kconfig

index 37235f557a3c825b5ba49725168b4b1a6b6581ca..2b45f9e5ebad974a9855b14e1abb2df0792aa75c 100644 (file)
@@ -18,7 +18,7 @@ config SPL_ADC
 
 config ADC_EXYNOS
        bool "Enable Exynos 54xx ADC driver"
-       depends on ADC
+       depends on ADC && ARCH_EXYNOS5
        help
          This enables basic driver for Exynos ADC compatible with Exynos54xx.
          It provides:
@@ -49,7 +49,7 @@ config SARADC_MESON
 
 config SARADC_ROCKCHIP
        bool "Enable Rockchip SARADC driver"
-       depends on ADC
+       depends on ADC && ARCH_ROCKCHIP
        help
          This enables driver for Rockchip SARADC.
          It provides: