diff options
author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2018-07-24 16:31:31 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-08-03 19:53:10 -0400 |
commit | a466ecec483a94ac5c66d3ce6793e1575f333d23 (patch) | |
tree | c8381d1205420220f91ffd627426b322d35c17d9 /drivers/adc/Kconfig | |
parent | fb4e674a4b01d44fe15ea72c31c84598db11ebc1 (diff) | |
download | u-boot-a466ecec483a94ac5c66d3ce6793e1575f333d23.zip u-boot-a466ecec483a94ac5c66d3ce6793e1575f333d23.tar.gz u-boot-a466ecec483a94ac5c66d3ce6793e1575f333d23.tar.bz2 |
adc: Add driver for STM32 ADC
This patch adds support for STMicroelectronics STM32 ADC (analog to
digital converter). It's originally based on Linux kernel v4.18-rcs
drivers/iio/adc/stm32-adc*. It's composed of:
- core driver (UCLASS_SIMPLE_BUS) manages common resources (clk, regu).
- child drivers (UCLASS_ADC) declare each ADC, channels and handle
conversions.
This driver currently supports STM32H7 and STM32MP1 ADC.
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/adc/Kconfig')
-rw-r--r-- | drivers/adc/Kconfig | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/adc/Kconfig b/drivers/adc/Kconfig index 93e27f1..e719c38 100644 --- a/drivers/adc/Kconfig +++ b/drivers/adc/Kconfig @@ -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) |