aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh
diff options
context:
space:
mode:
authorAdrian McMenamin <adrian@mcmen.demon.co.uk>2007-10-08 05:19:36 +0900
committerPaul Mundt <lethal@linux-sh.org>2007-10-08 05:19:36 +0900
commit5d9df8eeacec943c9599f1cfd1069bc8cced3de6 (patch)
treeb4152f75e64f160d419817fe278dae381515071d /include/asm-sh
parentsh: Rip out left-over nommu cond syscall cruft. (diff)
downloadlinux-dev-5d9df8eeacec943c9599f1cfd1069bc8cced3de6.tar.xz
linux-dev-5d9df8eeacec943c9599f1cfd1069bc8cced3de6.zip
sh: Fix SH-4 DMAC CHCR masking.
This patch fixes the DMA cascade by masking the correct bits. Tested and working with Dreamcast PVR2 DMA. With this patch applied the existing mainline code in arch/sh/drivers/dma/dma-sh.c works, whereas before I was patching that to get round this problem. Signed-off-by: Adrian McMenamin <adrian@mcmen.demon.co.uk> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh')
-rw-r--r--include/asm-sh/cpu-sh4/dma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-sh/cpu-sh4/dma.h b/include/asm-sh/cpu-sh4/dma.h
index 36e26a964765..aaf71b018c28 100644
--- a/include/asm-sh/cpu-sh4/dma.h
+++ b/include/asm-sh/cpu-sh4/dma.h
@@ -31,7 +31,7 @@
#define TS_32 0x00000030
#define TS_64 0x00000000
-#define CHCR_TS_MASK 0x30
+#define CHCR_TS_MASK 0x70
#define CHCR_TS_SHIFT 4
#define DMAOR_COD 0x00000008