]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32f7: enable instruction & data cache
authorVikas Manocha <vikas.manocha@st.com>
Mon, 27 Mar 2017 20:02:45 +0000 (13:02 -0700)
committerTom Rini <trini@konsulko.com>
Sat, 8 Apr 2017 13:26:51 +0000 (09:26 -0400)
It also enables commands for cache enable/disable/status.

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
cc: Christophe KERELLO <christophe.kerello@st.com>

arch/arm/mach-stm32/stm32f7/soc.c
include/configs/stm32f746-disco.h

index 06af631cc107096840c41d089895551093f2d801..6f9704ab78853cdab55ee4a65bcc2adf18abf466 100644 (file)
@@ -58,6 +58,8 @@ int arch_cpu_init(void)
                 (V7M_MPU_RASR_XN_ENABLE
                         | V7M_MPU_RASR_AP_RW_RW
                         | 0x01 << V7M_MPU_RASR_TEX_SHIFT
+                        | 0x01 << V7M_MPU_RASR_B_SHIFT
+                        | 0x01 << V7M_MPU_RASR_C_SHIFT
                         | V7M_MPU_RASR_SIZE_8MB
                         | V7M_MPU_RASR_EN)
                         , &V7M_MPU->rasr
index 5776d89c97bb7ca44cb8577523cb0b747d8f8161..de3d661d60a856cce2769f97d7fd7d0bff2b627e 100644 (file)
@@ -12,9 +12,6 @@
 #define CONFIG_SYS_INIT_SP_ADDR                0x20050000
 #define CONFIG_SYS_TEXT_BASE           0x08000000
 
-#define CONFIG_SYS_ICACHE_OFF
-#define CONFIG_SYS_DCACHE_OFF
-
 /*
  * Configuration of the external SDRAM memory
  */
@@ -78,4 +75,5 @@
 #define CONFIG_CMDLINE_EDITING
 
 #define CONFIG_CMD_MEM
+#define CONFIG_CMD_CACHE
 #endif /* __CONFIG_H */