ARC: cache: define CONFIG_SYS_CACHELINE_SIZE as ARCH_DMA_MINALIGN
authorAlexey Brodkin <alexey.brodkin@synopsys.com>
Tue, 22 Jan 2019 16:37:15 +0000 (19:37 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Fri, 25 Jan 2019 05:41:09 +0000 (08:41 +0300)
Even though we don't use CONFIG_SYS_CACHELINE_SIZE in ARC-specific code
it is used a lot in different drivers for alignment purposes.

So we define it and make much more drivers at least compilable for ARC.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
arch/arc/include/asm/cache.h

index 1604cd0..0fdcf2d 100644 (file)
@@ -16,6 +16,9 @@
  */
 #define ARCH_DMA_MINALIGN      128
 
+/* CONFIG_SYS_CACHELINE_SIZE is used a lot in drivers */
+#define CONFIG_SYS_CACHELINE_SIZE      ARCH_DMA_MINALIGN
+
 #if defined(ARC_MMU_ABSENT)
 #define CONFIG_ARC_MMU_VER 0
 #elif defined(CONFIG_ARC_MMU_V2)