summaryrefslogtreecommitdiff
path: root/arch/sh/cpu/sh4/cpu.c
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2016-11-27 22:15:18 (GMT)
committerTom Rini <trini@konsulko.com>2016-12-03 02:32:42 (GMT)
commitb33718c614afc8f60285311ab587ff1228e5bd29 (patch)
tree8d726dd2cc44366d94d2e199fad9ee811fc57a71 /arch/sh/cpu/sh4/cpu.c
parent6ab8b961de4e883dc61fb7dfd22a9ac7ab359250 (diff)
downloadu-boot-fsl-qoriq-b33718c614afc8f60285311ab587ff1228e5bd29.tar.xz
sh4: cache: move exported cache manipulation functions into cache.c
No functional change, moving cache manipulation functions into cache.c allows to collect all of them in a single location and as a pleasant side effect cache_control() function can be unexported now. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sh/cpu/sh4/cpu.c')
-rw-r--r--arch/sh/cpu/sh4/cpu.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/arch/sh/cpu/sh4/cpu.c b/arch/sh/cpu/sh4/cpu.c
index a2cec98..49c58ae 100644
--- a/arch/sh/cpu/sh4/cpu.c
+++ b/arch/sh/cpu/sh4/cpu.c
@@ -9,7 +9,6 @@
#include <command.h>
#include <netdev.h>
#include <asm/processor.h>
-#include <asm/cache.h>
int checkcpu(void)
{
@@ -35,39 +34,6 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return 0;
}
-void flush_cache (unsigned long addr, unsigned long size)
-{
- flush_dcache_range(addr , addr + size);
-}
-
-void icache_enable (void)
-{
- cache_control(0);
-}
-
-void icache_disable (void)
-{
- cache_control(1);
-}
-
-int icache_status (void)
-{
- return 0;
-}
-
-void dcache_enable (void)
-{
-}
-
-void dcache_disable (void)
-{
-}
-
-int dcache_status (void)
-{
- return 0;
-}
-
int cpu_eth_init(bd_t *bis)
{
#ifdef CONFIG_SH_ETHER