blob: 22d43703f427ffeb49d099d3f38d4de238966b8c [file] [log] [blame]
Stefan Kristiansson6e560bb2011-11-26 19:04:49 +00001/*
2 * (C) Copyright 2011, Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Stefan Kristiansson6e560bb2011-11-26 19:04:49 +00005 */
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_ */