diff options
Diffstat (limited to 'arch/sh/boards/mach-se/7343/setup.c')
-rw-r--r-- | arch/sh/boards/mach-se/7343/setup.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/arch/sh/boards/mach-se/7343/setup.c b/arch/sh/boards/mach-se/7343/setup.c index 4de56f35f419..292cc47d853f 100644 --- a/arch/sh/boards/mach-se/7343/setup.c +++ b/arch/sh/boards/mach-se/7343/setup.c | |||
@@ -82,7 +82,6 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
82 | .mapbase = 0x16000000, | 82 | .mapbase = 0x16000000, |
83 | .regshift = 1, | 83 | .regshift = 1, |
84 | .flags = ST16C2550C_FLAGS, | 84 | .flags = ST16C2550C_FLAGS, |
85 | .irq = UARTA_IRQ, | ||
86 | .uartclk = 7372800, | 85 | .uartclk = 7372800, |
87 | }, | 86 | }, |
88 | [1] = { | 87 | [1] = { |
@@ -90,7 +89,6 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
90 | .mapbase = 0x17000000, | 89 | .mapbase = 0x17000000, |
91 | .regshift = 1, | 90 | .regshift = 1, |
92 | .flags = ST16C2550C_FLAGS, | 91 | .flags = ST16C2550C_FLAGS, |
93 | .irq = UARTB_IRQ, | ||
94 | .uartclk = 7372800, | 92 | .uartclk = 7372800, |
95 | }, | 93 | }, |
96 | { }, | 94 | { }, |
@@ -121,7 +119,7 @@ static struct resource usb_resources[] = { | |||
121 | .flags = IORESOURCE_MEM, | 119 | .flags = IORESOURCE_MEM, |
122 | }, | 120 | }, |
123 | [2] = { | 121 | [2] = { |
124 | .start = USB_IRQ, | 122 | /* Filled in later */ |
125 | .flags = IORESOURCE_IRQ, | 123 | .flags = IORESOURCE_IRQ, |
126 | }, | 124 | }, |
127 | }; | 125 | }; |
@@ -138,8 +136,8 @@ static struct isp116x_platform_data usb_platform_data = { | |||
138 | static struct platform_device usb_device = { | 136 | static struct platform_device usb_device = { |
139 | .name = "isp116x-hcd", | 137 | .name = "isp116x-hcd", |
140 | .id = -1, | 138 | .id = -1, |
141 | .num_resources = ARRAY_SIZE(usb_resources), | 139 | .num_resources = ARRAY_SIZE(usb_resources), |
142 | .resource = usb_resources, | 140 | .resource = usb_resources, |
143 | .dev = { | 141 | .dev = { |
144 | .platform_data = &usb_platform_data, | 142 | .platform_data = &usb_platform_data, |
145 | }, | 143 | }, |
@@ -155,6 +153,13 @@ static struct platform_device *sh7343se_platform_devices[] __initdata = { | |||
155 | 153 | ||
156 | static int __init sh7343se_devices_setup(void) | 154 | static int __init sh7343se_devices_setup(void) |
157 | { | 155 | { |
156 | /* Wire-up dynamic vectors */ | ||
157 | serial_platform_data[0].irq = se7343_fpga_irq[SE7343_FPGA_IRQ_UARTA]; | ||
158 | serial_platform_data[1].irq = se7343_fpga_irq[SE7343_FPGA_IRQ_UARTB]; | ||
159 | |||
160 | usb_resources[2].start = usb_resources[2].end = | ||
161 | se7343_fpga_irq[SE7343_FPGA_IRQ_USB]; | ||
162 | |||
158 | return platform_add_devices(sh7343se_platform_devices, | 163 | return platform_add_devices(sh7343se_platform_devices, |
159 | ARRAY_SIZE(sh7343se_platform_devices)); | 164 | ARRAY_SIZE(sh7343se_platform_devices)); |
160 | } | 165 | } |
@@ -179,6 +184,5 @@ static void __init sh7343se_setup(char **cmdline_p) | |||
179 | static struct sh_machine_vector mv_7343se __initmv = { | 184 | static struct sh_machine_vector mv_7343se __initmv = { |
180 | .mv_name = "SolutionEngine 7343", | 185 | .mv_name = "SolutionEngine 7343", |
181 | .mv_setup = sh7343se_setup, | 186 | .mv_setup = sh7343se_setup, |
182 | .mv_nr_irqs = SE7343_FPGA_IRQ_BASE + SE7343_FPGA_IRQ_NR, | ||
183 | .mv_init_irq = init_7343se_IRQ, | 187 | .mv_init_irq = init_7343se_IRQ, |
184 | }; | 188 | }; |