Commit 1e41f5ad authored by Anton Staaf's avatar Anton Staaf Committed by Wolfgang Denk
Browse files

cache: include asm/cache.h for ARCH_DMA_MINALIGN definition

ARCH_DMA_MINALIGN will be used to allocate DMA buffers that are
aligned correctly.  In all current cases this means that the DMA
buffer will be aligned to at least the L1 data cache line size of
the configured architecture.  If the board configuration file
does not specify the architecture L1 data cache line size then the
maximum line size of the architecture is used to align DMA buffers.
Signed-off-by: default avatarAnton Staaf <>
Cc: Mike Frysinger <>
Cc: Lukasz Majewski <>
Cc: Wolfgang Denk <>
Cc: Stefano Babic <>
Cc: Ilya Yanok <>
Cc: Laurence Withers <>
parent 3620f860
......@@ -834,6 +834,14 @@ int cpu_release(int nr, int argc, char * const argv[]);
#define ALIGN(x,a) __ALIGN_MASK((x),(typeof(x))(a)-1)
#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
* ARCH_DMA_MINALIGN is defined in asm/cache.h for each architecture. It
* is used to align DMA buffers.
#ifndef __ASSEMBLY__
#include <asm/cache.h>
/* Pull in stuff for the build system */
# include <environment.h>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment