diff options
author | Simon Glass | 2019-11-14 12:57:37 -0700 |
---|---|---|
committer | Tom Rini | 2019-12-02 18:23:55 -0500 |
commit | 9edefc27760b00309d482d94fdc23bf5d2ea2c42 (patch) | |
tree | 5fd0d2b4811b377e8a453b2460d86ccff8f5b14b /include/cpu_func.h | |
parent | 6cc915b5fb2e3467b20735b112a7463cc77ec3c3 (diff) |
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/cpu_func.h')
-rw-r--r-- | include/cpu_func.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cpu_func.h b/include/cpu_func.h index 1741f7f7a63..a14d23a36de 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 |