]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sh: cache: Change cache API to defines as U-Boot
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Wed, 21 Aug 2013 23:43:47 +0000 (08:43 +0900)
committerNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Thu, 17 Oct 2013 00:34:39 +0000 (09:34 +0900)
A chache API of SH is developped by reference in linux kernel.
And API was the same as the linux kernel.
This patch change cache API to defines as U-Boot.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/sh/cpu/sh4/cache.c
arch/sh/cpu/sh4/cpu.c
arch/sh/include/asm/cache.h

index 1947ec8e9558cdf727b417f68d8baf55c08050eb..e1ee970a91cb53a9b091c94a18a73a7e30614264 100644 (file)
@@ -91,7 +91,7 @@ int cache_control(unsigned int cmd)
        return 0;
 }
 
-void dcache_wback_range(u32 start, u32 end)
+void flush_dcache_range(unsigned long start, unsigned long end)
 {
        u32 v;
 
@@ -102,7 +102,7 @@ void dcache_wback_range(u32 start, u32 end)
        }
 }
 
-void dcache_invalid_range(u32 start, u32 end)
+void invalidate_dcache_range(unsigned long start, unsigned long end)
 {
        u32 v;
 
index 9fae61473b375ffc2c3a9c6ab4242a47b8370f10..91133a38aee345a697ef52f24ec25b0d62d7ab6e 100644 (file)
@@ -41,7 +41,7 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 void flush_cache (unsigned long addr, unsigned long size)
 {
-       dcache_invalid_range( addr , addr + size );
+       invalidate_dcache_range(addr , addr + size);
 }
 
 void icache_enable (void)
index 24941b3019a222d3b7c9f974ef5e5964cf6505a9..b21dc4422ed21355fa717228a6a4d51b98e79227 100644 (file)
@@ -10,9 +10,6 @@ int cache_control(unsigned int cmd);
 struct __large_struct { unsigned long buf[100]; };
 #define __m(x) (*(struct __large_struct *)(x))
 
-void dcache_wback_range(u32 start, u32 end);
-void dcache_invalid_range(u32 start, u32 end);
-
 #else
 
 /*