diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-03-10 08:53:29 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-03-10 08:53:29 -0500 |
commit | 3afdb0f3528991de0833224f2dba60dc061e01fa (patch) | |
tree | 0d9c7529c6cc2b41f0df778cc396edd74699721a /arch/arm/mach-mx5/board-cpuimx51.c | |
parent | 71d8c5b11e3b5936ae6c2e0b1dd6f5c78b305b65 (diff) | |
parent | f7fdaca910e6bc13659ecdffc28c97938b752e01 (diff) |
Merge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6 into devel-stable
Diffstat (limited to 'arch/arm/mach-mx5/board-cpuimx51.c')
-rw-r--r-- | arch/arm/mach-mx5/board-cpuimx51.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/arch/arm/mach-mx5/board-cpuimx51.c b/arch/arm/mach-mx5/board-cpuimx51.c index f8652ef25f85..d0296a94c475 100644 --- a/arch/arm/mach-mx5/board-cpuimx51.c +++ b/arch/arm/mach-mx5/board-cpuimx51.c | |||
@@ -60,7 +60,6 @@ | |||
60 | #define MX51_USB_PLL_DIV_19_2_MHZ 0x01 | 60 | #define MX51_USB_PLL_DIV_19_2_MHZ 0x01 |
61 | #define MX51_USB_PLL_DIV_24_MHZ 0x02 | 61 | #define MX51_USB_PLL_DIV_24_MHZ 0x02 |
62 | 62 | ||
63 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) | ||
64 | static struct plat_serial8250_port serial_platform_data[] = { | 63 | static struct plat_serial8250_port serial_platform_data[] = { |
65 | { | 64 | { |
66 | .mapbase = (unsigned long)(MX51_CS1_BASE_ADDR + 0x400000), | 65 | .mapbase = (unsigned long)(MX51_CS1_BASE_ADDR + 0x400000), |
@@ -105,12 +104,9 @@ static struct platform_device serial_device = { | |||
105 | .platform_data = serial_platform_data, | 104 | .platform_data = serial_platform_data, |
106 | }, | 105 | }, |
107 | }; | 106 | }; |
108 | #endif | ||
109 | 107 | ||
110 | static struct platform_device *devices[] __initdata = { | 108 | static struct platform_device *devices[] __initdata = { |
111 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) | ||
112 | &serial_device, | 109 | &serial_device, |
113 | #endif | ||
114 | }; | 110 | }; |
115 | 111 | ||
116 | static iomux_v3_cfg_t eukrea_cpuimx51_pads[] = { | 112 | static iomux_v3_cfg_t eukrea_cpuimx51_pads[] = { |
@@ -188,7 +184,10 @@ static int initialize_otg_port(struct platform_device *pdev) | |||
188 | v |= MX51_USB_PLL_DIV_19_2_MHZ; | 184 | v |= MX51_USB_PLL_DIV_19_2_MHZ; |
189 | __raw_writel(v, usbother_base + MXC_USB_PHY_CTR_FUNC2_OFFSET); | 185 | __raw_writel(v, usbother_base + MXC_USB_PHY_CTR_FUNC2_OFFSET); |
190 | iounmap(usb_base); | 186 | iounmap(usb_base); |
191 | return 0; | 187 | |
188 | mdelay(10); | ||
189 | |||
190 | return mx51_initialize_usb_hw(0, MXC_EHCI_INTERNAL_PHY); | ||
192 | } | 191 | } |
193 | 192 | ||
194 | static int initialize_usbh1_port(struct platform_device *pdev) | 193 | static int initialize_usbh1_port(struct platform_device *pdev) |
@@ -206,13 +205,16 @@ static int initialize_usbh1_port(struct platform_device *pdev) | |||
206 | v = __raw_readl(usbother_base + MX51_USB_CTRL_1_OFFSET); | 205 | v = __raw_readl(usbother_base + MX51_USB_CTRL_1_OFFSET); |
207 | __raw_writel(v | MX51_USB_CTRL_UH1_EXT_CLK_EN, usbother_base + MX51_USB_CTRL_1_OFFSET); | 206 | __raw_writel(v | MX51_USB_CTRL_UH1_EXT_CLK_EN, usbother_base + MX51_USB_CTRL_1_OFFSET); |
208 | iounmap(usb_base); | 207 | iounmap(usb_base); |
209 | return 0; | 208 | |
209 | mdelay(10); | ||
210 | |||
211 | return mx51_initialize_usb_hw(1, MXC_EHCI_POWER_PINS_ENABLED | | ||
212 | MXC_EHCI_ITC_NO_THRESHOLD); | ||
210 | } | 213 | } |
211 | 214 | ||
212 | static struct mxc_usbh_platform_data dr_utmi_config = { | 215 | static struct mxc_usbh_platform_data dr_utmi_config = { |
213 | .init = initialize_otg_port, | 216 | .init = initialize_otg_port, |
214 | .portsc = MXC_EHCI_UTMI_16BIT, | 217 | .portsc = MXC_EHCI_UTMI_16BIT, |
215 | .flags = MXC_EHCI_INTERNAL_PHY, | ||
216 | }; | 218 | }; |
217 | 219 | ||
218 | static struct fsl_usb2_platform_data usb_pdata = { | 220 | static struct fsl_usb2_platform_data usb_pdata = { |
@@ -223,7 +225,6 @@ static struct fsl_usb2_platform_data usb_pdata = { | |||
223 | static struct mxc_usbh_platform_data usbh1_config = { | 225 | static struct mxc_usbh_platform_data usbh1_config = { |
224 | .init = initialize_usbh1_port, | 226 | .init = initialize_usbh1_port, |
225 | .portsc = MXC_EHCI_MODE_ULPI, | 227 | .portsc = MXC_EHCI_MODE_ULPI, |
226 | .flags = (MXC_EHCI_POWER_PINS_ENABLED | MXC_EHCI_ITC_NO_THRESHOLD), | ||
227 | }; | 228 | }; |
228 | 229 | ||
229 | static int otg_mode_host; | 230 | static int otg_mode_host; |
@@ -298,7 +299,8 @@ MACHINE_START(EUKREA_CPUIMX51, "Eukrea CPUIMX51 Module") | |||
298 | /* Maintainer: Eric Bénard <eric@eukrea.com> */ | 299 | /* Maintainer: Eric Bénard <eric@eukrea.com> */ |
299 | .boot_params = MX51_PHYS_OFFSET + 0x100, | 300 | .boot_params = MX51_PHYS_OFFSET + 0x100, |
300 | .map_io = mx51_map_io, | 301 | .map_io = mx51_map_io, |
302 | .init_early = imx51_init_early, | ||
301 | .init_irq = mx51_init_irq, | 303 | .init_irq = mx51_init_irq, |
302 | .init_machine = eukrea_cpuimx51_init, | ||
303 | .timer = &mxc_timer, | 304 | .timer = &mxc_timer, |
305 | .init_machine = eukrea_cpuimx51_init, | ||
304 | MACHINE_END | 306 | MACHINE_END |