diff options
author | Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> | 2012-04-12 23:14:02 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-04-17 03:17:32 -0400 |
commit | 545f3bcf32b6d43d9ac89998e9e72fcdf7accca3 (patch) | |
tree | b2f20574e9c03514957727d64e2728907cc02680 /arch/sh/kernel | |
parent | 51edfb3375d276ba81ba26220c699a524be71f59 (diff) |
sh: sh3: Change the specification method of IRQ to SCIx_IRQ_MUXED
Some SCIF devices specify the same IRQ. We can use SCIx_IRQ_MUXED for this.
And change use to evt2irq(), without specifying the value of IRQ directly.
This is correction to the SH3 series.
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/cpu/sh3/setup-sh7705.c | 4 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh3/setup-sh770x.c | 6 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh3/setup-sh7710.c | 4 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh3/setup-sh7720.c | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7705.c b/arch/sh/kernel/cpu/sh3/setup-sh7705.c index 2309618c015d..97416a597dd8 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh7705.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh7705.c | |||
@@ -75,7 +75,7 @@ static struct plat_sci_port scif0_platform_data = { | |||
75 | SCSCR_RE | SCSCR_CKE1 | SCSCR_CKE0, | 75 | SCSCR_RE | SCSCR_CKE1 | SCSCR_CKE0, |
76 | .scbrr_algo_id = SCBRR_ALGO_4, | 76 | .scbrr_algo_id = SCBRR_ALGO_4, |
77 | .type = PORT_SCIF, | 77 | .type = PORT_SCIF, |
78 | .irqs = { 56, 56, 56 }, | 78 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x900)), |
79 | .ops = &sh770x_sci_port_ops, | 79 | .ops = &sh770x_sci_port_ops, |
80 | .regtype = SCIx_SH7705_SCIF_REGTYPE, | 80 | .regtype = SCIx_SH7705_SCIF_REGTYPE, |
81 | }; | 81 | }; |
@@ -94,7 +94,7 @@ static struct plat_sci_port scif1_platform_data = { | |||
94 | .scscr = SCSCR_TIE | SCSCR_RIE | SCSCR_TE | SCSCR_RE, | 94 | .scscr = SCSCR_TIE | SCSCR_RIE | SCSCR_TE | SCSCR_RE, |
95 | .scbrr_algo_id = SCBRR_ALGO_4, | 95 | .scbrr_algo_id = SCBRR_ALGO_4, |
96 | .type = PORT_SCIF, | 96 | .type = PORT_SCIF, |
97 | .irqs = { 52, 52, 52 }, | 97 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x880)), |
98 | .ops = &sh770x_sci_port_ops, | 98 | .ops = &sh770x_sci_port_ops, |
99 | .regtype = SCIx_SH7705_SCIF_REGTYPE, | 99 | .regtype = SCIx_SH7705_SCIF_REGTYPE, |
100 | }; | 100 | }; |
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh770x.c b/arch/sh/kernel/cpu/sh3/setup-sh770x.c index 3f3d5fe5892d..50f95a32a8c5 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh770x.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh770x.c | |||
@@ -114,7 +114,7 @@ static struct plat_sci_port scif0_platform_data = { | |||
114 | .scscr = SCSCR_TE | SCSCR_RE, | 114 | .scscr = SCSCR_TE | SCSCR_RE, |
115 | .scbrr_algo_id = SCBRR_ALGO_2, | 115 | .scbrr_algo_id = SCBRR_ALGO_2, |
116 | .type = PORT_SCI, | 116 | .type = PORT_SCI, |
117 | .irqs = { 23, 23, 23, 0 }, | 117 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x4E0)), |
118 | .ops = &sh770x_sci_port_ops, | 118 | .ops = &sh770x_sci_port_ops, |
119 | .regshift = 1, | 119 | .regshift = 1, |
120 | }; | 120 | }; |
@@ -135,7 +135,7 @@ static struct plat_sci_port scif1_platform_data = { | |||
135 | .scscr = SCSCR_TE | SCSCR_RE, | 135 | .scscr = SCSCR_TE | SCSCR_RE, |
136 | .scbrr_algo_id = SCBRR_ALGO_2, | 136 | .scbrr_algo_id = SCBRR_ALGO_2, |
137 | .type = PORT_SCIF, | 137 | .type = PORT_SCIF, |
138 | .irqs = { 56, 56, 56, 56 }, | 138 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x900)), |
139 | .ops = &sh770x_sci_port_ops, | 139 | .ops = &sh770x_sci_port_ops, |
140 | .regtype = SCIx_SH3_SCIF_REGTYPE, | 140 | .regtype = SCIx_SH3_SCIF_REGTYPE, |
141 | }; | 141 | }; |
@@ -157,7 +157,7 @@ static struct plat_sci_port scif2_platform_data = { | |||
157 | .scscr = SCSCR_TE | SCSCR_RE, | 157 | .scscr = SCSCR_TE | SCSCR_RE, |
158 | .scbrr_algo_id = SCBRR_ALGO_2, | 158 | .scbrr_algo_id = SCBRR_ALGO_2, |
159 | .type = PORT_IRDA, | 159 | .type = PORT_IRDA, |
160 | .irqs = { 52, 52, 52, 52 }, | 160 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x880)), |
161 | .ops = &sh770x_sci_port_ops, | 161 | .ops = &sh770x_sci_port_ops, |
162 | .regshift = 1, | 162 | .regshift = 1, |
163 | }; | 163 | }; |
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7710.c b/arch/sh/kernel/cpu/sh3/setup-sh7710.c index 78f6b01d42c3..7ef248731820 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh7710.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh7710.c | |||
@@ -103,7 +103,7 @@ static struct plat_sci_port scif0_platform_data = { | |||
103 | SCSCR_CKE1 | SCSCR_CKE0, | 103 | SCSCR_CKE1 | SCSCR_CKE0, |
104 | .scbrr_algo_id = SCBRR_ALGO_2, | 104 | .scbrr_algo_id = SCBRR_ALGO_2, |
105 | .type = PORT_SCIF, | 105 | .type = PORT_SCIF, |
106 | .irqs = { 52, 52, 52, 52 }, | 106 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x880)), |
107 | }; | 107 | }; |
108 | 108 | ||
109 | static struct platform_device scif0_device = { | 109 | static struct platform_device scif0_device = { |
@@ -121,7 +121,7 @@ static struct plat_sci_port scif1_platform_data = { | |||
121 | SCSCR_CKE1 | SCSCR_CKE0, | 121 | SCSCR_CKE1 | SCSCR_CKE0, |
122 | .scbrr_algo_id = SCBRR_ALGO_2, | 122 | .scbrr_algo_id = SCBRR_ALGO_2, |
123 | .type = PORT_SCIF, | 123 | .type = PORT_SCIF, |
124 | .irqs = { 56, 56, 56, 56 }, | 124 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x900)), |
125 | }; | 125 | }; |
126 | 126 | ||
127 | static struct platform_device scif1_device = { | 127 | static struct platform_device scif1_device = { |
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7720.c b/arch/sh/kernel/cpu/sh3/setup-sh7720.c index 94920345c14d..b2557485d0ce 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh7720.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh7720.c | |||
@@ -55,7 +55,7 @@ static struct plat_sci_port scif0_platform_data = { | |||
55 | .scscr = SCSCR_RE | SCSCR_TE, | 55 | .scscr = SCSCR_RE | SCSCR_TE, |
56 | .scbrr_algo_id = SCBRR_ALGO_4, | 56 | .scbrr_algo_id = SCBRR_ALGO_4, |
57 | .type = PORT_SCIF, | 57 | .type = PORT_SCIF, |
58 | .irqs = { 80, 80, 80, 80 }, | 58 | .irqs = SCIx_IRQ_MUXED(evt2irq(0xC00)), |
59 | .ops = &sh7720_sci_port_ops, | 59 | .ops = &sh7720_sci_port_ops, |
60 | .regtype = SCIx_SH7705_SCIF_REGTYPE, | 60 | .regtype = SCIx_SH7705_SCIF_REGTYPE, |
61 | }; | 61 | }; |
@@ -74,7 +74,7 @@ static struct plat_sci_port scif1_platform_data = { | |||
74 | .scscr = SCSCR_RE | SCSCR_TE, | 74 | .scscr = SCSCR_RE | SCSCR_TE, |
75 | .scbrr_algo_id = SCBRR_ALGO_4, | 75 | .scbrr_algo_id = SCBRR_ALGO_4, |
76 | .type = PORT_SCIF, | 76 | .type = PORT_SCIF, |
77 | .irqs = { 81, 81, 81, 81 }, | 77 | .irqs = SCIx_IRQ_MUXED(evt2irq(0xC20)), |
78 | .ops = &sh7720_sci_port_ops, | 78 | .ops = &sh7720_sci_port_ops, |
79 | .regtype = SCIx_SH7705_SCIF_REGTYPE, | 79 | .regtype = SCIx_SH7705_SCIF_REGTYPE, |
80 | }; | 80 | }; |