spl: spl_legacy: Use IS_ENABLED() to remove #ifdef
[oweals/u-boot.git] / drivers / adc / Kconfig
index 93e27f131cab01e1678e6988975b2f15f19956aa..e719c38bb31a7176ccddfaf51b1459c196fe47f4 100644 (file)
@@ -47,3 +47,19 @@ config SARADC_ROCKCHIP
          - 2~6 analog input channels
          - 1O or 12 bits resolution
          - Up to 1MSPS of sample rate
+
+config STM32_ADC
+       bool "Enable STMicroelectronics STM32 ADC driver"
+       depends on ADC && (STM32H7 || ARCH_STM32MP)
+       help
+         This enables driver for STMicroelectronics STM32 analog-to-digital
+         converter (ADC).
+         A STM32 ADC block can be composed of several individual ADCs.
+         Each has its own private registers, but shares some resources:
+         - clock selection and prescaler
+         - voltage reference
+         - common registers area.
+         STM32 ADC driver is composed of:
+         - core driver to deal with common resources
+         - child driver to deal with individual ADC resources (declare ADC
+         device and associated channels, start/stop conversions)