diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-02-08 20:18:27 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-02-10 10:14:42 +0100 |
commit | 7f8eef95c3c832c76d10aa748918acd5f3f23fa8 (patch) | |
tree | 1640e2ff2c1dc43b57e5720d5900a6fd5bdaff89 /arch/arm | |
parent | b17bb9e7c1a3a2f40e53a52120b7f39042e351f7 (diff) | |
download | barebox-7f8eef95c3c832c76d10aa748918acd5f3f23fa8.tar.gz barebox-7f8eef95c3c832c76d10aa748918acd5f3f23fa8.tar.xz |
aiodev: add support for STM32 ADC
This driver supports simple one-shot readings rather than continuous
sampling with DMA, etc. ADC channels should be configured via
device tree, using the kernel bindings.
Code is based on the stm32-adc drivers of Linux v5.11-rc1 and
U-Boot v2021.01-rc4.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/configs/stm32mp_defconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/configs/stm32mp_defconfig b/arch/arm/configs/stm32mp_defconfig index e9f89e69d9..e1ee4ec082 100644 --- a/arch/arm/configs/stm32mp_defconfig +++ b/arch/arm/configs/stm32mp_defconfig @@ -94,6 +94,8 @@ CONFIG_NET_NETCONSOLE=y CONFIG_NET_FASTBOOT=y CONFIG_OFDEVICE=y CONFIG_OF_BAREBOX_DRIVERS=y +CONFIG_AIODEV=y +CONFIG_STM32_ADC=y CONFIG_DRIVER_SERIAL_STM32=y CONFIG_DRIVER_NET_DESIGNWARE_EQOS=y CONFIG_DRIVER_NET_DESIGNWARE_STM32=y @@ -132,6 +134,7 @@ CONFIG_STM32_BSEC=y CONFIG_REGULATOR=y CONFIG_REGULATOR_FIXED=y CONFIG_REGULATOR_STM32_PWR=y +CONFIG_REGULATOR_STM32_VREFBUF=y CONFIG_REGULATOR_STPMIC1=y CONFIG_REMOTEPROC=y CONFIG_STM32_REMOTEPROC=y |