MIPS: Octeon: Update DMA mapping operations for OCTEON II processors.
authorDavid Daney <david.daney@cavium.com>
Tue, 22 Nov 2011 14:47:04 +0000 (14:47 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 7 Dec 2011 22:03:29 +0000 (22:03 +0000)
commit714c1f5c1aab1cc185018f02bcc854c41ff8e6c8
tree23e47a57ecfac9ad6b70efcb9bf59e6a94b5bc93
parent26afc5e399a4ab33a04216a37cd996ee224976a0
MIPS: Octeon: Update DMA mapping operations for OCTEON II processors.

OCTEON II has a new dma to phys mapping method for PCIe.  Define
OCTEON_DMA_BAR_TYPE_PCIE2 to denote this case, and handle it.

OCTEON II also needs a swiotlb if the OHCI USB driver is enabled, so
allocate this too.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2983/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/dma-octeon.c
arch/mips/include/asm/octeon/pci-octeon.h