Skip to content

Commit 8a4b078

Browse files
GeorgeCGVnashif
authored andcommitted
include: drivers: clock_control: stm32: fix xtpre
Correct DT property to set correct STM32_PLL_XTPRE value. The driver bindings defined `xtpre` instead of used `xtre` in the `DT_PROP` macro. That allows to use F1 PLL clock with division by 2. Signed-off-by: Georgij Cernysiov <[email protected]>
1 parent 21867fd commit 8a4b078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/drivers/clock_control/stm32_clock_control.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
#endif
8787

8888
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(pll), st_stm32f1_pll_clock, okay)
89-
#define STM32_PLL_XTPRE DT_PROP(DT_NODELABEL(pll), xtre)
89+
#define STM32_PLL_XTPRE DT_PROP(DT_NODELABEL(pll), xtpre)
9090
#define STM32_PLL_MULTIPLIER DT_PROP(DT_NODELABEL(pll), mul)
9191
#elif DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(pll), st_stm32f0_pll_clock, okay) || \
9292
DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(pll), st_stm32f100_pll_clock, okay) || \

0 commit comments

Comments
 (0)