summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2016-11-28 00:15:14 +0200
committerTom Rini <trini@konsulko.com>2016-12-02 21:32:39 -0500
commit0f62bf633f287b8e9af1384d0ef1857fc5e8363e (patch)
tree5beb5f9913038485f5b6746f0125c2dc4e2400c8 /arch/sh
parentee47c4cb2b3413b3ee0edd2207de46d715b2628c (diff)
downloadu-boot-imx-0f62bf633f287b8e9af1384d0ef1857fc5e8363e.zip
u-boot-imx-0f62bf633f287b8e9af1384d0ef1857fc5e8363e.tar.gz
u-boot-imx-0f62bf633f287b8e9af1384d0ef1857fc5e8363e.tar.bz2
sh4: cache: correct flush_cache() to writeback and invalidate
In common usecases flush_cache() assumes both cache invalidation and write-back to memory, instead of doing cache invalidation only with the wrapped 'ocbi' instruction pin flush_cache() to cache invalidation with memory write-back done by 'ocbp'. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/cpu/sh4/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/cpu/sh4/cpu.c b/arch/sh/cpu/sh4/cpu.c
index de90ca7..a2cec98 100644
--- a/arch/sh/cpu/sh4/cpu.c
+++ b/arch/sh/cpu/sh4/cpu.c
@@ -37,7 +37,7 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
void flush_cache (unsigned long addr, unsigned long size)
{
- invalidate_dcache_range(addr , addr + size);
+ flush_dcache_range(addr , addr + size);
}
void icache_enable (void)