blob: d3e8a8cd414f92b135abdc1cdfda06a9867040b5 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Anton Staaf66d6dbf2011-10-17 16:46:11 -07002/*
3 * Copyright (c) 2011 The Chromium OS Authors.
Anton Staaf66d6dbf2011-10-17 16:46:11 -07004 */
5
6#ifndef __MIPS_CACHE_H__
7#define __MIPS_CACHE_H__
8
Tom Rini3ef67ae2021-08-26 11:47:59 -04009#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
Paul Burton62f13522016-05-27 14:28:05 +010010
Marek Vasutfde25722016-11-25 23:32:22 +010011#ifndef __ASSEMBLY__
Paul Burtondc2037e2016-09-21 11:18:48 +010012/**
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 */
19void mips_cache_probe(void);
Marek Vasutfde25722016-11-25 23:32:22 +010020#endif
Paul Burtondc2037e2016-09-21 11:18:48 +010021
Anton Staaf66d6dbf2011-10-17 16:46:11 -070022#endif /* __MIPS_CACHE_H__ */