12 #include <linux/serial.h>
19 #include <asm/mmzone.h>
20 #include <cpu/dma-register.h>
23 .mapbase = 0xffea0000,
36 .platform_data = &scif0_platform_data,
41 .mapbase = 0xffeb0000,
54 .platform_data = &scif1_platform_data,
59 .mapbase = 0xffec0000,
72 .platform_data = &scif2_platform_data,
77 .mapbase = 0xffed0000,
90 .platform_data = &scif3_platform_data,
95 .mapbase = 0xffee0000,
108 .platform_data = &scif4_platform_data,
113 .mapbase = 0xffef0000,
126 .platform_data = &scif5_platform_data,
131 .channel_offset = 0x04,
133 .clockevent_rating = 200,
136 static struct resource tmu0_resources[] = {
152 .platform_data = &tmu0_platform_data,
154 .resource = tmu0_resources,
159 .channel_offset = 0x10,
161 .clocksource_rating = 200,
164 static struct resource tmu1_resources[] = {
180 .platform_data = &tmu1_platform_data,
182 .resource = tmu1_resources,
187 .channel_offset = 0x1c,
191 static struct resource tmu2_resources[] = {
207 .platform_data = &tmu2_platform_data,
209 .resource = tmu2_resources,
214 .channel_offset = 0x04,
218 static struct resource tmu3_resources[] = {
234 .platform_data = &tmu3_platform_data,
236 .resource = tmu3_resources,
241 .channel_offset = 0x10,
245 static struct resource tmu4_resources[] = {
261 .platform_data = &tmu4_platform_data,
263 .resource = tmu4_resources,
268 .channel_offset = 0x1c,
272 static struct resource tmu5_resources[] = {
288 .platform_data = &tmu5_platform_data,
290 .resource = tmu5_resources,
339 static const unsigned int ts_shift[] =
TS_SHIFT;
342 .channel = sh7785_dmae0_channels,
343 .channel_num =
ARRAY_SIZE(sh7785_dmae0_channels),
354 .channel = sh7785_dmae1_channels,
355 .channel_num =
ARRAY_SIZE(sh7785_dmae1_channels),
365 static struct resource sh7785_dmae0_resources[] = {
390 static struct resource sh7785_dmae1_resources[] = {
411 .name =
"sh-dma-engine",
413 .resource = sh7785_dmae0_resources,
414 .num_resources =
ARRAY_SIZE(sh7785_dmae0_resources),
416 .platform_data = &dma0_platform_data,
421 .name =
"sh-dma-engine",
423 .resource = sh7785_dmae1_resources,
424 .num_resources =
ARRAY_SIZE(sh7785_dmae1_resources),
426 .platform_data = &dma1_platform_data,
447 static int __init sh7785_devices_setup(
void)
547 static struct intc_group groups[] __initdata = {
553 { 0xffd00044, 0xffd00064, 32,
556 { 0xffd40080, 0xffd40084, 32,
566 { 0xffd40038, 0xffd4003c, 32,
576 { 0xffd40000, 0, 32, 8, {
TMU0,
TMU1,
583 { 0xffd40014, 0, 32, 8, {
HAC0,
HAC1,
589 { 0xffd40024, 0, 32, 8, {
DU,
GDTA, } },
593 mask_registers, prio_registers,
NULL);
597 static struct intc_vect vectors_irq0123[] __initdata = {
602 static struct intc_vect vectors_irq4567[] __initdata = {
618 vectors_irq0123,
NULL, mask_registers,
619 prio_registers, sense_registers, ack_registers);
622 vectors_irq4567,
NULL, mask_registers,
623 prio_registers, sense_registers, ack_registers);
627 static struct intc_vect vectors_irl0123[] __initdata = {
638 static struct intc_vect vectors_irl4567[] __initdata = {
655 #define INTC_ICR0 0xffd00000
656 #define INTC_INTMSK0 0xffd00044
657 #define INTC_INTMSK1 0xffd00048
658 #define INTC_INTMSK2 0xffd40080
659 #define INTC_INTMSKCLR1 0xffd00068
660 #define INTC_INTMSKCLR2 0xffd40084