diff mbox series

[U-Boot,v1,04/11] configs: stm32f4xx: Enable ICACHE and DCACHE

Message ID 1533289581-2333-5-git-send-email-patrice.chotard@st.com
State Accepted
Commit ca38dc2ff5bcca89f8d75738378e2e4d603a7c99
Delegated to: Tom Rini
Headers show
Series Update STM32 MCU configs | expand

Commit Message

Patrice CHOTARD Aug. 3, 2018, 9:46 a.m. UTC
Enable instruction and data caches.
Fix boot_sd command as since commit d409c962169b ("armv7m: disable
 icache before linux booting"), instruction cache is automatically
disable before linux booting. "icache off" from boot_sd command
becomes useless, remove it.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
---

 include/configs/stm32f429-discovery.h  | 3 ---
 include/configs/stm32f429-evaluation.h | 5 +----
 include/configs/stm32f469-discovery.h  | 5 +----
 3 files changed, 2 insertions(+), 11 deletions(-)

Comments

Tom Rini Aug. 13, 2018, 11:56 p.m. UTC | #1
On Fri, Aug 03, 2018 at 11:46:14AM +0200, Patrice Chotard wrote:

> Enable instruction and data caches.
> Fix boot_sd command as since commit d409c962169b ("armv7m: disable
>  icache before linux booting"), instruction cache is automatically
> disable before linux booting. "icache off" from boot_sd command
> becomes useless, remove it.
> 
> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/include/configs/stm32f429-discovery.h b/include/configs/stm32f429-discovery.h
index 38af704c3b96..90d7429e706b 100644
--- a/include/configs/stm32f429-discovery.h
+++ b/include/configs/stm32f429-discovery.h
@@ -13,9 +13,6 @@ 
 
 #define CONFIG_SYS_INIT_SP_ADDR		0x10010000
 
-#define CONFIG_SYS_ICACHE_OFF
-#define CONFIG_SYS_DCACHE_OFF
-
 /*
  * Configuration of the external SDRAM memory
  */
diff --git a/include/configs/stm32f429-evaluation.h b/include/configs/stm32f429-evaluation.h
index 258ae767d233..d48940d0c884 100644
--- a/include/configs/stm32f429-evaluation.h
+++ b/include/configs/stm32f429-evaluation.h
@@ -13,9 +13,6 @@ 
 
 #define CONFIG_SYS_INIT_SP_ADDR		0x10010000
 
-#define CONFIG_SYS_ICACHE_OFF
-#define CONFIG_SYS_DCACHE_OFF
-
 /*
  * Configuration of the external SDRAM memory
  */
@@ -48,7 +45,7 @@ 
 	"run boot_sd"
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
-	"boot_sd=mmc dev 0;fatload mmc 0 0x00700000 stm32429i-eval.dtb; fatload mmc 0 0x00008000 zImage; icache off; bootz 0x00008000 - 0x00700000"
+	"boot_sd=mmc dev 0;fatload mmc 0 0x00700000 stm32429i-eval.dtb; fatload mmc 0 0x00008000 zImage; bootz 0x00008000 - 0x00700000"
 
 /*
  * Command line configuration.
diff --git a/include/configs/stm32f469-discovery.h b/include/configs/stm32f469-discovery.h
index a9182450e607..be8c2331566b 100644
--- a/include/configs/stm32f469-discovery.h
+++ b/include/configs/stm32f469-discovery.h
@@ -13,9 +13,6 @@ 
 
 #define CONFIG_SYS_INIT_SP_ADDR		0x10010000
 
-#define CONFIG_SYS_ICACHE_OFF
-#define CONFIG_SYS_DCACHE_OFF
-
 /*
  * Configuration of the external SDRAM memory
  */
@@ -48,7 +45,7 @@ 
 	"run boot_sd"
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
-	"boot_sd=mmc dev 0;fatload mmc 0 0x00700000 stm32f469-disco.dtb; fatload mmc 0 0x00008000 zImage; icache off; bootz 0x00008000 - 0x00700000"
+	"boot_sd=mmc dev 0;fatload mmc 0 0x00700000 stm32f469-disco.dtb; fatload mmc 0 0x00008000 zImage; bootz 0x00008000 - 0x00700000"
 
 /*
  * Command line configuration.