]> git.dujemihanovic.xyz Git - u-boot.git/commit
adc: meson-saradc: add support for getting reference voltage value
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 18 Feb 2021 10:33:16 +0000 (11:33 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Thu, 18 Feb 2021 10:37:26 +0000 (11:37 +0100)
commit97ab802aa36f1ee74196525af0e844656ae3dc63
treec1d71eafd8f31076932ce22881039a2c7472c193
parentc0165c85c3b149a86740fd649b54d5e988fab457
adc: meson-saradc: add support for getting reference voltage value

Add support for getting the 'vref-supply' regulator and register it as
ADC's reference voltage regulator, so clients can translate sampled ADC
values to the voltage.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/adc/meson-saradc.c