drivers: adc: adc_stm32: enable internal voltage reference source

Like other STM32 series the STM32L4x SoCs have an internal voltage
reference source that need to be enabled.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Aurelien Jarno 2020-04-11 13:44:11 +02:00 committed by Ioannis Glaropoulos
commit 7e7e79481f

View file

@ -568,6 +568,7 @@ static int adc_stm32_init(struct device *dev)
#if defined(CONFIG_SOC_SERIES_STM32F0X) || \
defined(CONFIG_SOC_SERIES_STM32L0X) || \
defined(CONFIG_SOC_SERIES_STM32L4X) || \
defined(CONFIG_SOC_SERIES_STM32WBX) || \
defined(CONFIG_SOC_SERIES_STM32G4X)
if (LL_ADC_IsActiveFlag_ADRDY(adc)) {