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:
parent
c1e29cc107
commit
c69986da4c
1 changed files with 0 additions and 4 deletions
|
@ -31,10 +31,6 @@
|
||||||
|
|
||||||
static inline void gclk_reset(void)
|
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
|
/* by default, OSC16M will be enabled at 4 MHz, and the CPU will
|
||||||
* run from it. to permit initialization, the CPU is temporarily
|
* run from it. to permit initialization, the CPU is temporarily
|
||||||
* clocked from OSCULP32K, and OSC16M is disabled
|
* clocked from OSCULP32K, and OSC16M is disabled
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue