Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Anton Staaf | 66d6dbf | 2011-10-17 16:46:11 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2011 The Chromium OS Authors. |
Anton Staaf | 66d6dbf | 2011-10-17 16:46:11 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __MIPS_CACHE_H__ |
| 7 | #define __MIPS_CACHE_H__ |
| 8 | |
Tom Rini | 3ef67ae | 2021-08-26 11:47:59 -0400 | [diff] [blame] | 9 | #define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE |
Paul Burton | 62f1352 | 2016-05-27 14:28:05 +0100 | [diff] [blame] | 10 | |
Marek Vasut | fde2572 | 2016-11-25 23:32:22 +0100 | [diff] [blame] | 11 | #ifndef __ASSEMBLY__ |
Paul Burton | dc2037e | 2016-09-21 11:18:48 +0100 | [diff] [blame] | 12 | /** |
| 13 | * mips_cache_probe() - Probe the properties of the caches |
| 14 | * |
| 15 | * Call this to probe the properties such as line sizes of the caches |
| 16 | * present in the system, if any. This must be done before cache maintenance |
| 17 | * functions such as flush_cache may be called. |
| 18 | */ |
| 19 | void mips_cache_probe(void); |
Marek Vasut | fde2572 | 2016-11-25 23:32:22 +0100 | [diff] [blame] | 20 | #endif |
Paul Burton | dc2037e | 2016-09-21 11:18:48 +0100 | [diff] [blame] | 21 | |
Anton Staaf | 66d6dbf | 2011-10-17 16:46:11 -0700 | [diff] [blame] | 22 | #endif /* __MIPS_CACHE_H__ */ |