summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-11-14 22:57:37 +0300
committerTom Rini <trini@konsulko.com>2019-12-03 02:23:55 +0300
commit9edefc27760b00309d482d94fdc23bf5d2ea2c42 (patch)
tree5fd0d2b4811b377e8a453b2460d86ccff8f5b14b /include
parent6cc915b5fb2e3467b20735b112a7463cc77ec3c3 (diff)
downloadu-boot-9edefc27760b00309d482d94fdc23bf5d2ea2c42.tar.xz
common: Move some cache and MMU functions out of common.h
These functions belong in cpu_func.h. Another option would be cache.h but that code uses driver model and we have not moved these cache functions to use driver model. Since they are CPU-related it seems reasonable to put them here. Move them over. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r--include/common.h10
-rw-r--r--include/cpu_func.h8
2 files changed, 9 insertions, 9 deletions
diff --git a/include/common.h b/include/common.h
index 82b1abe698..48eb223627 100644
--- a/include/common.h
+++ b/include/common.h
@@ -3,7 +3,7 @@
* Common header file for U-Boot
*
* This file still includes quite a bit of stuff that should be in separate
- * headers like command.h and cpu.h. Please think before adding more things.
+ * headers like command.h. Please think before adding more things.
* Patches to remove things are welcome.
*
* (C) Copyright 2000-2009
@@ -185,14 +185,6 @@ int board_early_init_r (void);
int testdram(void);
#endif /* CONFIG_SYS_DRAM_TEST */
-/* $(CPU)/start.S */
-int icache_status (void);
-void icache_enable (void);
-void icache_disable(void);
-int dcache_status(void);
-void dcache_enable (void);
-void dcache_disable(void);
-void mmu_disable(void);
#if defined(CONFIG_ARM)
void relocate_code(ulong);
#else
diff --git a/include/cpu_func.h b/include/cpu_func.h
index 1741f7f7a6..a14d23a36d 100644
--- a/include/cpu_func.h
+++ b/include/cpu_func.h
@@ -52,4 +52,12 @@ int checkcpu(void);
void smp_set_core_boot_addr(unsigned long addr, int corenr);
void smp_kick_all_cpus(void);
+int icache_status(void);
+void icache_enable(void);
+void icache_disable(void);
+int dcache_status(void);
+void dcache_enable(void);
+void dcache_disable(void);
+void mmu_disable(void);
+
#endif