summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/cache.h
blob: 8ee0976659cce7924057d76f9d3133478d2caf58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * (C) Copyright 2008,
 * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#ifndef __SPARC_CACHE_H__
#define __SPARC_CACHE_H__

#include <linux/config.h>
#include <asm/processor.h>

/*
 * If CONFIG_SYS_CACHELINE_SIZE is defined use it for DMA alignment.  Otherwise
 * use 32-bytes, the cacheline size for Sparc.
 */
#ifdef CONFIG_SYS_CACHELINE_SIZE
#define ARCH_DMA_MINALIGN	CONFIG_SYS_CACHELINE_SIZE
#else
#define ARCH_DMA_MINALIGN	32
#endif

#endif