summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/memory.h
diff options
context:
space:
mode:
authorJon Medhurst <tixy@yxit.co.uk>2011-08-02 17:28:27 +0100
committerJon Medhurst <tixy@yxit.co.uk>2011-08-22 12:00:10 +0000
commit99d1717dd7fecf2b10195b0d864323b952b4eba0 (patch)
tree1c60988a0eb4837240203c2de7b48e78e7b3975a /arch/arm/include/asm/memory.h
parent93ee7a9340d64f20295aacc3fb6a22b759323280 (diff)
downloadop-kernel-dev-99d1717dd7fecf2b10195b0d864323b952b4eba0.zip
op-kernel-dev-99d1717dd7fecf2b10195b0d864323b952b4eba0.tar.gz
ARM: Add init_consistent_dma_size()
This function can be called during boot to increase the size of the consistent DMA region above it's default value of 2MB. It must be called before the memory allocator is initialised, i.e. before any core_initcall. Signed-off-by: Jon Medhurst <tixy@yxit.co.uk> Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Diffstat (limited to 'arch/arm/include/asm/memory.h')
-rw-r--r--arch/arm/include/asm/memory.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h
index b8de516..652fccc 100644
--- a/arch/arm/include/asm/memory.h
+++ b/arch/arm/include/asm/memory.h
@@ -77,16 +77,7 @@
*/
#define IOREMAP_MAX_ORDER 24
-/*
- * Size of DMA-consistent memory region. Must be multiple of 2M,
- * between 2MB and 14MB inclusive.
- */
-#ifndef CONSISTENT_DMA_SIZE
-#define CONSISTENT_DMA_SIZE SZ_2M
-#endif
-
#define CONSISTENT_END (0xffe00000UL)
-#define CONSISTENT_BASE (CONSISTENT_END - CONSISTENT_DMA_SIZE)
#else /* CONFIG_MMU */
OpenPOWER on IntegriCloud