wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2004, Psyent Corporation <www.psyent.com> |
| 3 | * Scott McNutt <smcnutt@psyent.com> |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __ASM_NIOS2_CACHE_H_ |
| 9 | #define __ASM_NIOS2_CACHE_H_ |
| 10 | |
Anton Staaf | 4b17083 | 2011-10-17 16:46:05 -0700 | [diff] [blame] | 11 | /* |
Thomas Chou | 741085b | 2015-10-23 07:58:20 +0800 | [diff] [blame] | 12 | * Valid L1 data cache line sizes for the NIOS2 architecture are 4, |
| 13 | * 16, and 32 bytes. We default to the largest of these values for |
| 14 | * alignment of DMA buffers. |
Anton Staaf | 4b17083 | 2011-10-17 16:46:05 -0700 | [diff] [blame] | 15 | */ |
Anton Staaf | 4b17083 | 2011-10-17 16:46:05 -0700 | [diff] [blame] | 16 | #define ARCH_DMA_MINALIGN 32 |
Anton Staaf | 4b17083 | 2011-10-17 16:46:05 -0700 | [diff] [blame] | 17 | |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 18 | #endif /* __ASM_NIOS2_CACHE_H_ */ |