diff options
Diffstat (limited to 'arch/sh/kernel/cpu/sh4/setup-sh7760.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4/setup-sh7760.c | 89 |
1 files changed, 61 insertions, 28 deletions
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7760.c b/arch/sh/kernel/cpu/sh4/setup-sh7760.c index 7fbb7be9284c..5b74cc0b43da 100644 --- a/arch/sh/kernel/cpu/sh4/setup-sh7760.c +++ b/arch/sh/kernel/cpu/sh4/setup-sh7760.c | |||
@@ -126,37 +126,63 @@ static struct intc_vect vectors_irq[] __initdata = { | |||
126 | static DECLARE_INTC_DESC(intc_desc_irq, "sh7760-irq", vectors_irq, groups, | 126 | static DECLARE_INTC_DESC(intc_desc_irq, "sh7760-irq", vectors_irq, groups, |
127 | mask_registers, prio_registers, NULL); | 127 | mask_registers, prio_registers, NULL); |
128 | 128 | ||
129 | static struct plat_sci_port sci_platform_data[] = { | 129 | static struct plat_sci_port scif0_platform_data = { |
130 | { | 130 | .mapbase = 0xfe600000, |
131 | .mapbase = 0xfe600000, | 131 | .flags = UPF_BOOT_AUTOCONF, |
132 | .flags = UPF_BOOT_AUTOCONF, | 132 | .type = PORT_SCIF, |
133 | .type = PORT_SCIF, | 133 | .irqs = { 52, 53, 55, 54 }, |
134 | .irqs = { 52, 53, 55, 54 }, | 134 | }; |
135 | }, { | 135 | |
136 | .mapbase = 0xfe610000, | 136 | static struct platform_device scif0_device = { |
137 | .flags = UPF_BOOT_AUTOCONF, | 137 | .name = "sh-sci", |
138 | .type = PORT_SCIF, | 138 | .id = 0, |
139 | .irqs = { 72, 73, 75, 74 }, | 139 | .dev = { |
140 | }, { | 140 | .platform_data = &scif0_platform_data, |
141 | .mapbase = 0xfe620000, | 141 | }, |
142 | .flags = UPF_BOOT_AUTOCONF, | 142 | }; |
143 | .type = PORT_SCIF, | 143 | |
144 | .irqs = { 76, 77, 79, 78 }, | 144 | static struct plat_sci_port scif1_platform_data = { |
145 | }, { | 145 | .mapbase = 0xfe610000, |
146 | .mapbase = 0xfe480000, | 146 | .flags = UPF_BOOT_AUTOCONF, |
147 | .flags = UPF_BOOT_AUTOCONF, | 147 | .type = PORT_SCIF, |
148 | .type = PORT_SCI, | 148 | .irqs = { 72, 73, 75, 74 }, |
149 | .irqs = { 80, 81, 82, 0 }, | 149 | }; |
150 | }, { | 150 | |
151 | .flags = 0, | 151 | static struct platform_device scif1_device = { |
152 | } | 152 | .name = "sh-sci", |
153 | .id = 1, | ||
154 | .dev = { | ||
155 | .platform_data = &scif1_platform_data, | ||
156 | }, | ||
157 | }; | ||
158 | |||
159 | static struct plat_sci_port scif2_platform_data = { | ||
160 | .mapbase = 0xfe620000, | ||
161 | .flags = UPF_BOOT_AUTOCONF, | ||
162 | .type = PORT_SCIF, | ||
163 | .irqs = { 76, 77, 79, 78 }, | ||
164 | }; | ||
165 | |||
166 | static struct platform_device scif2_device = { | ||
167 | .name = "sh-sci", | ||
168 | .id = 2, | ||
169 | .dev = { | ||
170 | .platform_data = &scif2_platform_data, | ||
171 | }, | ||
172 | }; | ||
173 | |||
174 | static struct plat_sci_port scif3_platform_data = { | ||
175 | .mapbase = 0xfe480000, | ||
176 | .flags = UPF_BOOT_AUTOCONF, | ||
177 | .type = PORT_SCI, | ||
178 | .irqs = { 80, 81, 82, 0 }, | ||
153 | }; | 179 | }; |
154 | 180 | ||
155 | static struct platform_device sci_device = { | 181 | static struct platform_device scif3_device = { |
156 | .name = "sh-sci", | 182 | .name = "sh-sci", |
157 | .id = -1, | 183 | .id = 3, |
158 | .dev = { | 184 | .dev = { |
159 | .platform_data = sci_platform_data, | 185 | .platform_data = &scif3_platform_data, |
160 | }, | 186 | }, |
161 | }; | 187 | }; |
162 | 188 | ||
@@ -254,7 +280,10 @@ static struct platform_device tmu2_device = { | |||
254 | 280 | ||
255 | 281 | ||
256 | static struct platform_device *sh7760_devices[] __initdata = { | 282 | static struct platform_device *sh7760_devices[] __initdata = { |
257 | &sci_device, | 283 | &scif0_device, |
284 | &scif1_device, | ||
285 | &scif2_device, | ||
286 | &scif3_device, | ||
258 | &tmu0_device, | 287 | &tmu0_device, |
259 | &tmu1_device, | 288 | &tmu1_device, |
260 | &tmu2_device, | 289 | &tmu2_device, |
@@ -268,6 +297,10 @@ static int __init sh7760_devices_setup(void) | |||
268 | arch_initcall(sh7760_devices_setup); | 297 | arch_initcall(sh7760_devices_setup); |
269 | 298 | ||
270 | static struct platform_device *sh7760_early_devices[] __initdata = { | 299 | static struct platform_device *sh7760_early_devices[] __initdata = { |
300 | &scif0_device, | ||
301 | &scif1_device, | ||
302 | &scif2_device, | ||
303 | &scif3_device, | ||
271 | &tmu0_device, | 304 | &tmu0_device, |
272 | &tmu1_device, | 305 | &tmu1_device, |
273 | &tmu2_device, | 306 | &tmu2_device, |