drivers: clock: conditional compile ulpclk udiv divider
although udiv is represented in clock tree of L series, this is not really present or controllable from SYSCTL registers. Enable udiv only if present in dts. Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
This commit is contained in:
parent
2dc6307628
commit
6bef297052
@ -152,7 +152,9 @@ static int clock_mspm0_init(const struct device *dev)
|
||||
DL_SYSCTL_setSYSOSCFreq(DL_SYSCTL_SYSOSC_FREQ_BASE);
|
||||
|
||||
DL_SYSCTL_setMCLKDivider(mspm0_mclk_cfg.clk_div);
|
||||
#if DT_NODE_HAS_PROP(DT_NODELABEL(ulpclk), clk_div)
|
||||
DL_SYSCTL_setULPCLKDivider(mspm0_ulpclk_cfg.clk_div);
|
||||
#endif
|
||||
|
||||
#if MSPM0_PLL_ENABLED
|
||||
#if DT_SAME_NODE(DT_HSCLK_CLOCKS_CTRL, DT_NODELABEL(syspll0))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user