drivers: clock_control: Add STM32G4X clock support

Add clock 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:37:52 +01:00 committed by Andrew Boie
commit ca7cbb5a08
8 changed files with 158 additions and 9 deletions

View file

@ -12,5 +12,6 @@ config SOC_SERIES_STM32G4X
select SOC_FAMILY_STM32
select HAS_STM32CUBE
select CPU_HAS_ARM_MPU
select CLOCK_CONTROL_STM32_CUBE if CLOCK_CONTROL
help
Enable support for STM32G4 MCU series

View file

@ -27,6 +27,13 @@
/* Add include for DTS generated information */
#include <generated_dts_board.h>
#ifdef CONFIG_CLOCK_CONTROL_STM32_CUBE
#include <stm32g4xx_ll_utils.h>
#include <stm32g4xx_ll_bus.h>
#include <stm32g4xx_ll_rcc.h>
#include <stm32g4xx_ll_system.h>
#include <stm32g4xx_ll_pwr.h>
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
#endif /* !_ASMLANGUAGE */
#endif /* _STM32G4_SOC_H_ */