diff options
author | Stephen Warren <swarren@nvidia.com> | 2016-10-19 21:18:46 (GMT) |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2016-11-07 22:36:29 (GMT) |
commit | 1ab557a074aaa1927f7532489a1b75137e245b70 (patch) | |
tree | 7419c580b01cfad546a1014b85aabf0f93f097c6 /arch/arm/include/asm/system.h | |
parent | b9ae6415b6a099478c71fc3d410fc9a3776d7afa (diff) | |
download | u-boot-1ab557a074aaa1927f7532489a1b75137e245b70.tar.xz |
armv8: add hooks for all cache-wide operations
SoC-specific logic may be required for all forms of cache-wide
operations; invalidate and flush of both dcache and icache (note that
only 3 of the 4 possible combinations make sense, since the icache never
contains dirty lines). This patch adds an optional hook for all
implemented cache-wide operations, and renames the one existing hook to
better represent exactly which operation it is implementing. A dummy
no-op implementation of each hook is provided.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch/arm/include/asm/system.h')
-rw-r--r-- | arch/arm/include/asm/system.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h index b928bd8..c3c88d2 100644 --- a/arch/arm/include/asm/system.h +++ b/arch/arm/include/asm/system.h @@ -93,7 +93,9 @@ void __asm_invalidate_dcache_all(void); void __asm_flush_dcache_range(u64 start, u64 end); void __asm_invalidate_tlb_all(void); void __asm_invalidate_icache_all(void); -int __asm_flush_l3_cache(void); +int __asm_invalidate_l3_dcache(void); +int __asm_flush_l3_dcache(void); +int __asm_invalidate_l3_icache(void); void __asm_switch_ttbr(u64 new_ttbr); void armv8_switch_to_el2(void); |