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

sh: Fix DMAC base address for SH7709S

On SH7709S, DMAC can be found at 0xa4000020 (as with most of
the other sh3 cpu subtypes).

Split out definition of DMAC base address from definitions of
DMTE irqs.

Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Steve Glendinning and committed by
Paul Mundt
cdf7da89 f11c9c2f

+5 -5
+5 -5
include/asm-sh/cpu-sh3/dma.h
··· 3 3 4 4 5 5 #if defined(CONFIG_CPU_SUBTYPE_SH7720) || \ 6 - defined(CONFIG_CPU_SUBTYPE_SH7721) || \ 7 - defined(CONFIG_CPU_SUBTYPE_SH7709) 6 + defined(CONFIG_CPU_SUBTYPE_SH7721) 8 7 #define SH_DMAC_BASE 0xa4010020 8 + #else 9 + #define SH_DMAC_BASE 0xa4000020 10 + #endif 9 11 12 + #if defined(CONFIG_CPU_SUBTYPE_SH7720) || defined(CONFIG_CPU_SUBTYPE_SH7709) 10 13 #define DMTE0_IRQ 48 11 14 #define DMTE1_IRQ 49 12 15 #define DMTE2_IRQ 50 13 16 #define DMTE3_IRQ 51 14 17 #define DMTE4_IRQ 76 15 18 #define DMTE5_IRQ 77 16 - 17 - #else 18 - #define SH_DMAC_BASE 0xa4000020 19 19 #endif 20 20 21 21 /* Definitions for the SuperH DMAC */