|
@@ -126,37 +126,63 @@ static struct intc_vect vectors_irq[] __initdata = {
|
|
|
static DECLARE_INTC_DESC(intc_desc_irq, "sh7760-irq", vectors_irq, groups,
|
|
|
mask_registers, prio_registers, NULL);
|
|
|
|
|
|
-static struct plat_sci_port sci_platform_data[] = {
|
|
|
- {
|
|
|
- .mapbase = 0xfe600000,
|
|
|
- .flags = UPF_BOOT_AUTOCONF,
|
|
|
- .type = PORT_SCIF,
|
|
|
- .irqs = { 52, 53, 55, 54 },
|
|
|
- }, {
|
|
|
- .mapbase = 0xfe610000,
|
|
|
- .flags = UPF_BOOT_AUTOCONF,
|
|
|
- .type = PORT_SCIF,
|
|
|
- .irqs = { 72, 73, 75, 74 },
|
|
|
- }, {
|
|
|
- .mapbase = 0xfe620000,
|
|
|
- .flags = UPF_BOOT_AUTOCONF,
|
|
|
- .type = PORT_SCIF,
|
|
|
- .irqs = { 76, 77, 79, 78 },
|
|
|
- }, {
|
|
|
- .mapbase = 0xfe480000,
|
|
|
- .flags = UPF_BOOT_AUTOCONF,
|
|
|
- .type = PORT_SCI,
|
|
|
- .irqs = { 80, 81, 82, 0 },
|
|
|
- }, {
|
|
|
- .flags = 0,
|
|
|
- }
|
|
|
+static struct plat_sci_port scif0_platform_data = {
|
|
|
+ .mapbase = 0xfe600000,
|
|
|
+ .flags = UPF_BOOT_AUTOCONF,
|
|
|
+ .type = PORT_SCIF,
|
|
|
+ .irqs = { 52, 53, 55, 54 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device scif0_device = {
|
|
|
+ .name = "sh-sci",
|
|
|
+ .id = 0,
|
|
|
+ .dev = {
|
|
|
+ .platform_data = &scif0_platform_data,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct plat_sci_port scif1_platform_data = {
|
|
|
+ .mapbase = 0xfe610000,
|
|
|
+ .flags = UPF_BOOT_AUTOCONF,
|
|
|
+ .type = PORT_SCIF,
|
|
|
+ .irqs = { 72, 73, 75, 74 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device scif1_device = {
|
|
|
+ .name = "sh-sci",
|
|
|
+ .id = 1,
|
|
|
+ .dev = {
|
|
|
+ .platform_data = &scif1_platform_data,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct plat_sci_port scif2_platform_data = {
|
|
|
+ .mapbase = 0xfe620000,
|
|
|
+ .flags = UPF_BOOT_AUTOCONF,
|
|
|
+ .type = PORT_SCIF,
|
|
|
+ .irqs = { 76, 77, 79, 78 },
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device scif2_device = {
|
|
|
+ .name = "sh-sci",
|
|
|
+ .id = 2,
|
|
|
+ .dev = {
|
|
|
+ .platform_data = &scif2_platform_data,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct plat_sci_port scif3_platform_data = {
|
|
|
+ .mapbase = 0xfe480000,
|
|
|
+ .flags = UPF_BOOT_AUTOCONF,
|
|
|
+ .type = PORT_SCI,
|
|
|
+ .irqs = { 80, 81, 82, 0 },
|
|
|
};
|
|
|
|
|
|
-static struct platform_device sci_device = {
|
|
|
+static struct platform_device scif3_device = {
|
|
|
.name = "sh-sci",
|
|
|
- .id = -1,
|
|
|
+ .id = 3,
|
|
|
.dev = {
|
|
|
- .platform_data = sci_platform_data,
|
|
|
+ .platform_data = &scif3_platform_data,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -254,7 +280,10 @@ static struct platform_device tmu2_device = {
|
|
|
|
|
|
|
|
|
static struct platform_device *sh7760_devices[] __initdata = {
|
|
|
- &sci_device,
|
|
|
+ &scif0_device,
|
|
|
+ &scif1_device,
|
|
|
+ &scif2_device,
|
|
|
+ &scif3_device,
|
|
|
&tmu0_device,
|
|
|
&tmu1_device,
|
|
|
&tmu2_device,
|
|
@@ -268,6 +297,10 @@ static int __init sh7760_devices_setup(void)
|
|
|
arch_initcall(sh7760_devices_setup);
|
|
|
|
|
|
static struct platform_device *sh7760_early_devices[] __initdata = {
|
|
|
+ &scif0_device,
|
|
|
+ &scif1_device,
|
|
|
+ &scif2_device,
|
|
|
+ &scif3_device,
|
|
|
&tmu0_device,
|
|
|
&tmu1_device,
|
|
|
&tmu2_device,
|