]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/openrisc/include/asm/cache.h
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / openrisc / include / asm / cache.h
1 /*
2 * (C) Copyright 2011, Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7 #ifndef __ASM_OPENRISC_CACHE_H_
8 #define __ASM_OPENRISC_CACHE_H_
9
10 /*
11 * Valid L1 data cache line sizes for the OpenRISC architecture are
12 * 16 and 32 bytes.
13 * If the board configuration has not specified one we default to the
14 * largest of these values for alignment of DMA buffers.
15 */
16 #ifdef CONFIG_SYS_CACHELINE_SIZE
17 #define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
18 #else
19 #define ARCH_DMA_MINALIGN 32
20 #endif
21
22 #endif /* __ASM_OPENRISC_CACHE_H_ */