|
@@ -163,3 +163,138 @@ static struct platform_device scif5_device = {
|
|
.dev = {
|
|
.dev = {
|
|
.platform_data = &scif5_platform_data,
|
|
.platform_data = &scif5_platform_data,
|
|
},
|
|
},
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct plat_sci_port scif6_platform_data = {
|
|
|
|
+ .mapbase = 0xe6cc0000,
|
|
|
|
+ .flags = UPF_BOOT_AUTOCONF,
|
|
|
|
+ .scscr = SCSCR_RE | SCSCR_TE,
|
|
|
|
+ .scbrr_algo_id = SCBRR_ALGO_4,
|
|
|
|
+ .type = PORT_SCIFA,
|
|
|
|
+ .irqs = { gic_spi(156), gic_spi(156),
|
|
|
|
+ gic_spi(156), gic_spi(156) },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct platform_device scif6_device = {
|
|
|
|
+ .name = "sh-sci",
|
|
|
|
+ .id = 6,
|
|
|
|
+ .dev = {
|
|
|
|
+ .platform_data = &scif6_platform_data,
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct plat_sci_port scif7_platform_data = {
|
|
|
|
+ .mapbase = 0xe6cd0000,
|
|
|
|
+ .flags = UPF_BOOT_AUTOCONF,
|
|
|
|
+ .scscr = SCSCR_RE | SCSCR_TE,
|
|
|
|
+ .scbrr_algo_id = SCBRR_ALGO_4,
|
|
|
|
+ .type = PORT_SCIFA,
|
|
|
|
+ .irqs = { gic_spi(143), gic_spi(143),
|
|
|
|
+ gic_spi(143), gic_spi(143) },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct platform_device scif7_device = {
|
|
|
|
+ .name = "sh-sci",
|
|
|
|
+ .id = 7,
|
|
|
|
+ .dev = {
|
|
|
|
+ .platform_data = &scif7_platform_data,
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct plat_sci_port scif8_platform_data = {
|
|
|
|
+ .mapbase = 0xe6c30000,
|
|
|
|
+ .flags = UPF_BOOT_AUTOCONF,
|
|
|
|
+ .scscr = SCSCR_RE | SCSCR_TE,
|
|
|
|
+ .scbrr_algo_id = SCBRR_ALGO_4,
|
|
|
|
+ .type = PORT_SCIFB,
|
|
|
|
+ .irqs = { gic_spi(80), gic_spi(80),
|
|
|
|
+ gic_spi(80), gic_spi(80) },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct platform_device scif8_device = {
|
|
|
|
+ .name = "sh-sci",
|
|
|
|
+ .id = 8,
|
|
|
|
+ .dev = {
|
|
|
|
+ .platform_data = &scif8_platform_data,
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct sh_timer_config cmt10_platform_data = {
|
|
|
|
+ .name = "CMT10",
|
|
|
|
+ .channel_offset = 0x10,
|
|
|
|
+ .timer_bit = 0,
|
|
|
|
+ .clockevent_rating = 125,
|
|
|
|
+ .clocksource_rating = 125,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct resource cmt10_resources[] = {
|
|
|
|
+ [0] = {
|
|
|
|
+ .name = "CMT10",
|
|
|
|
+ .start = 0xe6138010,
|
|
|
|
+ .end = 0xe613801b,
|
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
|
+ },
|
|
|
|
+ [1] = {
|
|
|
|
+ .start = gic_spi(65),
|
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct platform_device cmt10_device = {
|
|
|
|
+ .name = "sh_cmt",
|
|
|
|
+ .id = 10,
|
|
|
|
+ .dev = {
|
|
|
|
+ .platform_data = &cmt10_platform_data,
|
|
|
|
+ },
|
|
|
|
+ .resource = cmt10_resources,
|
|
|
|
+ .num_resources = ARRAY_SIZE(cmt10_resources),
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* TMU */
|
|
|
|
+static struct sh_timer_config tmu00_platform_data = {
|
|
|
|
+ .name = "TMU00",
|
|
|
|
+ .channel_offset = 0x4,
|
|
|
|
+ .timer_bit = 0,
|
|
|
|
+ .clockevent_rating = 200,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct resource tmu00_resources[] = {
|
|
|
|
+ [0] = {
|
|
|
|
+ .name = "TMU00",
|
|
|
|
+ .start = 0xfff60008,
|
|
|
|
+ .end = 0xfff60013,
|
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
|
+ },
|
|
|
|
+ [1] = {
|
|
|
|
+ .start = intcs_evt2irq(0x0e80), /* TMU0_TUNI00 */
|
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct platform_device tmu00_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] = {
|
|
|
|
+ .name = "TMU01",
|
|
|
|
+ .start = 0xfff60014,
|
|
|
|
+ .end = 0xfff6001f,
|
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
|
+ },
|
|
|
|
+ [1] = {
|
|
|
|
+ .start = intcs_evt2irq(0x0ea0), /* TMU0_TUNI01 */
|
|
|
|
+ .flags = IORESOURCE_IRQ,
|