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