13 #include <linux/serial.h>
21 #include <asm/clock.h>
22 #include <asm/mmzone.h>
25 #include <cpu/dma-register.h>
27 #include <cpu/serial.h>
121 static const unsigned int ts_shift[] =
TS_SHIFT;
124 .slave = sh7722_dmae_slaves,
126 .channel = sh7722_dmae_channels,
127 .channel_num =
ARRAY_SIZE(sh7722_dmae_channels),
137 static struct resource sh7722_dmae_resources[] = {
171 .name =
"sh-dma-engine",
173 .resource = sh7722_dmae_resources,
174 .num_resources =
ARRAY_SIZE(sh7722_dmae_resources),
176 .platform_data = &dma_platform_data,
182 .mapbase = 0xffe00000,
196 .platform_data = &scif0_platform_data,
201 .mapbase = 0xffe10000,
215 .platform_data = &scif1_platform_data,
220 .mapbase = 0xffe20000,
234 .platform_data = &scif2_platform_data,
238 static struct resource rtc_resources[] = {
241 .end = 0xa465fec0 + 0x58 - 1,
265 .resource = rtc_resources,
272 static struct resource usbf_resources[] = {
287 .name =
"m66592_udc",
291 .coherent_dma_mask = 0xffffffff,
292 .platform_data = &usbf_platdata,
295 .resource = usbf_resources,
298 static struct resource iic_resources[] = {
313 .name =
"i2c-sh_mobile",
316 .resource = iic_resources,
319 static struct uio_info vpu_platform_data = {
325 static struct resource vpu_resources[] = {
338 .name =
"uio_pdrv_genirq",
341 .platform_data = &vpu_platform_data,
343 .resource = vpu_resources,
347 static struct uio_info veu_platform_data = {
353 static struct resource veu_resources[] = {
366 .name =
"uio_pdrv_genirq",
369 .platform_data = &veu_platform_data,
371 .resource = veu_resources,
375 static struct uio_info jpu_platform_data = {
381 static struct resource jpu_resources[] = {
394 .name =
"uio_pdrv_genirq",
397 .platform_data = &jpu_platform_data,
399 .resource = jpu_resources,
404 .channel_offset = 0x60,
406 .clockevent_rating = 125,
407 .clocksource_rating = 125,
410 static struct resource cmt_resources[] = {
426 .platform_data = &cmt_platform_data,
428 .resource = cmt_resources,
433 .channel_offset = 0x04,
435 .clockevent_rating = 200,
438 static struct resource tmu0_resources[] = {
454 .platform_data = &tmu0_platform_data,
456 .resource = tmu0_resources,
461 .channel_offset = 0x10,
463 .clocksource_rating = 200,
466 static struct resource tmu1_resources[] = {
482 .platform_data = &tmu1_platform_data,
484 .resource = tmu1_resources,
489 .channel_offset = 0x1c,
493 static struct resource tmu2_resources[] = {
509 .platform_data = &tmu2_platform_data,
511 .resource = tmu2_resources,
522 static struct resource siu_resources[] = {
535 .name =
"siu-pcm-audio",
538 .platform_data = &siu_platform_data,
540 .resource = siu_resources,
562 static int __init sh7722_devices_setup(
void)
649 static struct intc_group groups[] __initdata = {
662 { 0xa4080080, 0xa40800c0, 8,
664 { 0xa4080084, 0xa40800c4, 8,
666 { 0xa4080088, 0xa40800c8, 8,
668 { 0xa408008c, 0xa40800cc, 8,
670 { 0xa4080090, 0xa40800d0, 8,
672 { 0xa4080094, 0xa40800d4, 8,
674 { 0xa4080098, 0xa40800d8, 8,
676 { 0xa408009c, 0xa40800dc, 8,
679 { 0xa40800a0, 0xa40800e0, 8,
681 { 0xa40800a4, 0xa40800e4, 8,
683 { 0xa40800a8, 0xa40800e8, 8,
685 { 0xa40800ac, 0xa40800ec, 8,
687 { 0xa4140044, 0xa4140064, 8,
694 { 0xa4080008, 0, 16, 4, { } },
695 { 0xa408000c, 0, 16, 4, { } },
700 { 0xa4080020, 0, 16, 4, {
SIO, 0,
TSIF,
RTC } },
701 { 0xa4080024, 0, 16, 4, { 0, 0,
SIU } },
702 { 0xa4080028, 0, 16, 4, { 0, 0, 0,
SDHI } },
703 { 0xa408002c, 0, 16, 4, {
TWODG, 0,
TPU } },
704 { 0xa4140010, 0, 32, 4,
723 prio_registers, sense_registers, ack_registers),