diff options
Diffstat (limited to 'arch/arm/mach-mx25')
-rw-r--r-- | arch/arm/mach-mx25/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm/mach-mx25/devices-imx25.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-mx25/devices.c | 38 | ||||
-rw-r--r-- | arch/arm/mach-mx25/devices.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx25/eukrea_mbimxsd-baseboard.c | 6 |
5 files changed, 9 insertions, 45 deletions
diff --git a/arch/arm/mach-mx25/Kconfig b/arch/arm/mach-mx25/Kconfig index c71a7bc19284..326bb648f466 100644 --- a/arch/arm/mach-mx25/Kconfig +++ b/arch/arm/mach-mx25/Kconfig | |||
@@ -20,8 +20,8 @@ choice | |||
20 | default MACH_EUKREA_MBIMXSD25_BASEBOARD | 20 | default MACH_EUKREA_MBIMXSD25_BASEBOARD |
21 | 21 | ||
22 | config MACH_EUKREA_MBIMXSD25_BASEBOARD | 22 | config MACH_EUKREA_MBIMXSD25_BASEBOARD |
23 | prompt "Eukrea MBIMXSD development board" | 23 | bool "Eukrea MBIMXSD development board" |
24 | bool | 24 | select IMX_HAVE_PLATFORM_IMX_SSI |
25 | help | 25 | help |
26 | This adds board specific devices that can be found on Eukrea's | 26 | This adds board specific devices that can be found on Eukrea's |
27 | MBIMXSD evaluation board. | 27 | MBIMXSD evaluation board. |
diff --git a/arch/arm/mach-mx25/devices-imx25.h b/arch/arm/mach-mx25/devices-imx25.h index 439400b5d275..bf93facef3d0 100644 --- a/arch/arm/mach-mx25/devices-imx25.h +++ b/arch/arm/mach-mx25/devices-imx25.h | |||
@@ -21,6 +21,10 @@ | |||
21 | #define imx25_add_imx_i2c2(pdata) \ | 21 | #define imx25_add_imx_i2c2(pdata) \ |
22 | imx_add_imx_i2c(2, MX25_I2C3_BASE_ADDR, SZ_16K, MX25_INT_I2C3, pdata) | 22 | imx_add_imx_i2c(2, MX25_I2C3_BASE_ADDR, SZ_16K, MX25_INT_I2C3, pdata) |
23 | 23 | ||
24 | extern const struct imx_imx_ssi_data imx25_imx_ssi_data[] __initconst; | ||
25 | #define imx25_add_imx_ssi(id, pdata) \ | ||
26 | imx_add_imx_ssi(&imx25_imx_ssi_data[id], pdata) | ||
27 | |||
24 | extern const struct imx_imx_uart_1irq_data imx25_imx_uart_data[] __initconst; | 28 | extern const struct imx_imx_uart_1irq_data imx25_imx_uart_data[] __initconst; |
25 | #define imx25_add_imx_uart(id, pdata) \ | 29 | #define imx25_add_imx_uart(id, pdata) \ |
26 | imx_add_imx_uart_1irq(&imx25_imx_uart_data[id], pdata) | 30 | imx_add_imx_uart_1irq(&imx25_imx_uart_data[id], pdata) |
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c index 3468eb15b236..bc19e8cc26df 100644 --- a/arch/arm/mach-mx25/devices.c +++ b/arch/arm/mach-mx25/devices.c | |||
@@ -305,44 +305,6 @@ struct platform_device mx25_kpp_device = { | |||
305 | .resource = mx25_kpp_resources, | 305 | .resource = mx25_kpp_resources, |
306 | }; | 306 | }; |
307 | 307 | ||
308 | static struct resource imx_ssi_resources0[] = { | ||
309 | { | ||
310 | .start = MX25_SSI1_BASE_ADDR, | ||
311 | .end = MX25_SSI1_BASE_ADDR + 0x3fff, | ||
312 | .flags = IORESOURCE_MEM, | ||
313 | }, { | ||
314 | .start = MX25_INT_SSI1, | ||
315 | .end = MX25_INT_SSI1, | ||
316 | .flags = IORESOURCE_IRQ, | ||
317 | }, | ||
318 | }; | ||
319 | |||
320 | static struct resource imx_ssi_resources1[] = { | ||
321 | { | ||
322 | .start = MX25_SSI2_BASE_ADDR, | ||
323 | .end = MX25_SSI2_BASE_ADDR + 0x3fff, | ||
324 | .flags = IORESOURCE_MEM | ||
325 | }, { | ||
326 | .start = MX25_INT_SSI2, | ||
327 | .end = MX25_INT_SSI2, | ||
328 | .flags = IORESOURCE_IRQ, | ||
329 | }, | ||
330 | }; | ||
331 | |||
332 | struct platform_device imx_ssi_device0 = { | ||
333 | .name = "imx-ssi", | ||
334 | .id = 0, | ||
335 | .num_resources = ARRAY_SIZE(imx_ssi_resources0), | ||
336 | .resource = imx_ssi_resources0, | ||
337 | }; | ||
338 | |||
339 | struct platform_device imx_ssi_device1 = { | ||
340 | .name = "imx-ssi", | ||
341 | .id = 1, | ||
342 | .num_resources = ARRAY_SIZE(imx_ssi_resources1), | ||
343 | .resource = imx_ssi_resources1, | ||
344 | }; | ||
345 | |||
346 | static struct resource mx25_csi_resources[] = { | 308 | static struct resource mx25_csi_resources[] = { |
347 | { | 309 | { |
348 | .start = MX25_CSI_BASE_ADDR, | 310 | .start = MX25_CSI_BASE_ADDR, |
diff --git a/arch/arm/mach-mx25/devices.h b/arch/arm/mach-mx25/devices.h index 4aceb68e35a7..f6e6d3a5f640 100644 --- a/arch/arm/mach-mx25/devices.h +++ b/arch/arm/mach-mx25/devices.h | |||
@@ -11,6 +11,4 @@ extern struct platform_device mx25_rtc_device; | |||
11 | extern struct platform_device mx25_fb_device; | 11 | extern struct platform_device mx25_fb_device; |
12 | extern struct platform_device mxc_wdt; | 12 | extern struct platform_device mxc_wdt; |
13 | extern struct platform_device mx25_kpp_device; | 13 | extern struct platform_device mx25_kpp_device; |
14 | extern struct platform_device imx_ssi_device0; | ||
15 | extern struct platform_device imx_ssi_device1; | ||
16 | extern struct platform_device mx25_csi_device; | 14 | extern struct platform_device mx25_csi_device; |
diff --git a/arch/arm/mach-mx25/eukrea_mbimxsd-baseboard.c b/arch/arm/mach-mx25/eukrea_mbimxsd-baseboard.c index 4aaadc753d3e..2062dd930955 100644 --- a/arch/arm/mach-mx25/eukrea_mbimxsd-baseboard.c +++ b/arch/arm/mach-mx25/eukrea_mbimxsd-baseboard.c | |||
@@ -34,7 +34,6 @@ | |||
34 | #include <mach/mx25.h> | 34 | #include <mach/mx25.h> |
35 | #include <mach/imx-uart.h> | 35 | #include <mach/imx-uart.h> |
36 | #include <mach/imxfb.h> | 36 | #include <mach/imxfb.h> |
37 | #include <mach/ssi.h> | ||
38 | #include <mach/audmux.h> | 37 | #include <mach/audmux.h> |
39 | 38 | ||
40 | #include "devices-imx25.h" | 39 | #include "devices-imx25.h" |
@@ -205,7 +204,8 @@ static struct i2c_board_info eukrea_mbimxsd_i2c_devices[] = { | |||
205 | }, | 204 | }, |
206 | }; | 205 | }; |
207 | 206 | ||
208 | struct imx_ssi_platform_data eukrea_mbimxsd_ssi_pdata = { | 207 | static const |
208 | struct imx_ssi_platform_data eukrea_mbimxsd_ssi_pdata __initconst = { | ||
209 | .flags = IMX_SSI_SYN | IMX_SSI_NET | IMX_SSI_USE_I2S_SLAVE, | 209 | .flags = IMX_SSI_SYN | IMX_SSI_NET | IMX_SSI_USE_I2S_SLAVE, |
210 | }; | 210 | }; |
211 | 211 | ||
@@ -239,7 +239,7 @@ void __init eukrea_mbimxsd25_baseboard_init(void) | |||
239 | 239 | ||
240 | imx25_add_imx_uart1(&uart_pdata); | 240 | imx25_add_imx_uart1(&uart_pdata); |
241 | mxc_register_device(&mx25_fb_device, &eukrea_mximxsd_fb_pdata); | 241 | mxc_register_device(&mx25_fb_device, &eukrea_mximxsd_fb_pdata); |
242 | mxc_register_device(&imx_ssi_device0, &eukrea_mbimxsd_ssi_pdata); | 242 | imx25_add_imx_ssi(0, &eukrea_mbimxsd_ssi_pdata); |
243 | 243 | ||
244 | gpio_request(GPIO_LED1, "LED1"); | 244 | gpio_request(GPIO_LED1, "LED1"); |
245 | gpio_direction_output(GPIO_LED1, 1); | 245 | gpio_direction_output(GPIO_LED1, 1); |