soc: atmel: saml2x: Don't do a GCLK SWRST

Doing a `GCLK->CTRLA.bit.SWRST = 1` will cause boot chaining to hang.
Setting the CPU clock to run from OSCULP32K during initialization is
all that is needed.

Signed-off-by: Jon Ringle <jringle@gridpoint.com>
This commit is contained in:
Jon Ringle 2024-03-12 11:45:22 -04:00 committed by Alberto Escolar
parent c1e29cc107
commit c69986da4c
1 changed files with 0 additions and 4 deletions

View File

@ -31,10 +31,6 @@
static inline void gclk_reset(void)
{
GCLK->CTRLA.bit.SWRST = 1;
while (GCLK->SYNCBUSY.bit.SWRST) {
}
/* by default, OSC16M will be enabled at 4 MHz, and the CPU will
* run from it. to permit initialization, the CPU is temporarily
* clocked from OSCULP32K, and OSC16M is disabled