Anton Staaf | 66d6dbf | 2011-10-17 16:46:11 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011 The Chromium OS Authors. |
Anton Staaf | 66d6dbf | 2011-10-17 16:46:11 -0700 | [diff] [blame] | 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Anton Staaf | 66d6dbf | 2011-10-17 16:46:11 -0700 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __MIPS_CACHE_H__ |
| 8 | #define __MIPS_CACHE_H__ |
| 9 | |
| 10 | /* |
| 11 | * The maximum L1 data cache line size on MIPS seems to be 128 bytes. We use |
| 12 | * that as a default for aligning DMA buffers unless the board config has |
| 13 | * specified another cache line size. |
| 14 | */ |
| 15 | #ifdef CONFIG_SYS_CACHELINE_SIZE |
| 16 | #define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE |
| 17 | #else |
| 18 | #define ARCH_DMA_MINALIGN 128 |
| 19 | #endif |
| 20 | |
| 21 | #endif /* __MIPS_CACHE_H__ */ |