14 #include <linux/serial.h>
21 .mapbase = 0xffe00000,
34 .platform_data = &scif0_platform_data,
39 .mapbase = 0xffe08000,
52 .platform_data = &scif1_platform_data,
57 .mapbase = 0xffe10000,
70 .platform_data = &scif2_platform_data,
74 static struct resource rtc_resources[] = {
77 .end = 0xffe80000 + 0x58 - 1,
91 .resource = rtc_resources,
94 static struct resource usb_ohci_resources[] = {
107 static u64 usb_ohci_dma_mask = 0xffffffff
UL;
113 .dma_mask = &usb_ohci_dma_mask,
114 .coherent_dma_mask = 0xffffffff,
116 .num_resources =
ARRAY_SIZE(usb_ohci_resources),
117 .resource = usb_ohci_resources,
120 static struct resource usbf_resources[] = {
138 .coherent_dma_mask = 0xffffffff,
141 .resource = usbf_resources,
145 .channel_offset = 0x04,
147 .clockevent_rating = 200,
150 static struct resource tmu0_resources[] = {
166 .platform_data = &tmu0_platform_data,
168 .resource = tmu0_resources,
173 .channel_offset = 0x10,
175 .clocksource_rating = 200,
178 static struct resource tmu1_resources[] = {
194 .platform_data = &tmu1_platform_data,
196 .resource = tmu1_resources,
201 .channel_offset = 0x1c,
205 static struct resource tmu2_resources[] = {
221 .platform_data = &tmu2_platform_data,
223 .resource = tmu2_resources,
228 .channel_offset = 0x04,
232 static struct resource tmu3_resources[] = {
248 .platform_data = &tmu3_platform_data,
250 .resource = tmu3_resources,
255 .channel_offset = 0x10,
259 static struct resource tmu4_resources[] = {
275 .platform_data = &tmu4_platform_data,
277 .resource = tmu4_resources,
282 .channel_offset = 0x1c,
286 static struct resource tmu5_resources[] = {
302 .platform_data = &tmu5_platform_data,
304 .resource = tmu5_resources,
323 static int __init sh7763_devices_setup(
void)
415 static struct intc_group groups[] __initdata = {
421 { 0xffd40038, 0xffd4003c, 32,
422 { 0, 0, 0, 0, 0, 0,
GPIO, 0,
426 { 0xffd400d0, 0xffd400d4, 32,
434 { 0xffd40000, 0, 32, 8, {
TMU0,
TMU1,
439 { 0xffd40010, 0, 32, 8, {
CMT,
HAC,
444 { 0xffd4001c, 0, 32, 8, {
SCIF2,
GPIO } },
448 { 0xffd400ac, 0, 32, 8, {
PCC } },
449 { 0xffd400b0, 0, 32, 8, { 0, 0,
USBH,
GETHER } },
450 { 0xffd400b4, 0, 32, 8, { 0, 0,
STIF1,
STIF0 } },
454 mask_registers, prio_registers,
NULL);
457 static struct intc_vect irq_vectors[] __initdata = {
464 static struct intc_mask_reg irq_mask_registers[] __initdata = {
465 { 0xffd00044, 0xffd00064, 32,
469 static struct intc_prio_reg irq_prio_registers[] __initdata = {
479 static struct intc_mask_reg irq_ack_registers[] __initdata = {
485 NULL, irq_mask_registers, irq_prio_registers,
486 irq_sense_registers, irq_ack_registers);
490 static struct intc_vect irl_vectors[] __initdata = {
501 static struct intc_mask_reg irl3210_mask_registers[] __initdata = {
502 { 0xffd40080, 0xffd40084, 32,
509 static struct intc_mask_reg irl7654_mask_registers[] __initdata = {
510 { 0xffd40080, 0xffd40084, 32,
511 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
524 #define INTC_ICR0 0xffd00000
525 #define INTC_INTMSK0 0xffd00044
526 #define INTC_INTMSK1 0xffd00048
527 #define INTC_INTMSK2 0xffd40080
528 #define INTC_INTMSKCLR1 0xffd00068
529 #define INTC_INTMSKCLR2 0xffd40084