MIPS: Add DMA declare coherent memory support

The ohci-sm501 driver requires dma_declare_coherent_memory().  It is used
by the driver's local memory allocation with dma_alloc_coherent().

Tested on TANBAC TB0287(VR4131 + SM501).

[Ralf: Fixed reject in dma-default.c and removed the entire #if 0'ed block
 in dma-mapping.h instead of just the #if 0.]

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Tento commit je obsažen v:
Yoichi Yuasa
2009-06-04 00:16:04 +09:00
odevzdal Ralf Baechle
rodič da0bac3341
revize f8ac04255d
3 změnil soubory, kde provedl 9 přidání a 10 odebrání

Zobrazit soubor

@@ -1,6 +1,7 @@
config MIPS
bool
default y
select HAVE_GENERIC_DMA_COHERENT
select HAVE_IDE
select HAVE_OPROFILE
select HAVE_ARCH_KGDB