aboutsummaryrefslogtreecommitdiff
path: root/drivers/adc/Kconfig
diff options
context:
space:
mode:
authorNeil Armstrong <narmstrong@baylibre.com>2018-04-23 16:19:23 +0200
committerTom Rini <trini@konsulko.com>2018-05-08 09:07:40 -0400
commit59beb238d5b0609bdb2457a7e66e72212369d44b (patch)
tree81bf3ed8f3b740a8977459d255c7ccb9a6aa6deb /drivers/adc/Kconfig
parente068512ca6c915325cbb6da00961adb07230f03f (diff)
downloadu-boot-59beb238d5b0609bdb2457a7e66e72212369d44b.zip
u-boot-59beb238d5b0609bdb2457a7e66e72212369d44b.tar.gz
u-boot-59beb238d5b0609bdb2457a7e66e72212369d44b.tar.bz2
adc: add Amlogic Meson SAR ADC driver
This patch adds the driver for the Amlogic Meson Successive Approximation Register (SAR) A/D Converter based on the Linux IIO driver thanks to the great work of Martin Blumenstingl. The driver has been adapted to U-Boot and the ADC UClass. This patch depends on the regmap "regmap: add regmap_update_bits() helper" patch and has been tested using the newly introducted "adc" CLI command in the "cmd: add ADC cli commands" patch. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Diffstat (limited to 'drivers/adc/Kconfig')
-rw-r--r--drivers/adc/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/adc/Kconfig b/drivers/adc/Kconfig
index 8094420..93e27f1 100644
--- a/drivers/adc/Kconfig
+++ b/drivers/adc/Kconfig
@@ -29,6 +29,16 @@ config ADC_SANDBOX
- 16-bit resolution
- single and multi-channel conversion mode
+config SARADC_MESON
+ bool "Enable Amlogic Meson SARADC driver"
+ imply REGMAP
+ help
+ This enables driver for Amlogic Meson SARADC.
+ It provides:
+ - 8 analog input channels
+ - 1O or 12 bits resolution
+ - Up to 1MSPS of sample rate
+
config SARADC_ROCKCHIP
bool "Enable Rockchip SARADC driver"
help