Files
thead-uboot/arch/csky/include/asm/cache.h
2022-09-13 11:04:33 +08:00

22 lines
459 B
C

/*
* Copyright (C) 2017-2020 Alibaba Group Holding Limited
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __ASM_CACHE_H
#define __ASM_CACHE_H
#include <asm/system.h>
/*
* We use that value for aligning DMA buffers unless the board config has specified
* an alternate cache line size.
*/
#ifdef CONFIG_SYS_CACHELINE_SIZE
#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
#else
#define ARCH_DMA_MINALIGN 64
#endif
#endif /* __ASM_CACHE_H */