cache.h 591 B

12345678910111213141516171819202122
  1. /*
  2. * (C) Copyright 2011, Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef __ASM_OPENRISC_CACHE_H_
  7. #define __ASM_OPENRISC_CACHE_H_
  8. /*
  9. * Valid L1 data cache line sizes for the OpenRISC architecture are
  10. * 16 and 32 bytes.
  11. * If the board configuration has not specified one we default to the
  12. * largest of these values for alignment of DMA buffers.
  13. */
  14. #ifdef CONFIG_SYS_CACHELINE_SIZE
  15. #define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
  16. #else
  17. #define ARCH_DMA_MINALIGN 32
  18. #endif
  19. #endif /* __ASM_OPENRISC_CACHE_H_ */