drivers: clock control: Provide LL based clock control for stm32f4 series
This commit enables STM32Cube LL based driver for stm32f4 series. This generic driver provides a unified API to clock driver for all stm32 series. LL API allows driver to be lightweight and to keep genericity across stm32 family to ease further devlopment and maintenance. Change-Id: Ie31ae8f433313787f9c9eda77de41925721d54dd Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
f3361797e3
commit
fda01e52c2
13 changed files with 150 additions and 1 deletions
|
@ -234,10 +234,17 @@ int stm32_gpio_enable_int(int port, int pin)
|
|||
(struct stm32f4x_syscfg *)SYSCFG_BASE;
|
||||
volatile union syscfg_exticr *exticr;
|
||||
struct device *clk = device_get_binding(STM32_CLOCK_CONTROL_NAME);
|
||||
#ifdef CONFIG_CLOCK_CONTROL_STM32_CUBE
|
||||
struct stm32_pclken pclken = {
|
||||
.bus = STM32_CLOCK_BUS_APB2,
|
||||
.enr = LL_APB2_GRP1_PERIPH_SYSCFG
|
||||
};
|
||||
#else
|
||||
struct stm32f4x_pclken pclken = {
|
||||
.bus = STM32F4X_CLOCK_BUS_APB2,
|
||||
.enr = STM32F4X_CLOCK_ENABLE_SYSCFG
|
||||
};
|
||||
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
||||
int shift = 0;
|
||||
|
||||
/* Enable SYSCFG clock */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue