1 #ifndef __ASM_SH_CPU_SH4_DMA_SH7780_H
2 #define __ASM_SH_CPU_SH4_DMA_SH7780_H
4 #if defined(CONFIG_CPU_SUBTYPE_SH7343) || \
5 defined(CONFIG_CPU_SUBTYPE_SH7722) || \
6 defined(CONFIG_CPU_SUBTYPE_SH7730)
9 #define DMAE0_IRQ 78 /* DMA Error IRQ*/
10 #define SH_DMAC_BASE0 0xFE008020
11 #define SH_DMARS_BASE 0xFE009000
12 #elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \
13 defined(CONFIG_CPU_SUBTYPE_SH7764)
17 #define SH_DMAC_BASE0 0xFF608020
18 #define SH_DMARS_BASE 0xFF609000
19 #elif defined(CONFIG_CPU_SUBTYPE_SH7723)
20 #define DMTE0_IRQ 48 /* DMAC0A*/
21 #define DMTE4_IRQ 40 /* DMAC0B */
23 #define DMTE8_IRQ 76 /* DMAC1A */
25 #define DMTE10_IRQ 72 /* DMAC1B */
27 #define DMAE0_IRQ 78 /* DMA Error IRQ*/
28 #define DMAE1_IRQ 74 /* DMA Error IRQ*/
29 #define SH_DMAC_BASE0 0xFE008020
30 #define SH_DMAC_BASE1 0xFDC08020
31 #define SH_DMARS_BASE 0xFDC09000
32 #elif defined(CONFIG_CPU_SUBTYPE_SH7780)
40 #define DMAE0_IRQ 38 /* DMA Error IRQ */
41 #define SH_DMAC_BASE0 0xFC808020
42 #define SH_DMAC_BASE1 0xFC818020
43 #define SH_DMARS_BASE 0xFC809000
52 #define DMAE0_IRQ 39 /* DMA Error IRQ0 */
53 #define DMAE1_IRQ 58 /* DMA Error IRQ1 */
54 #define SH_DMAC_BASE0 0xFC808020
55 #define SH_DMAC_BASE1 0xFCC08020
56 #define SH_DMARS_BASE 0xFC809000
59 #define REQ_HE 0x000000C0
60 #define REQ_H 0x00000080
61 #define REQ_LE 0x00000040
62 #define TM_BURST 0x0000020
63 #define TS_8 0x00000000
64 #define TS_16 0x00000008
65 #define TS_32 0x00000010
66 #define TS_16BLK 0x00000018
67 #define TS_32BLK 0x00100000
70 * The SuperH DMAC supports a number of transmit sizes, we list them here,
71 * with their respective values as they appear in the CHCR registers.
73 * Defaults to a 64-bit transfer size.
84 * The DMA count is defined as the number of bytes to transfer.
86 static unsigned int ts_shift
[] __maybe_unused
= {
94 #endif /* __ASM_SH_CPU_SH4_DMA_SH7780_H */