diff options
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/setup-sh7763.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7763.c | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7763.c b/arch/sh/kernel/cpu/sh4a/setup-sh7763.c index 1686acaaf45a..5eebbd7f4c21 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7763.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7763.c | |||
@@ -19,54 +19,66 @@ | |||
19 | #include <linux/usb/ohci_pdriver.h> | 19 | #include <linux/usb/ohci_pdriver.h> |
20 | 20 | ||
21 | static struct plat_sci_port scif0_platform_data = { | 21 | static struct plat_sci_port scif0_platform_data = { |
22 | .mapbase = 0xffe00000, | ||
23 | .flags = UPF_BOOT_AUTOCONF, | 22 | .flags = UPF_BOOT_AUTOCONF, |
24 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 23 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
25 | .scbrr_algo_id = SCBRR_ALGO_2, | ||
26 | .type = PORT_SCIF, | 24 | .type = PORT_SCIF, |
27 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x700)), | ||
28 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, | 25 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, |
29 | }; | 26 | }; |
30 | 27 | ||
28 | static struct resource scif0_resources[] = { | ||
29 | DEFINE_RES_MEM(0xffe00000, 0x100), | ||
30 | DEFINE_RES_IRQ(evt2irq(0x700)), | ||
31 | }; | ||
32 | |||
31 | static struct platform_device scif0_device = { | 33 | static struct platform_device scif0_device = { |
32 | .name = "sh-sci", | 34 | .name = "sh-sci", |
33 | .id = 0, | 35 | .id = 0, |
36 | .resource = scif0_resources, | ||
37 | .num_resources = ARRAY_SIZE(scif0_resources), | ||
34 | .dev = { | 38 | .dev = { |
35 | .platform_data = &scif0_platform_data, | 39 | .platform_data = &scif0_platform_data, |
36 | }, | 40 | }, |
37 | }; | 41 | }; |
38 | 42 | ||
39 | static struct plat_sci_port scif1_platform_data = { | 43 | static struct plat_sci_port scif1_platform_data = { |
40 | .mapbase = 0xffe08000, | ||
41 | .flags = UPF_BOOT_AUTOCONF, | 44 | .flags = UPF_BOOT_AUTOCONF, |
42 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 45 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
43 | .scbrr_algo_id = SCBRR_ALGO_2, | ||
44 | .type = PORT_SCIF, | 46 | .type = PORT_SCIF, |
45 | .irqs = SCIx_IRQ_MUXED(evt2irq(0xb80)), | ||
46 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, | 47 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, |
47 | }; | 48 | }; |
48 | 49 | ||
50 | static struct resource scif1_resources[] = { | ||
51 | DEFINE_RES_MEM(0xffe08000, 0x100), | ||
52 | DEFINE_RES_IRQ(evt2irq(0xb80)), | ||
53 | }; | ||
54 | |||
49 | static struct platform_device scif1_device = { | 55 | static struct platform_device scif1_device = { |
50 | .name = "sh-sci", | 56 | .name = "sh-sci", |
51 | .id = 1, | 57 | .id = 1, |
58 | .resource = scif1_resources, | ||
59 | .num_resources = ARRAY_SIZE(scif1_resources), | ||
52 | .dev = { | 60 | .dev = { |
53 | .platform_data = &scif1_platform_data, | 61 | .platform_data = &scif1_platform_data, |
54 | }, | 62 | }, |
55 | }; | 63 | }; |
56 | 64 | ||
57 | static struct plat_sci_port scif2_platform_data = { | 65 | static struct plat_sci_port scif2_platform_data = { |
58 | .mapbase = 0xffe10000, | ||
59 | .flags = UPF_BOOT_AUTOCONF, | 66 | .flags = UPF_BOOT_AUTOCONF, |
60 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 67 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
61 | .scbrr_algo_id = SCBRR_ALGO_2, | ||
62 | .type = PORT_SCIF, | 68 | .type = PORT_SCIF, |
63 | .irqs = SCIx_IRQ_MUXED(evt2irq(0xf00)), | ||
64 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, | 69 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, |
65 | }; | 70 | }; |
66 | 71 | ||
72 | static struct resource scif2_resources[] = { | ||
73 | DEFINE_RES_MEM(0xffe10000, 0x100), | ||
74 | DEFINE_RES_IRQ(evt2irq(0xf00)), | ||
75 | }; | ||
76 | |||
67 | static struct platform_device scif2_device = { | 77 | static struct platform_device scif2_device = { |
68 | .name = "sh-sci", | 78 | .name = "sh-sci", |
69 | .id = 2, | 79 | .id = 2, |
80 | .resource = scif2_resources, | ||
81 | .num_resources = ARRAY_SIZE(scif2_resources), | ||
70 | .dev = { | 82 | .dev = { |
71 | .platform_data = &scif2_platform_data, | 83 | .platform_data = &scif2_platform_data, |
72 | }, | 84 | }, |