2011-10-17 23:46:11 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2011 The Chromium OS Authors.
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2011-10-17 23:46:11 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MIPS_CACHE_H__
|
|
|
|
#define __MIPS_CACHE_H__
|
|
|
|
|
2016-01-09 16:32:50 +00:00
|
|
|
#define L1_CACHE_SHIFT CONFIG_MIPS_L1_CACHE_SHIFT
|
|
|
|
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
|
|
|
|
|
|
|
|
#define ARCH_DMA_MINALIGN (L1_CACHE_BYTES)
|
2011-10-17 23:46:11 +00:00
|
|
|
|
2016-05-27 13:28:05 +00:00
|
|
|
/*
|
|
|
|
* CONFIG_SYS_CACHELINE_SIZE is still used in various drivers primarily for
|
|
|
|
* DMA buffer alignment. Satisfy those drivers by providing it as a synonym
|
|
|
|
* of ARCH_DMA_MINALIGN for now.
|
|
|
|
*/
|
|
|
|
#define CONFIG_SYS_CACHELINE_SIZE ARCH_DMA_MINALIGN
|
|
|
|
|
2011-10-17 23:46:11 +00:00
|
|
|
#endif /* __MIPS_CACHE_H__ */
|