drivers: timer: sam0_rtc_timer: Fix incorrect DT_INST conversion
clock-generator is a normal property. To access it we should use DT_INST_PROP(0, clock_generator) and not DT_INST_CLOCKS_CELL(). Fixes: #24399 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
d6f5f51f37
commit
2cd4681bd5
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ int z_clock_driver_init(struct device *device)
|
||||||
/* Set up bus clock and GCLK generator. */
|
/* Set up bus clock and GCLK generator. */
|
||||||
PM->APBAMASK.reg |= PM_APBAMASK_RTC;
|
PM->APBAMASK.reg |= PM_APBAMASK_RTC;
|
||||||
GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(RTC_GCLK_ID) | GCLK_CLKCTRL_CLKEN
|
GCLK->CLKCTRL.reg = GCLK_CLKCTRL_ID(RTC_GCLK_ID) | GCLK_CLKCTRL_CLKEN
|
||||||
| GCLK_GEN(DT_INST_CLOCKS_CELL(0, generator));
|
| GCLK_GEN(DT_INST_PROP(0, clock_generator));
|
||||||
|
|
||||||
/* Synchronize GCLK. */
|
/* Synchronize GCLK. */
|
||||||
while (GCLK->STATUS.bit.SYNCBUSY) {
|
while (GCLK->STATUS.bit.SYNCBUSY) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue