Skip to contentSkip to conversation

ARC: cache: define CONFIG_SYS_CACHELINE_SIZE as ARCH_DMA_MINALIGN

PATCH New Alexey Brodkin 1 participant 1 message Jan 22, 2019 Synopsys ARC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARC: cache: define CONFIG_SYS_CACHELINE_SIZE as ARCH_DMA_MINALIGN

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.

---
 arch/arc/include/asm/cache.h | 3 +++
 1 file changed, 3 insertions(+)
arch/arc/include/asm/cache.h +3 -0
index 1604cd0b3e..0fdcf2d2dd 100644
@@ -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)
Signature · 1 line
2.16.2