diff options
Diffstat (limited to 'arch/sh/include/cpu-sh4/cpu/dma.h')
-rw-r--r-- | arch/sh/include/cpu-sh4/cpu/dma.h | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/arch/sh/include/cpu-sh4/cpu/dma.h b/arch/sh/include/cpu-sh4/cpu/dma.h index 235b7cd1fc9a..bcb30246e85c 100644 --- a/arch/sh/include/cpu-sh4/cpu/dma.h +++ b/arch/sh/include/cpu-sh4/cpu/dma.h | |||
@@ -1,31 +1,29 @@ | |||
1 | #ifndef __ASM_CPU_SH4_DMA_H | 1 | #ifndef __ASM_CPU_SH4_DMA_H |
2 | #define __ASM_CPU_SH4_DMA_H | 2 | #define __ASM_CPU_SH4_DMA_H |
3 | 3 | ||
4 | #define DMAOR_INIT ( 0x8000 | DMAOR_DME ) | ||
5 | |||
6 | /* SH7751/7760/7780 DMA IRQ sources */ | 4 | /* SH7751/7760/7780 DMA IRQ sources */ |
7 | #define DMTE0_IRQ 34 | ||
8 | #define DMTE1_IRQ 35 | ||
9 | #define DMTE2_IRQ 36 | ||
10 | #define DMTE3_IRQ 37 | ||
11 | #define DMTE4_IRQ 44 | ||
12 | #define DMTE5_IRQ 45 | ||
13 | #define DMTE6_IRQ 46 | ||
14 | #define DMTE7_IRQ 47 | ||
15 | #define DMAE_IRQ 38 | ||
16 | 5 | ||
17 | #ifdef CONFIG_CPU_SH4A | 6 | #ifdef CONFIG_CPU_SH4A |
18 | #define SH_DMAC_BASE 0xfc808020 | ||
19 | 7 | ||
8 | #define DMAOR_INIT (DMAOR_DME) | ||
20 | #define CHCR_TS_MASK 0x18 | 9 | #define CHCR_TS_MASK 0x18 |
21 | #define CHCR_TS_SHIFT 3 | 10 | #define CHCR_TS_SHIFT 3 |
22 | 11 | ||
23 | #include <cpu/dma-sh7780.h> | 12 | #include <cpu/dma-sh4a.h> |
24 | #else | 13 | #else /* CONFIG_CPU_SH4A */ |
25 | #define SH_DMAC_BASE 0xffa00000 | 14 | /* |
15 | * SH7750/SH7751/SH7760 | ||
16 | */ | ||
17 | #define DMTE0_IRQ 34 | ||
18 | #define DMTE4_IRQ 44 | ||
19 | #define DMTE6_IRQ 46 | ||
20 | #define DMAE0_IRQ 38 | ||
26 | 21 | ||
22 | #define DMAOR_INIT (0x8000|DMAOR_DME) | ||
23 | #define SH_DMAC_BASE0 0xffa00000 | ||
24 | #define SH_DMAC_BASE1 0xffa00070 | ||
27 | /* Definitions for the SuperH DMAC */ | 25 | /* Definitions for the SuperH DMAC */ |
28 | #define TM_BURST 0x0000080 | 26 | #define TM_BURST 0x00000080 |
29 | #define TS_8 0x00000010 | 27 | #define TS_8 0x00000010 |
30 | #define TS_16 0x00000020 | 28 | #define TS_16 0x00000020 |
31 | #define TS_32 0x00000030 | 29 | #define TS_32 0x00000030 |