21 #include <linux/kernel.h>
27 #include <linux/input.h>
34 #include <mach/hardware.h>
35 #include <mach/irqs.h>
37 #include <mach/common.h>
48 .virtual = 0xe6000000,
51 .type = MT_DEVICE_NONSHARED
61 .mapbase = 0xe6c40000,
74 .platform_data = &scif0_platform_data,
79 .mapbase = 0xe6c50000,
92 .platform_data = &scif1_platform_data,
97 .mapbase = 0xe6c60000,
110 .platform_data = &scif2_platform_data,
115 .mapbase = 0xe6c70000,
128 .platform_data = &scif3_platform_data,
133 .mapbase = 0xe6c80000,
146 .platform_data = &scif4_platform_data,
151 .mapbase = 0xe6cb0000,
164 .platform_data = &scif5_platform_data,
169 .mapbase = 0xe6cc0000,
182 .platform_data = &scif6_platform_data,
187 .mapbase = 0xe6cd0000,
200 .platform_data = &scif7_platform_data,
205 .mapbase = 0xe6c30000,
218 .platform_data = &scif8_platform_data,
224 .channel_offset = 0x10,
226 .clockevent_rating = 125,
227 .clocksource_rating = 125,
230 static struct resource cmt10_resources[] = {
247 .platform_data = &cmt10_platform_data,
249 .resource = cmt10_resources,
256 .channel_offset = 0x4,
258 .clockevent_rating = 200,
261 static struct resource tmu00_resources[] = {
278 .platform_data = &tmu00_platform_data,
280 .resource = tmu00_resources,
286 .channel_offset = 0x10,
288 .clocksource_rating = 200,
291 static struct resource tmu01_resources[] = {
308 .platform_data = &tmu01_platform_data,
310 .resource = tmu01_resources,
314 static struct resource i2c0_resources[] = {
318 .end = 0xe6820425 - 1,
328 static struct resource i2c1_resources[] = {
332 .end = 0xe6822425 - 1,
342 static struct resource i2c2_resources[] = {
346 .end = 0xe6824425 - 1,
356 static struct resource i2c3_resources[] = {
360 .end = 0xe6826425 - 1,
370 static struct resource i2c4_resources[] = {
374 .end = 0xe6828425 - 1,
385 .name =
"i2c-sh_mobile",
387 .resource = i2c0_resources,
392 .name =
"i2c-sh_mobile",
394 .resource = i2c1_resources,
399 .name =
"i2c-sh_mobile",
401 .resource = i2c2_resources,
406 .name =
"i2c-sh_mobile",
408 .resource = i2c3_resources,
413 .name =
"i2c-sh_mobile",
415 .resource = i2c4_resources,
553 #define DMAE_CHANNEL(_offset) \
555 .offset = _offset - 0x20, \
556 .dmars = _offset - 0x20 + 0x40, \
583 .slave = sh73a0_dmae_slaves,
585 .channel = sh73a0_dmae_channels,
586 .channel_num =
ARRAY_SIZE(sh73a0_dmae_channels),
591 .ts_shift = dma_ts_shift,
596 static struct resource sh73a0_dmae_resources[] = {
600 .end = 0xfe008a00 - 1,
618 .name =
"sh-dma-engine",
620 .resource = sh73a0_dmae_resources,
621 .num_resources =
ARRAY_SIZE(sh73a0_dmae_resources),
623 .platform_data = &sh73a0_dmae_platform_data,
667 #define MPDMA_CHANNEL(a, b, c) \
672 .chclr_offset = (0x220 - 0x20) + a \
685 .slave = sh73a0_mpdma_slaves,
687 .channel = sh73a0_mpdma_channels,
688 .channel_num =
ARRAY_SIZE(sh73a0_mpdma_channels),
693 .ts_shift = dma_ts_shift,
700 static struct resource sh73a0_mpdma_resources[] = {
728 .name =
"sh-dma-engine",
730 .resource = sh73a0_mpdma_resources,
731 .num_resources =
ARRAY_SIZE(sh73a0_mpdma_resources),
733 .platform_data = &sh73a0_mpdma_platform_data,
737 static struct resource pmu_resources[] = {
754 .resource = pmu_resources,
783 #define SRCR2 IOMEM(0xe61580b0)
799 static void __init sh73a0_earlytimer_init(
void)