diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 05:13:27 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 05:13:27 -0400 |
commit | c1dbccc3c7cc70e8211a7ad6ba55ecbc18e77a5a (patch) | |
tree | 570fbd1ab42d12257a820460fae0e6e7bc891900 /arch/sh/include/cpu-sh4/cpu | |
parent | 00d6025e58c6e3b229e28cab721c568af5b1ae05 (diff) | |
parent | 58796ce67a80e8725220af83c5a550bf6a4dab12 (diff) |
Merge branch 'sh/evt2irq-migration' into sh-latest
Conflicts:
arch/sh/kernel/cpu/sh3/setup-sh770x.c
arch/sh/kernel/cpu/sh3/setup-sh7710.c
arch/sh/kernel/cpu/sh3/setup-sh7720.c
arch/sh/kernel/cpu/sh4/setup-sh7750.c
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/cpu-sh4/cpu')
-rw-r--r-- | arch/sh/include/cpu-sh4/cpu/dma-sh4a.h | 90 | ||||
-rw-r--r-- | arch/sh/include/cpu-sh4/cpu/dma.h | 11 |
2 files changed, 53 insertions, 48 deletions
diff --git a/arch/sh/include/cpu-sh4/cpu/dma-sh4a.h b/arch/sh/include/cpu-sh4/cpu/dma-sh4a.h index 9647e681fd27..f280410c93ae 100644 --- a/arch/sh/include/cpu-sh4/cpu/dma-sh4a.h +++ b/arch/sh/include/cpu-sh4/cpu/dma-sh4a.h | |||
@@ -1,75 +1,77 @@ | |||
1 | #ifndef __ASM_SH_CPU_SH4_DMA_SH7780_H | 1 | #ifndef __ASM_SH_CPU_SH4_DMA_SH7780_H |
2 | #define __ASM_SH_CPU_SH4_DMA_SH7780_H | 2 | #define __ASM_SH_CPU_SH4_DMA_SH7780_H |
3 | 3 | ||
4 | #include <linux/sh_intc.h> | ||
5 | |||
4 | #if defined(CONFIG_CPU_SUBTYPE_SH7343) || \ | 6 | #if defined(CONFIG_CPU_SUBTYPE_SH7343) || \ |
5 | defined(CONFIG_CPU_SUBTYPE_SH7730) | 7 | defined(CONFIG_CPU_SUBTYPE_SH7730) |
6 | #define DMTE0_IRQ 48 | 8 | #define DMTE0_IRQ evt2irq(0x800) |
7 | #define DMTE4_IRQ 76 | 9 | #define DMTE4_IRQ evt2irq(0xb80) |
8 | #define DMAE0_IRQ 78 /* DMA Error IRQ*/ | 10 | #define DMAE0_IRQ evt2irq(0xbc0) /* DMA Error IRQ*/ |
9 | #define SH_DMAC_BASE0 0xFE008020 | 11 | #define SH_DMAC_BASE0 0xFE008020 |
10 | #define SH_DMARS_BASE0 0xFE009000 | 12 | #define SH_DMARS_BASE0 0xFE009000 |
11 | #elif defined(CONFIG_CPU_SUBTYPE_SH7722) | 13 | #elif defined(CONFIG_CPU_SUBTYPE_SH7722) |
12 | #define DMTE0_IRQ 48 | 14 | #define DMTE0_IRQ evt2irq(0x800) |
13 | #define DMTE4_IRQ 76 | 15 | #define DMTE4_IRQ evt2irq(0xb80) |
14 | #define DMAE0_IRQ 78 /* DMA Error IRQ*/ | 16 | #define DMAE0_IRQ evt2irq(0xbc0) /* DMA Error IRQ*/ |
15 | #define SH_DMAC_BASE0 0xFE008020 | 17 | #define SH_DMAC_BASE0 0xFE008020 |
16 | #define SH_DMARS_BASE0 0xFE009000 | 18 | #define SH_DMARS_BASE0 0xFE009000 |
17 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \ | 19 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \ |
18 | defined(CONFIG_CPU_SUBTYPE_SH7764) | 20 | defined(CONFIG_CPU_SUBTYPE_SH7764) |
19 | #define DMTE0_IRQ 34 | 21 | #define DMTE0_IRQ evt2irq(0x640) |
20 | #define DMTE4_IRQ 44 | 22 | #define DMTE4_IRQ evt2irq(0x780) |
21 | #define DMAE0_IRQ 38 | 23 | #define DMAE0_IRQ evt2irq(0x6c0) |
22 | #define SH_DMAC_BASE0 0xFF608020 | 24 | #define SH_DMAC_BASE0 0xFF608020 |
23 | #define SH_DMARS_BASE0 0xFF609000 | 25 | #define SH_DMARS_BASE0 0xFF609000 |
24 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) | 26 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) |
25 | #define DMTE0_IRQ 48 /* DMAC0A*/ | 27 | #define DMTE0_IRQ evt2irq(0x800) /* DMAC0A*/ |
26 | #define DMTE4_IRQ 76 /* DMAC0B */ | 28 | #define DMTE4_IRQ evt2irq(0xb80) /* DMAC0B */ |
27 | #define DMTE6_IRQ 40 | 29 | #define DMTE6_IRQ evt2irq(0x700) |
28 | #define DMTE8_IRQ 42 /* DMAC1A */ | 30 | #define DMTE8_IRQ evt2irq(0x740) /* DMAC1A */ |
29 | #define DMTE9_IRQ 43 | 31 | #define DMTE9_IRQ evt2irq(0x760) |
30 | #define DMTE10_IRQ 72 /* DMAC1B */ | 32 | #define DMTE10_IRQ evt2irq(0xb00) /* DMAC1B */ |
31 | #define DMTE11_IRQ 73 | 33 | #define DMTE11_IRQ evt2irq(0xb20) |
32 | #define DMAE0_IRQ 78 /* DMA Error IRQ*/ | 34 | #define DMAE0_IRQ evt2irq(0xbc0) /* DMA Error IRQ*/ |
33 | #define DMAE1_IRQ 74 /* DMA Error IRQ*/ | 35 | #define DMAE1_IRQ evt2irq(0xb40) /* DMA Error IRQ*/ |
34 | #define SH_DMAC_BASE0 0xFE008020 | 36 | #define SH_DMAC_BASE0 0xFE008020 |
35 | #define SH_DMAC_BASE1 0xFDC08020 | 37 | #define SH_DMAC_BASE1 0xFDC08020 |
36 | #define SH_DMARS_BASE0 0xFDC09000 | 38 | #define SH_DMARS_BASE0 0xFDC09000 |
37 | #elif defined(CONFIG_CPU_SUBTYPE_SH7724) | 39 | #elif defined(CONFIG_CPU_SUBTYPE_SH7724) |
38 | #define DMTE0_IRQ 48 /* DMAC0A*/ | 40 | #define DMTE0_IRQ evt2irq(0x800) /* DMAC0A*/ |
39 | #define DMTE4_IRQ 76 /* DMAC0B */ | 41 | #define DMTE4_IRQ evt2irq(0xb80) /* DMAC0B */ |
40 | #define DMTE6_IRQ 40 | 42 | #define DMTE6_IRQ evt2irq(0x700) |
41 | #define DMTE8_IRQ 42 /* DMAC1A */ | 43 | #define DMTE8_IRQ evt2irq(0x740) /* DMAC1A */ |
42 | #define DMTE9_IRQ 43 | 44 | #define DMTE9_IRQ evt2irq(0x760) |
43 | #define DMTE10_IRQ 72 /* DMAC1B */ | 45 | #define DMTE10_IRQ evt2irq(0xb00) /* DMAC1B */ |
44 | #define DMTE11_IRQ 73 | 46 | #define DMTE11_IRQ evt2irq(0xb20) |
45 | #define DMAE0_IRQ 78 /* DMA Error IRQ*/ | 47 | #define DMAE0_IRQ evt2irq(0xbc0) /* DMA Error IRQ*/ |
46 | #define DMAE1_IRQ 74 /* DMA Error IRQ*/ | 48 | #define DMAE1_IRQ evt2irq(0xb40) /* DMA Error IRQ*/ |
47 | #define SH_DMAC_BASE0 0xFE008020 | 49 | #define SH_DMAC_BASE0 0xFE008020 |
48 | #define SH_DMAC_BASE1 0xFDC08020 | 50 | #define SH_DMAC_BASE1 0xFDC08020 |
49 | #define SH_DMARS_BASE0 0xFE009000 | 51 | #define SH_DMARS_BASE0 0xFE009000 |
50 | #define SH_DMARS_BASE1 0xFDC09000 | 52 | #define SH_DMARS_BASE1 0xFDC09000 |
51 | #elif defined(CONFIG_CPU_SUBTYPE_SH7780) | 53 | #elif defined(CONFIG_CPU_SUBTYPE_SH7780) |
52 | #define DMTE0_IRQ 34 | 54 | #define DMTE0_IRQ evt2irq(0x640) |
53 | #define DMTE4_IRQ 44 | 55 | #define DMTE4_IRQ evt2irq(0x780) |
54 | #define DMTE6_IRQ 46 | 56 | #define DMTE6_IRQ evt2irq(0x7c0) |
55 | #define DMTE8_IRQ 92 | 57 | #define DMTE8_IRQ evt2irq(0xd80) |
56 | #define DMTE9_IRQ 93 | 58 | #define DMTE9_IRQ evt2irq(0xda0) |
57 | #define DMTE10_IRQ 94 | 59 | #define DMTE10_IRQ evt2irq(0xdc0) |
58 | #define DMTE11_IRQ 95 | 60 | #define DMTE11_IRQ evt2irq(0xde0) |
59 | #define DMAE0_IRQ 38 /* DMA Error IRQ */ | 61 | #define DMAE0_IRQ evt2irq(0x6c0) /* DMA Error IRQ */ |
60 | #define SH_DMAC_BASE0 0xFC808020 | 62 | #define SH_DMAC_BASE0 0xFC808020 |
61 | #define SH_DMAC_BASE1 0xFC818020 | 63 | #define SH_DMAC_BASE1 0xFC818020 |
62 | #define SH_DMARS_BASE0 0xFC809000 | 64 | #define SH_DMARS_BASE0 0xFC809000 |
63 | #else /* SH7785 */ | 65 | #else /* SH7785 */ |
64 | #define DMTE0_IRQ 33 | 66 | #define DMTE0_IRQ evt2irq(0x620) |
65 | #define DMTE4_IRQ 37 | 67 | #define DMTE4_IRQ evt2irq(0x6a0) |
66 | #define DMTE6_IRQ 52 | 68 | #define DMTE6_IRQ evt2irq(0x880) |
67 | #define DMTE8_IRQ 54 | 69 | #define DMTE8_IRQ evt2irq(0x8c0) |
68 | #define DMTE9_IRQ 55 | 70 | #define DMTE9_IRQ evt2irq(0x8e0) |
69 | #define DMTE10_IRQ 56 | 71 | #define DMTE10_IRQ evt2irq(0x900) |
70 | #define DMTE11_IRQ 57 | 72 | #define DMTE11_IRQ evt2irq(0x920) |
71 | #define DMAE0_IRQ 39 /* DMA Error IRQ0 */ | 73 | #define DMAE0_IRQ evt2irq(0x6e0) /* DMA Error IRQ0 */ |
72 | #define DMAE1_IRQ 58 /* DMA Error IRQ1 */ | 74 | #define DMAE1_IRQ evt2irq(0x940) /* DMA Error IRQ1 */ |
73 | #define SH_DMAC_BASE0 0xFC808020 | 75 | #define SH_DMAC_BASE0 0xFC808020 |
74 | #define SH_DMAC_BASE1 0xFCC08020 | 76 | #define SH_DMAC_BASE1 0xFCC08020 |
75 | #define SH_DMARS_BASE0 0xFC809000 | 77 | #define SH_DMARS_BASE0 0xFC809000 |
diff --git a/arch/sh/include/cpu-sh4/cpu/dma.h b/arch/sh/include/cpu-sh4/cpu/dma.h index ca747e93c2ed..9d32e2dd2554 100644 --- a/arch/sh/include/cpu-sh4/cpu/dma.h +++ b/arch/sh/include/cpu-sh4/cpu/dma.h | |||
@@ -8,13 +8,16 @@ | |||
8 | #include <cpu/dma-sh4a.h> | 8 | #include <cpu/dma-sh4a.h> |
9 | 9 | ||
10 | #else /* CONFIG_CPU_SH4A */ | 10 | #else /* CONFIG_CPU_SH4A */ |
11 | |||
12 | #include <linux/sh_intc.h> | ||
13 | |||
11 | /* | 14 | /* |
12 | * SH7750/SH7751/SH7760 | 15 | * SH7750/SH7751/SH7760 |
13 | */ | 16 | */ |
14 | #define DMTE0_IRQ 34 | 17 | #define DMTE0_IRQ evt2irq(0x640) |
15 | #define DMTE4_IRQ 44 | 18 | #define DMTE4_IRQ evt2irq(0x780) |
16 | #define DMTE6_IRQ 46 | 19 | #define DMTE6_IRQ evt2irq(0x7c0) |
17 | #define DMAE0_IRQ 38 | 20 | #define DMAE0_IRQ evt2irq(0x6c0) |
18 | 21 | ||
19 | #define SH_DMAC_BASE0 0xffa00000 | 22 | #define SH_DMAC_BASE0 0xffa00000 |
20 | #define SH_DMAC_BASE1 0xffa00070 | 23 | #define SH_DMAC_BASE1 0xffa00070 |