drivers: entropy: Add STM32G4X RNG support

Add RNG driver support for STM32G4X SoC series.

Signed-off-by: Richard Osterloh <richard.osterloh@gmail.com>
This commit is contained in:
Richard Osterloh 2019-09-04 09:47:46 +01:00 committed by Andrew Boie
commit 3e5187b458
4 changed files with 22 additions and 3 deletions

View file

@ -35,5 +35,12 @@ config I2C_STM32_V2
endif # I2C_STM32
if ENTROPY_GENERATOR
config ENTROPY_STM32_RNG
default y
endif # ENTROPY_GENERATOR
endif # GPIO_STM32
endif # SOC_SERIES_STM32G4X

View file

@ -60,6 +60,10 @@
#include <stm32g4xx_ll_adc.h>
#endif
#ifdef CONFIG_ENTROPY_STM32_RNG
#include <stm32g4xx_ll_rng.h>
#endif
#if defined(CONFIG_COUNTER_RTC_STM32)
#include <stm32g4xx_ll_rtc.h>
#include <stm32g4xx_ll_exti.h>