aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/cpu/ax25/cpu.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-11-26 13:45:29 -0500
committerTom Rini <trini@konsulko.com>2018-11-26 15:52:39 -0500
commitef0b75d3d8afccebd3b9822de6bcae358d4bc0e3 (patch)
tree9a1e0c04a8a3ecd641f0e219991eaf6ce98eefed /arch/riscv/cpu/ax25/cpu.c
parent6b21502229035779059493b2193fd790448fe85e (diff)
parent52923c6db7f00e0197ec894c8c1bb8a7681974bb (diff)
Merge git://git.denx.de/u-boot-riscv
Diffstat (limited to 'arch/riscv/cpu/ax25/cpu.c')
-rw-r--r--arch/riscv/cpu/ax25/cpu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/riscv/cpu/ax25/cpu.c b/arch/riscv/cpu/ax25/cpu.c
index fddcc156c3..76689b21d3 100644
--- a/arch/riscv/cpu/ax25/cpu.c
+++ b/arch/riscv/cpu/ax25/cpu.c
@@ -6,6 +6,7 @@
/* CPU specific code */
#include <common.h>
+#include <asm/cache.h>
/*
* cleanup_before_linux() is called just before we call linux
@@ -18,6 +19,9 @@ int cleanup_before_linux(void)
disable_interrupts();
/* turn off I/D-cache */
+ cache_flush();
+ icache_disable();
+ dcache_disable();
return 0;
}