|
@@ -124,54 +124,25 @@ static struct platform_device cmt1_device = {
|
|
|
};
|
|
|
|
|
|
/* TMU */
|
|
|
-static struct sh_timer_config tmu00_platform_data = {
|
|
|
- .name = "TMU00",
|
|
|
- .channel_offset = 0x4,
|
|
|
- .timer_bit = 0,
|
|
|
- .clockevent_rating = 200,
|
|
|
+static struct sh_timer_config tmu0_platform_data = {
|
|
|
+ .channels_mask = 7,
|
|
|
};
|
|
|
|
|
|
-static struct resource tmu00_resources[] = {
|
|
|
- [0] = DEFINE_RES_MEM(0xfff60008, 0xc),
|
|
|
- [1] = {
|
|
|
- .start = intcs_evt2irq(0x0e80), /* TMU0_TUNI00 */
|
|
|
- .flags = IORESOURCE_IRQ,
|
|
|
- },
|
|
|
+static struct resource tmu0_resources[] = {
|
|
|
+ DEFINE_RES_MEM(0xfff60000, 0x2c),
|
|
|
+ DEFINE_RES_IRQ(intcs_evt2irq(0xe80)),
|
|
|
+ DEFINE_RES_IRQ(intcs_evt2irq(0xea0)),
|
|
|
+ DEFINE_RES_IRQ(intcs_evt2irq(0xec0)),
|
|
|
};
|
|
|
|
|
|
-static struct platform_device tmu00_device = {
|
|
|
- .name = "sh_tmu",
|
|
|
+static struct platform_device tmu0_device = {
|
|
|
+ .name = "sh-tmu",
|
|
|
.id = 0,
|
|
|
.dev = {
|
|
|
- .platform_data = &tmu00_platform_data,
|
|
|
- },
|
|
|
- .resource = tmu00_resources,
|
|
|
- .num_resources = ARRAY_SIZE(tmu00_resources),
|
|
|
-};
|
|
|
-
|
|
|
-static struct sh_timer_config tmu01_platform_data = {
|
|
|
- .name = "TMU01",
|
|
|
- .channel_offset = 0x10,
|
|
|
- .timer_bit = 1,
|
|
|
- .clocksource_rating = 200,
|
|
|
-};
|
|
|
-
|
|
|
-static struct resource tmu01_resources[] = {
|
|
|
- [0] = DEFINE_RES_MEM(0xfff60014, 0xc),
|
|
|
- [1] = {
|
|
|
- .start = intcs_evt2irq(0x0ea0), /* TMU0_TUNI01 */
|
|
|
- .flags = IORESOURCE_IRQ,
|
|
|
- },
|
|
|
-};
|
|
|
-
|
|
|
-static struct platform_device tmu01_device = {
|
|
|
- .name = "sh_tmu",
|
|
|
- .id = 1,
|
|
|
- .dev = {
|
|
|
- .platform_data = &tmu01_platform_data,
|
|
|
+ .platform_data = &tmu0_platform_data,
|
|
|
},
|
|
|
- .resource = tmu01_resources,
|
|
|
- .num_resources = ARRAY_SIZE(tmu01_resources),
|
|
|
+ .resource = tmu0_resources,
|
|
|
+ .num_resources = ARRAY_SIZE(tmu0_resources),
|
|
|
};
|
|
|
|
|
|
static struct resource i2c0_resources[] = {
|
|
@@ -738,8 +709,7 @@ static struct platform_device *sh73a0_devices_dt[] __initdata = {
|
|
|
};
|
|
|
|
|
|
static struct platform_device *sh73a0_early_devices[] __initdata = {
|
|
|
- &tmu00_device,
|
|
|
- &tmu01_device,
|
|
|
+ &tmu0_device,
|
|
|
&ipmmu_device,
|
|
|
};
|
|
|
|