blob: 8ee0976659cce7924057d76f9d3133478d2caf58 [file] [log] [blame]
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +01001/*
2 * (C) Copyright 2008,
3 * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +01006 */
7
8#ifndef __SPARC_CACHE_H__
9#define __SPARC_CACHE_H__
10
11#include <linux/config.h>
12#include <asm/processor.h>
13
Anton Staaffb2df082011-10-17 16:46:08 -070014/*
15 * If CONFIG_SYS_CACHELINE_SIZE is defined use it for DMA alignment. Otherwise
16 * use 32-bytes, the cacheline size for Sparc.
17 */
18#ifdef CONFIG_SYS_CACHELINE_SIZE
19#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
20#else
21#define ARCH_DMA_MINALIGN 32
22#endif
23
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +010024#endif