Skip to content

Commit 6a17999

Browse files
nandojvedleach02
authored andcommitted
soc: sam0: Speed-up xosc32 initialization
The current selected start-up time takes 8 seconds to initialize. When xosc32 is used as main clock reference it blocks the whole initializarion of the system by that amount of time. This patch relax that condition setting the initialization time to 62ms. Fixes #79949 Signed-off-by: Gerson Fernando Budke <[email protected]>
1 parent 2ff2526 commit 6a17999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soc/atmel/sam0/common/soc_samd5x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static void osc32k_init(void)
2424
{
2525
OSC32KCTRL->XOSC32K.reg = OSC32KCTRL_XOSC32K_ENABLE | OSC32KCTRL_XOSC32K_XTALEN
2626
| OSC32KCTRL_XOSC32K_EN32K | OSC32KCTRL_XOSC32K_RUNSTDBY
27-
| OSC32KCTRL_XOSC32K_STARTUP(6) | OSC32KCTRL_XOSC32K_CGM_XT;
27+
| OSC32KCTRL_XOSC32K_STARTUP(0) | OSC32KCTRL_XOSC32K_CGM_XT;
2828

2929
while (!OSC32KCTRL->STATUS.bit.XOSC32KRDY) {
3030
}

0 commit comments

Comments
 (0)