From 40a40ae0234bb4931caefe43ab756d47058c2a4d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 11 Jun 2015 14:35:49 -0600 Subject: [PATCH] =?UTF-8?q?SAM4S/4E:=20Eand=20default=20loop=20optimiozati?= =?UTF-8?q?on=20if=20EEFC=5FFMR=20configuration.=20=20From=20Marco=20Aur?= =?UTF-8?q?=C3=A9lio=20da=20Cruz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arch/arm/src/sam34/sam_clockconfig.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/src/sam34/sam_clockconfig.c b/arch/arm/src/sam34/sam_clockconfig.c index f5f2c04a0e..66e37d09e3 100644 --- a/arch/arm/src/sam34/sam_clockconfig.c +++ b/arch/arm/src/sam34/sam_clockconfig.c @@ -110,7 +110,11 @@ static inline void sam_efcsetup(void) { +#if defined(EEFC_FMR_CLOE) + putreg32(EEFC_FMR_CLOE | (BOARD_FWS << EEFC_FMR_FWS_SHIFT), SAM_EEFC0_FMR); +#else putreg32((BOARD_FWS << EEFC_FMR_FWS_SHIFT), SAM_EEFC0_FMR); +#endif #if !defined(CONFIG_ARCH_CHIP_SAM4E) putreg32((BOARD_FWS << EEFC_FMR_FWS_SHIFT), SAM_EEFC1_FMR); #endif