EXYNOS: add the enable_cache function for support cache
PATCH 1/1 EXYNOS: add the enable_cache function for support cache
By default, enable_cache() is implemented in arch/arm/lib. But didn't implemented enable_cache().
It should be implemented in platform code.
This patch is added the enable_cache() in platform code for supporting cache
Signed-off-by Jaehoon Chung <[email protected]>
Signed-off-by Kyungmin Park <[email protected]>
--- arch/arm/cpu/armv7/s5p-common/cpu_info.c | 8 ++++++++ include/configs/s5pc210_universal.h | 3 --- include/configs/trats.h | 3 --- 3 files changed, 8 insertions(+), 6 deletions(-)
arch/arm/cpu/armv7/s5p-common/cpu_info.c +8 -0
@@ -54,3 +54,11 @@ int print_cpuinfo(void) return 0; }#endif + +#ifndef CONFIG_SYS_DCACHE_OFF +void enable_caches (void ) +{ +/* Enable D-cache. I-cache is already enabled in start.S */ +dcache_enable (); +} +#endif
include/configs/s5pc210_universal.h +0 -3
@@ -41,9 +41,6 @@#define CONFIG_DISPLAY_CPUINFO #define CONFIG_DISPLAY_BOARDINFO -/* Keep L2 Cache Disabled */ -#define CONFIG_SYS_L2CACHE_OFF 1 -#define CONFIG_SYS_SDRAM_BASE 0x40000000#define CONFIG_SYS_TEXT_BASE 0x44800000
include/configs/trats.h +0 -3
@@ -41,9 +41,6 @@#define CONFIG_DISPLAY_CPUINFO #define CONFIG_DISPLAY_BOARDINFO -/* Keep L2 Cache Disabled */ -#define CONFIG_SYS_L2CACHE_OFF -#define CONFIG_SYS_SDRAM_BASE 0x40000000#define CONFIG_SYS_TEXT_BASE 0x63300000