summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/stm32-vrefbuf.c
Commit message (Collapse)AuthorAgeFilesLines
* include: <io.h>: define (read|write)[bwlq]_relaxedAhmad Fatoum2021-06-111-3/+1
| | | | | | | | | | | | | | For Linux, It's always correct to substitute any of the read or write _relaxed functions with their non relaxed counterpart. Define functions that do this. Unlike with Linux, they doesn't per se affect performance: barebox writel doesn't imply memory barriers, instead it depends on the architecture support to map IO memory regions as non-bufferable. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Link: https://lore.barebox.org/20210611080155.3555976-1-ahmad@a3f.at Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* regulator: add driver for stm32-vrefbufAhmad Fatoum2021-02-101-0/+220
This driver supports STMicroelectronics STM32 VREFBUF (voltage reference buffer) which can be used as voltage reference for internal ADCs, DACs and also for external components through dedicated Vref+ pin. Ported from Linux v5.11-rc1. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>