13 #include <linux/serial.h>
18 #include <generated/machtypes.h>
20 static struct resource rtc_resources[] = {
23 .end = 0xffc80000 + 0x58 - 1,
37 .resource = rtc_resources,
41 .mapbase = 0xffe00000,
42 .port_reg = 0xffe0001C,
55 .platform_data = &sci_platform_data,
60 .mapbase = 0xffe80000,
72 .platform_data = &scif_platform_data,
77 .channel_offset = 0x04,
79 .clockevent_rating = 200,
82 static struct resource tmu0_resources[] = {
98 .platform_data = &tmu0_platform_data,
100 .resource = tmu0_resources,
105 .channel_offset = 0x10,
107 .clocksource_rating = 200,
110 static struct resource tmu1_resources[] = {
126 .platform_data = &tmu1_platform_data,
128 .resource = tmu1_resources,
133 .channel_offset = 0x1c,
137 static struct resource tmu2_resources[] = {
153 .platform_data = &tmu2_platform_data,
155 .resource = tmu2_resources,
160 #if defined(CONFIG_CPU_SUBTYPE_SH7750R) || \
161 defined(CONFIG_CPU_SUBTYPE_SH7751) || \
162 defined(CONFIG_CPU_SUBTYPE_SH7751R)
169 static struct resource tmu3_resources[] = {
185 .platform_data = &tmu3_platform_data,
187 .resource = tmu3_resources,
196 static struct resource tmu4_resources[] = {
212 .platform_data = &tmu4_platform_data,
214 .resource = tmu4_resources,
225 #if defined(CONFIG_CPU_SUBTYPE_SH7750R) || \
226 defined(CONFIG_CPU_SUBTYPE_SH7751) || \
227 defined(CONFIG_CPU_SUBTYPE_SH7751R)
233 static int __init sh7750_devices_setup(
void)
235 if (mach_is_rts7751r2d()) {
251 #if defined(CONFIG_CPU_SUBTYPE_SH7750R) || \
252 defined(CONFIG_CPU_SUBTYPE_SH7751) || \
253 defined(CONFIG_CPU_SUBTYPE_SH7751R)
263 if (mach_is_rts7751r2d()) {
265 dev[0] = &scif_device;
268 dev[0] = &sci_device;
270 dev[0] = &scif_device;
286 TMU3,
TMU4,
TMU0,
TMU1,
TMU2,
RTC,
SCI1,
SCIF,
WDT,
REF,
308 { 0xffd00008, 0, 16, 4, {
WDT,
REF,
SCI1, 0 } },
311 { 0xfe080000, 0, 32, 4, { 0, 0, 0, 0,
320 #if defined(CONFIG_CPU_SUBTYPE_SH7750) || \
321 defined(CONFIG_CPU_SUBTYPE_SH7750S) || \
322 defined(CONFIG_CPU_SUBTYPE_SH7751) || \
323 defined(CONFIG_CPU_SUBTYPE_SH7091)
324 static struct intc_vect vectors_dma4[] __initdata = {
336 #if defined(CONFIG_CPU_SUBTYPE_SH7750R) || defined(CONFIG_CPU_SUBTYPE_SH7751R)
337 static struct intc_vect vectors_dma8[] __initdata = {
351 #if defined(CONFIG_CPU_SUBTYPE_SH7750R) || \
352 defined(CONFIG_CPU_SUBTYPE_SH7751) || \
353 defined(CONFIG_CPU_SUBTYPE_SH7751R)
354 static struct intc_vect vectors_tmu34[] __initdata = {
359 { 0xfe080040, 0xfe080060, 32,
360 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
369 mask_registers, prio_registers,
NULL);
373 static struct intc_vect vectors_irlm[] __initdata = {
382 #if defined(CONFIG_CPU_SUBTYPE_SH7751) || defined(CONFIG_CPU_SUBTYPE_SH7751R)
383 static struct intc_vect vectors_pci[] __initdata = {
390 static struct intc_group groups_pci[] __initdata = {
396 mask_registers, prio_registers,
NULL);
399 #if defined(CONFIG_CPU_SUBTYPE_SH7750) || \
400 defined(CONFIG_CPU_SUBTYPE_SH7750S) || \
401 defined(CONFIG_CPU_SUBTYPE_SH7091)
413 #if defined(CONFIG_CPU_SUBTYPE_SH7750R)
422 #if defined(CONFIG_CPU_SUBTYPE_SH7751)
432 #if defined(CONFIG_CPU_SUBTYPE_SH7751R)
442 #define INTC_ICR 0xffd00000UL
443 #define INTC_ICR_IRLM (1<<7)
447 #if defined(CONFIG_CPU_SUBTYPE_SH7750) || defined(CONFIG_CPU_SUBTYPE_SH7091)