cache.h 480 B

1234567891011121314151617181920212223
  1. /*
  2. * (C) Copyright 2008,
  3. * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef __SPARC_CACHE_H__
  8. #define __SPARC_CACHE_H__
  9. #include <asm/processor.h>
  10. /*
  11. * If CONFIG_SYS_CACHELINE_SIZE is defined use it for DMA alignment. Otherwise
  12. * use 32-bytes, the cacheline size for Sparc.
  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