From 8d4a5c16beb7910803f50bfbce5a2f478bbaf7f0 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 8 Sep 2019 09:11:41 -0400 Subject: [PATCH] atsam: Enable flash loop caching optimization on sam4s Signed-off-by: Kevin O'Connor --- src/atsam/sam4s_sysinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atsam/sam4s_sysinit.c b/src/atsam/sam4s_sysinit.c index f31cf7ac..afaf86cc 100644 --- a/src/atsam/sam4s_sysinit.c +++ b/src/atsam/sam4s_sysinit.c @@ -19,7 +19,7 @@ uint32_t SystemCoreClock = CHIP_FREQ_MAINCK_RC_4MHZ; void SystemInit( void ) { /* Set FWS according to SYS_BOARD_MCKR configuration */ - EFC0->EEFC_FMR = EEFC_FMR_FWS(5); + EFC0->EEFC_FMR = EEFC_FMR_FWS(5) | EEFC_FMR_CLOE; /* Initialize main oscillator */ if ( !(PMC->CKGR_MOR & CKGR_MOR_MOSCSEL) )