dts/bindings: Add binding for STM32WL HSE Clock
STM32WL features a specific HSE clock with dedicated properties. Add a dedicated binding and update STM32 clock control driver header to take it into account. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
eef51a8958
commit
7406ad8553
2 changed files with 29 additions and 1 deletions
|
@ -309,10 +309,15 @@
|
|||
|
||||
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(clk_hse), st_stm32_hse_clock, okay)
|
||||
#define STM32_HSE_BYPASS DT_PROP(DT_NODELABEL(clk_hse), hse_bypass)
|
||||
#else
|
||||
#elif !DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(clk_hse), st_stm32wl_hse_clock, okay)
|
||||
#define STM32_HSE_BYPASS CONFIG_CLOCK_STM32_HSE_BYPASS
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(clk_hse), st_stm32wl_hse_clock, okay)
|
||||
#define STM32_HSE_TCXO DT_PROP(DT_NODELABEL(clk_hse), hse_tcxo)
|
||||
#define STM32_HSE_DIV2 DT_PROP(DT_NODELABEL(clk_hse), hse_div2)
|
||||
#endif
|
||||
|
||||
struct stm32_pclken {
|
||||
uint32_t bus;
|
||||
uint32_t enr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue