atsam: Enable flash loop caching optimization on sam4s
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8211415231
commit
8d4a5c16be
|
@ -19,7 +19,7 @@ uint32_t SystemCoreClock = CHIP_FREQ_MAINCK_RC_4MHZ;
|
||||||
void SystemInit( void )
|
void SystemInit( void )
|
||||||
{
|
{
|
||||||
/* Set FWS according to SYS_BOARD_MCKR configuration */
|
/* 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 */
|
/* Initialize main oscillator */
|
||||||
if ( !(PMC->CKGR_MOR & CKGR_MOR_MOSCSEL) )
|
if ( !(PMC->CKGR_MOR & CKGR_MOR_MOSCSEL) )
|
||||||
|
|
Loading…
Reference in New Issue