cache.h 543 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef __ASM_ARC_CACHE_H
  7. #define __ASM_ARC_CACHE_H
  8. #include <config.h>
  9. /*
  10. * The current upper bound for ARC L1 data cache line sizes is 128 bytes.
  11. * We use that value for aligning DMA buffers unless the board config has
  12. * specified an alternate cache line size.
  13. */
  14. #ifdef CONFIG_SYS_CACHELINE_SIZE
  15. #define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
  16. #else
  17. #define ARCH_DMA_MINALIGN 128
  18. #endif
  19. #endif /* __ASM_ARC_CACHE_H */