summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-omap/memory.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2006-12-07 13:57:38 -0800
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-05-08 20:36:25 +0100
commitf4e4c324a5f81f18156499d1ade3732ba1f5b523 (patch)
tree28e454e1263b220dad1f5a747dd96c295cf1fb22 /include/asm-arm/arch-omap/memory.h
parent994c84ea526ea1c348f63dc3aa7cfeec931bb612 (diff)
ARM: OMAP: Sync headers with linux-omap
This patch syncs omap specific headers with linux-omap. Most of the changes needed because of bitrot caused by driver changes in linux-omap tree. Integrating this is needed for adding support for various omap drivers. Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-omap/memory.h')
-rw-r--r--include/asm-arm/arch-omap/memory.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-arm/arch-omap/memory.h b/include/asm-arm/arch-omap/memory.h
index 48fabc493163..14cba97c18ad 100644
--- a/include/asm-arm/arch-omap/memory.h
+++ b/include/asm-arm/arch-omap/memory.h
@@ -86,5 +86,18 @@
#endif /* CONFIG_ARCH_OMAP15XX */
+/* Override the ARM default */
+#ifdef CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE
+
+#if (CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE == 0)
+#undef CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE
+#define CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE 2
+#endif
+
+#define CONSISTENT_DMA_SIZE \
+ (((CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE + 1) & ~1) * 1024 * 1024)
+
+#endif
+
#endif