drivers/pwm: stm32: Leftovers in clock_control conversion to dts
Fix omissions. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
37d2227412
commit
07e5644ac6
1 changed files with 2 additions and 2 deletions
|
@ -130,9 +130,9 @@ static int get_tim_clk(const struct stm32_pclken *pclken, uint32_t *tim_clk)
|
||||||
|
|
||||||
#if defined(CONFIG_SOC_SERIES_STM32H7X)
|
#if defined(CONFIG_SOC_SERIES_STM32H7X)
|
||||||
if (pclken->bus == STM32_CLOCK_BUS_APB1) {
|
if (pclken->bus == STM32_CLOCK_BUS_APB1) {
|
||||||
apb_psc = CONFIG_CLOCK_STM32_D2PPRE1;
|
apb_psc = STM32_D2PPRE1;
|
||||||
} else {
|
} else {
|
||||||
apb_psc = CONFIG_CLOCK_STM32_D2PPRE2;
|
apb_psc = STM32_D2PPRE2;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (pclken->bus == STM32_CLOCK_BUS_APB1) {
|
if (pclken->bus == STM32_CLOCK_BUS_APB1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue