Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Adrian McMenamin and committed by
Paul Mundt
5d9df8ee 6cc15e9f

+1 -1
+1 -1
include/asm-sh/cpu-sh4/dma.h
··· 31 31 #define TS_32 0x00000030 32 32 #define TS_64 0x00000000 33 33 34 - #define CHCR_TS_MASK 0x30 34 + #define CHCR_TS_MASK 0x70 35 35 #define CHCR_TS_SHIFT 4 36 36 37 37 #define DMAOR_COD 0x00000008