drivers/clock_control: Add support to stm32wb series

Add support to stm32wb series in stm32 clock_control driver.
Ip is similar to stm32l4 one but AHB bus presacler is renamed
to "CPU1" and CPU2 and AHB4 prescalers should be defined.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2019-02-25 13:55:00 +01:00 committed by Kumar Gala
commit b11289997f
7 changed files with 149 additions and 17 deletions

View file

@ -13,5 +13,6 @@ config SOC_SERIES_STM32WBX
select HAS_STM32CUBE
select CPU_HAS_ARM_MPU
select CPU_HAS_SYSTICK
select CLOCK_CONTROL_STM32_CUBE if CLOCK_CONTROL
help
Enable support for STM32WB MCU series

View file

@ -7,6 +7,10 @@
/**
* @file SoC configuration macros for the STM32WB family processors.
*
* Based on reference manual:
* TODO: Provide reference when known
*
* Chapter 2.2.2: Memory map and register boundary addresses
*/
@ -23,6 +27,13 @@
*/
#include <kernel_includes.h>
#ifdef CONFIG_CLOCK_CONTROL_STM32_CUBE
#include <stm32wbxx_ll_utils.h>
#include <stm32wbxx_ll_bus.h>
#include <stm32wbxx_ll_rcc.h>
#include <stm32wbxx_ll_system.h>
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
#endif /* !_ASMLANGUAGE */
#endif /* _STM32WBX_SOC_H_ */