David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | #include <linux/linkage.h> |
| 3 | #include <linux/init.h> |
| 4 | #include <asm/assembler.h> |
| 5 | |
| 6 | #include "proc-macros.S" |
| 7 | |
| 8 | ENTRY(nop_flush_icache_all) |
| 9 | ret lr |
| 10 | ENDPROC(nop_flush_icache_all) |
| 11 | |
| 12 | .globl nop_flush_kern_cache_all |
| 13 | .equ nop_flush_kern_cache_all, nop_flush_icache_all |
| 14 | |
| 15 | .globl nop_flush_kern_cache_louis |
| 16 | .equ nop_flush_kern_cache_louis, nop_flush_icache_all |
| 17 | |
| 18 | .globl nop_flush_user_cache_all |
| 19 | .equ nop_flush_user_cache_all, nop_flush_icache_all |
| 20 | |
| 21 | .globl nop_flush_user_cache_range |
| 22 | .equ nop_flush_user_cache_range, nop_flush_icache_all |
| 23 | |
| 24 | .globl nop_coherent_kern_range |
| 25 | .equ nop_coherent_kern_range, nop_flush_icache_all |
| 26 | |
| 27 | ENTRY(nop_coherent_user_range) |
| 28 | mov r0, 0 |
| 29 | ret lr |
| 30 | ENDPROC(nop_coherent_user_range) |
| 31 | |
| 32 | .globl nop_flush_kern_dcache_area |
| 33 | .equ nop_flush_kern_dcache_area, nop_flush_icache_all |
| 34 | |
| 35 | .globl nop_dma_flush_range |
| 36 | .equ nop_dma_flush_range, nop_flush_icache_all |
| 37 | |
| 38 | .globl nop_dma_map_area |
| 39 | .equ nop_dma_map_area, nop_flush_icache_all |
| 40 | |
| 41 | .globl nop_dma_unmap_area |
| 42 | .equ nop_dma_unmap_area, nop_flush_icache_all |
| 43 | |
| 44 | __INITDATA |
| 45 | |
| 46 | @ define struct cpu_cache_fns (see <asm/cacheflush.h> and proc-macros.S) |
| 47 | define_cache_functions nop |