Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfd57099 authored by David Daney's avatar David Daney Committed by Ralf Baechle
Browse files

MIPS: Allow MAX_DMA32_PFN to be overridden.



DMA mapping may reduce the usable physical address range usable for
32-bit DMA.

Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Patchwork: http://patchwork.linux-mips.org/patch/1633/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f1299072
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -91,7 +91,10 @@
#define MAX_DMA_ADDRESS		(PAGE_OFFSET + 0x01000000)
#endif
#define MAX_DMA_PFN		PFN_DOWN(virt_to_phys((void *)MAX_DMA_ADDRESS))

#ifndef MAX_DMA32_PFN
#define MAX_DMA32_PFN		(1UL << (32 - PAGE_SHIFT))
#endif

/* 8237 DMA controllers */
#define IO_DMA1_BASE	0x00	/* 8 bit slave DMA, channels 0..3 */