summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/arm926ejs/spear
diff options
context:
space:
mode:
authorAdam Ford <aford173@gmail.com>2018-08-16 13:23:11 -0500
committerTom Rini <trini@konsulko.com>2018-09-10 21:19:16 -0400
commit93b283d49f933f95f3a6f40762936f454ac655a8 (patch)
tree73100f23d055bae16636df9368a8d4558e459f3a /arch/arm/cpu/arm926ejs/spear
parent5f133bb7c519ebb069f74bbda428627ad28419c6 (diff)
downloadu-boot-93b283d49f933f95f3a6f40762936f454ac655a8.tar.gz
u-boot-93b283d49f933f95f3a6f40762936f454ac655a8.tar.xz
u-boot-93b283d49f933f95f3a6f40762936f454ac655a8.zip
ARM: CPU: arm926ejs: Consolidate cache routines to common file
Four different boards had different options for enabling cache that were virtually all the same. This consolidates these common functions into arch/arm/cpu/arm926ejs/cache.c This also has the positive side-effect of enabling cache on the Davinci (da850) boards. Signed-off-by: Adam Ford <aford173@gmail.com> [trini: Add mach-at91 to the list of consolidations] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/cpu/arm926ejs/spear')
-rw-r--r--arch/arm/cpu/arm926ejs/spear/cpu.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/cpu/arm926ejs/spear/cpu.c b/arch/arm/cpu/arm926ejs/spear/cpu.c
index 0970aca2ef..e852a88881 100644
--- a/arch/arm/cpu/arm926ejs/spear/cpu.c
+++ b/arch/arm/cpu/arm926ejs/spear/cpu.c
@@ -55,16 +55,6 @@ int arch_cpu_init(void)
return 0;
}
-void enable_caches(void)
-{
-#ifndef CONFIG_SYS_ICACHE_OFF
- icache_enable();
-#endif
-#ifndef CONFIG_SYS_DCACHE_OFF
- dcache_enable();
-#endif
-}
-
#ifdef CONFIG_DISPLAY_CPUINFO
int print_cpuinfo(void)
{