Skip to content

Commit

Permalink
sh: Fix SH-4 DMAC CHCR masking.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian McMenamin authored and Paul Mundt committed Oct 7, 2007
1 parent 6cc15e9 commit 5d9df8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-sh/cpu-sh4/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d9df8e

Please sign in to comment.