diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 01:15:11 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 01:15:11 -0400 |
commit | 054f0378a5ed2f8bd99f87846f0464e2440108d4 (patch) | |
tree | 071d11f72942d03b0190c040e9c983ea9cf8f871 /arch/sh/kernel/cpu | |
parent | d8be10bbf3ba7eb4f1a9e609813fcbf916472e2f (diff) |
sh: sh4-202 evt2irq migration.
Migrate SH4-202 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu')
-rw-r--r-- | arch/sh/kernel/cpu/sh4/setup-sh4-202.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh4-202.c b/arch/sh/kernel/cpu/sh4/setup-sh4-202.c index 5b2833159b7d..2a5320aa73bb 100644 --- a/arch/sh/kernel/cpu/sh4/setup-sh4-202.c +++ b/arch/sh/kernel/cpu/sh4/setup-sh4-202.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/serial.h> | 13 | #include <linux/serial.h> |
14 | #include <linux/serial_sci.h> | 14 | #include <linux/serial_sci.h> |
15 | #include <linux/sh_timer.h> | 15 | #include <linux/sh_timer.h> |
16 | #include <linux/sh_intc.h> | ||
16 | #include <linux/io.h> | 17 | #include <linux/io.h> |
17 | 18 | ||
18 | static struct plat_sci_port scif0_platform_data = { | 19 | static struct plat_sci_port scif0_platform_data = { |
@@ -21,7 +22,10 @@ static struct plat_sci_port scif0_platform_data = { | |||
21 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 22 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
22 | .scbrr_algo_id = SCBRR_ALGO_2, | 23 | .scbrr_algo_id = SCBRR_ALGO_2, |
23 | .type = PORT_SCIF, | 24 | .type = PORT_SCIF, |
24 | .irqs = { 40, 41, 43, 42 }, | 25 | .irqs = { evt2irq(0x700), |
26 | evt2irq(0x720), | ||
27 | evt2irq(0x760), | ||
28 | evt2irq(0x740) }, | ||
25 | }; | 29 | }; |
26 | 30 | ||
27 | static struct platform_device scif0_device = { | 31 | static struct platform_device scif0_device = { |
@@ -45,7 +49,7 @@ static struct resource tmu0_resources[] = { | |||
45 | .flags = IORESOURCE_MEM, | 49 | .flags = IORESOURCE_MEM, |
46 | }, | 50 | }, |
47 | [1] = { | 51 | [1] = { |
48 | .start = 16, | 52 | .start = evt2irq(0x400), |
49 | .flags = IORESOURCE_IRQ, | 53 | .flags = IORESOURCE_IRQ, |
50 | }, | 54 | }, |
51 | }; | 55 | }; |
@@ -73,7 +77,7 @@ static struct resource tmu1_resources[] = { | |||
73 | .flags = IORESOURCE_MEM, | 77 | .flags = IORESOURCE_MEM, |
74 | }, | 78 | }, |
75 | [1] = { | 79 | [1] = { |
76 | .start = 17, | 80 | .start = evt2irq(0x420), |
77 | .flags = IORESOURCE_IRQ, | 81 | .flags = IORESOURCE_IRQ, |
78 | }, | 82 | }, |
79 | }; | 83 | }; |
@@ -100,7 +104,7 @@ static struct resource tmu2_resources[] = { | |||
100 | .flags = IORESOURCE_MEM, | 104 | .flags = IORESOURCE_MEM, |
101 | }, | 105 | }, |
102 | [1] = { | 106 | [1] = { |
103 | .start = 18, | 107 | .start = evt2irq(0x440), |
104 | .flags = IORESOURCE_IRQ, | 108 | .flags = IORESOURCE_IRQ, |
105 | }, | 109 | }, |
106 | }; | 110 | }; |