diff options
author | Alexey Brodkin <alexey.brodkin@synopsys.com> | 2019-01-22 19:37:15 +0300 |
---|---|---|
committer | Alexey Brodkin <abrodkin@synopsys.com> | 2019-01-25 08:41:09 +0300 |
commit | fae3798ac9f6de5a4cb1aa1e849d419a2bb8dbbe (patch) | |
tree | d4e242135904c7dcdee9a55bd60f6a0fd13f2da5 /arch/arc/include | |
parent | 7181a6d1cf71b9e97cfcf175400390f9eabde8a8 (diff) | |
download | u-boot-fae3798ac9f6de5a4cb1aa1e849d419a2bb8dbbe.tar.xz |
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.
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Diffstat (limited to 'arch/arc/include')
-rw-r--r-- | arch/arc/include/asm/cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arc/include/asm/cache.h b/arch/arc/include/asm/cache.h index 1604cd0b3e..0fdcf2d2dd 100644 --- a/arch/arc/include/asm/cache.h +++ b/arch/arc/include/asm/cache.h @@ -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) |