]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Octeon: Update DMA mapping operations for OCTEON II processors.
authorDavid Daney <david.daney@cavium.com>
Thu, 17 Nov 2011 18:53:49 +0000 (18:53 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Nov 2011 18:53:49 +0000 (18:53 +0000)
commitbfe0485291cde91770c3104229a3e30a45e16cb4
treedc91345c9a0db0de9e96351e3109870d72951d8e
parent4af9f476a3eef2e6482d1059c272d4b80fa1e9a3
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