diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-02-03 11:13:41 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-02-04 11:29:35 -0500 |
commit | 773f206b2f3745bde8ee17ec0f884c19db3917a5 (patch) | |
tree | b8436ba31a3b2fa0bb9f09f538e8a8a98adef314 /arch/arm/mach-mx2/mach-pcm038.c | |
parent | eee7c497d250bbb2bfd0fdc2b41b9b6ff02148a2 (diff) |
i.MX27 pcm038: Add USB support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx2/mach-pcm038.c')
-rw-r--r-- | arch/arm/mach-mx2/mach-pcm038.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-mx2/mach-pcm038.c b/arch/arm/mach-mx2/mach-pcm038.c index e055d9dd6101..5a0169cff20f 100644 --- a/arch/arm/mach-mx2/mach-pcm038.c +++ b/arch/arm/mach-mx2/mach-pcm038.c | |||
@@ -40,6 +40,8 @@ | |||
40 | #include <mach/imx-uart.h> | 40 | #include <mach/imx-uart.h> |
41 | #include <mach/mxc_nand.h> | 41 | #include <mach/mxc_nand.h> |
42 | #include <mach/spi.h> | 42 | #include <mach/spi.h> |
43 | #include <mach/mxc_ehci.h> | ||
44 | #include <mach/ulpi.h> | ||
43 | 45 | ||
44 | #include "devices.h" | 46 | #include "devices.h" |
45 | 47 | ||
@@ -96,6 +98,19 @@ static int pcm038_pins[] = { | |||
96 | PC17_PF_SSI4_RXD, | 98 | PC17_PF_SSI4_RXD, |
97 | PC18_PF_SSI4_TXD, | 99 | PC18_PF_SSI4_TXD, |
98 | PC19_PF_SSI4_CLK, | 100 | PC19_PF_SSI4_CLK, |
101 | /* USB host */ | ||
102 | PA0_PF_USBH2_CLK, | ||
103 | PA1_PF_USBH2_DIR, | ||
104 | PA2_PF_USBH2_DATA7, | ||
105 | PA3_PF_USBH2_NXT, | ||
106 | PA4_PF_USBH2_STP, | ||
107 | PD19_AF_USBH2_DATA4, | ||
108 | PD20_AF_USBH2_DATA3, | ||
109 | PD21_AF_USBH2_DATA6, | ||
110 | PD22_AF_USBH2_DATA0, | ||
111 | PD23_AF_USBH2_DATA2, | ||
112 | PD24_AF_USBH2_DATA1, | ||
113 | PD26_AF_USBH2_DATA5, | ||
99 | }; | 114 | }; |
100 | 115 | ||
101 | /* | 116 | /* |
@@ -277,6 +292,11 @@ static struct spi_board_info pcm038_spi_board_info[] __initdata = { | |||
277 | } | 292 | } |
278 | }; | 293 | }; |
279 | 294 | ||
295 | static struct mxc_usbh_platform_data usbh2_pdata = { | ||
296 | .portsc = MXC_EHCI_MODE_ULPI, | ||
297 | .flags = MXC_EHCI_POWER_PINS_ENABLED | MXC_EHCI_INTERFACE_DIFF_UNI, | ||
298 | }; | ||
299 | |||
280 | static void __init pcm038_init(void) | 300 | static void __init pcm038_init(void) |
281 | { | 301 | { |
282 | mxc_gpio_setup_multiple_pins(pcm038_pins, ARRAY_SIZE(pcm038_pins), | 302 | mxc_gpio_setup_multiple_pins(pcm038_pins, ARRAY_SIZE(pcm038_pins), |
@@ -309,6 +329,8 @@ static void __init pcm038_init(void) | |||
309 | spi_register_board_info(pcm038_spi_board_info, | 329 | spi_register_board_info(pcm038_spi_board_info, |
310 | ARRAY_SIZE(pcm038_spi_board_info)); | 330 | ARRAY_SIZE(pcm038_spi_board_info)); |
311 | 331 | ||
332 | mxc_register_device(&mxc_usbh2, &usbh2_pdata); | ||
333 | |||
312 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 334 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
313 | 335 | ||
314 | #ifdef CONFIG_MACH_PCM970_BASEBOARD | 336 | #ifdef CONFIG_MACH_PCM970_BASEBOARD |