From 847a33d161d69c241fe44268515f48e6fcc7c59c Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Sat, 8 Dec 2018 01:49:12 +0100 Subject: [PATCH] soc: same70: always enable data cache Now that the SAM Ethernet driver can work when the cached is enabled, it is possible to unconditionally enable the data cache on the SAM E70 SoC. Signed-off-by: Aurelien Jarno --- soc/arm/atmel_sam/same70/soc.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/soc/arm/atmel_sam/same70/soc.c b/soc/arm/atmel_sam/same70/soc.c index 6ba5f81583e..6c8d0daa715 100644 --- a/soc/arm/atmel_sam/same70/soc.c +++ b/soc/arm/atmel_sam/same70/soc.c @@ -229,17 +229,9 @@ static int atmel_same70_init(struct device *arg) SCB_EnableICache(); -/* - * The Atmel SAM GMAC Ethernet driver is using a scatter-gather technique - * to exchange data with the Ethernet driver. This requires the use use of - * a non-cached memory area. This is currently not supported on Zephyr, so - * do not enable the cache in that case. - */ -#ifndef CONFIG_ETH_SAM_GMAC if (!(SCB->CCR & SCB_CCR_DC_Msk)) { SCB_EnableDCache(); } -#endif /* Clear all faults */ _ClearFaults();