Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Chris Zankel | 1387dab | 2016-08-10 18:36:44 +0300 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2009 Tensilica Inc. |
Chris Zankel | 1387dab | 2016-08-10 18:36:44 +0300 | [diff] [blame] | 4 | */ |
| 5 | #ifndef _XTENSA_CACHE_H |
| 6 | #define _XTENSA_CACHE_H |
| 7 | |
| 8 | #include <asm/arch/core.h> |
| 9 | |
| 10 | #define ARCH_DMA_MINALIGN XCHAL_DCACHE_LINESIZE |
| 11 | |
| 12 | #ifndef __ASSEMBLY__ |
| 13 | |
| 14 | void __flush_dcache_all(void); |
| 15 | void __flush_invalidate_dcache_range(unsigned long addr, unsigned long size); |
| 16 | void __invalidate_dcache_all(void); |
| 17 | void __invalidate_dcache_range(unsigned long addr, unsigned long size); |
| 18 | |
| 19 | void __invalidate_icache_all(void); |
| 20 | void __invalidate_icache_range(unsigned long addr, unsigned long size); |
| 21 | |
| 22 | #endif |
| 23 | |
| 24 | #endif /* _XTENSA_CACHE_H */ |