cache.h 578 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2011 The Chromium OS Authors.
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef __MICROBLAZE_CACHE_H__
  7. #define __MICROBLAZE_CACHE_H__
  8. /*
  9. * The microblaze can have either a 4 or 16 byte cacheline depending on whether
  10. * you are using OPB(4) or CacheLink(16). If the board config has not specified
  11. * a cacheline size we assume the larger value of 16 bytes for DMA buffer
  12. * alignment.
  13. */
  14. #ifdef CONFIG_SYS_CACHELINE_SIZE
  15. #define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
  16. #else
  17. #define ARCH_DMA_MINALIGN 16
  18. #endif
  19. #endif /* __MICROBLAZE_CACHE_H__ */