Skip to contentSkip to conversation

ARM: mach-shmobile: Set CONSISTENT_DMA_SIZE to 158 MB

PATCH In review Magnus Damm 2 participants 2 messages Apr 28, 2010 – Apr 29, 2010

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 1/1 ARM: mach-shmobile: Set CONSISTENT_DMA_SIZE to 158 MB

From: Magnus Damm <[email protected]>

This patch sets CONSISTENT_DMA_SIZE to 158 MB
for all SH-Mobile ARM processors.

The DMA area is mapped at 0xf6000000 - 0xffdfffff, on top of the 256 MB I/O window at 0xe6000000.

---

 arch/arm/mach-shmobile/include/mach/memory.h |    3 +++
 1 file changed, 3 insertions(+)
arch/arm/mach-shmobile/include/mach/memory.h +3 -0
@@ -4,4 +4,7 @@
 #define PHYS_OFFSET	UL(CONFIG_MEMORY_START)
 #define MEM_SIZE	UL(CONFIG_MEMORY_SIZE)
 
+/* DMA memory at 0xf6000000 - 0xffdfffff */
+#define CONSISTENT_DMA_SIZE (158 << 20)
+
 #endif /* __ASM_MACH_MEMORY_H */
#1 lore raw
Quoted 7 lines · Magnus Damm

This patch sets CONSISTENT_DMA_SIZE to 158 MB
for all SH-Mobile ARM processors.

The DMA area is mapped at 0xf6000000 - 0xffdfffff, on top of the 256 MB I/O window at 0xe6000000.

Quoted 3 lines · Magnus Damm

Extend VMALLOC_END to the I/O Window at 0xe6000000.

Both applied, thanks.