cache.h 502 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2011 The Chromium OS Authors.
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef __MIPS_CACHE_H__
  7. #define __MIPS_CACHE_H__
  8. /*
  9. * The maximum L1 data cache line size on MIPS seems to be 128 bytes. We use
  10. * that as a default for aligning DMA buffers unless the board config has
  11. * specified another cache line size.
  12. */
  13. #ifdef CONFIG_SYS_CACHELINE_SIZE
  14. #define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
  15. #else
  16. #define ARCH_DMA_MINALIGN 128
  17. #endif
  18. #endif /* __MIPS_CACHE_H__ */