summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-colibri_t20.c
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2012-09-10 14:28:32 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2012-09-10 14:28:32 +0200
commitc6c1f7a2c194f1a2291a15c6691c0d6785f8976e (patch)
tree32258b40541e099cf0b228b934f65dec297f8777 /arch/arm/mach-tegra/board-colibri_t20.c
parenta62157ec82aa7181d0070cbc26af4353fa129d5f (diff)
tegra: colibri_t20: USB clean-up
Re-enable USB Ethernet gadget. Clean-up USB platform data.
Diffstat (limited to 'arch/arm/mach-tegra/board-colibri_t20.c')
-rw-r--r--arch/arm/mach-tegra/board-colibri_t20.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/arch/arm/mach-tegra/board-colibri_t20.c b/arch/arm/mach-tegra/board-colibri_t20.c
index 9f7a2c66303a..942e9bbdb91c 100644
--- a/arch/arm/mach-tegra/board-colibri_t20.c
+++ b/arch/arm/mach-tegra/board-colibri_t20.c
@@ -667,7 +667,6 @@ static struct usb_phy_plat_data tegra_usb_phy_pdata[] = {
[1] = {
.instance = 1,
.vbus_gpio = -1,
-// .vbus_gpio = TEGRA_GPIO_PBB1, /* ETHERNET_VBUS_GPIO */
},
[2] = {
.instance = 2,
@@ -678,21 +677,24 @@ static struct usb_phy_plat_data tegra_usb_phy_pdata[] = {
static struct tegra_ehci_platform_data tegra_ehci_pdata[] = {
[0] = {
+ .default_enable = true,
+ .operating_mode = TEGRA_USB_HOST,
.phy_config = &utmi_phy_config[0],
- .operating_mode = TEGRA_USB_OTG,
.power_down_on_bus_suspend = 0, /* otherwise might prevent enumeration */
},
[1] = {
- .phy_config = &colibri_t20_ehci2_ulpi_phy_config,
+ .default_enable = true,
.operating_mode = TEGRA_USB_HOST,
- .power_down_on_bus_suspend = 1,
+ .phy_config = &colibri_t20_ehci2_ulpi_phy_config,
.phy_type = TEGRA_USB_PHY_TYPE_LINK_ULPI,
+ .power_down_on_bus_suspend = 1,
},
[2] = {
- .phy_config = &utmi_phy_config[1],
+ .default_enable = true,
+ .hotplug = 1,
.operating_mode = TEGRA_USB_HOST,
+ .phy_config = &utmi_phy_config[1],
.power_down_on_bus_suspend = 0, /* otherwise might prevent enumeration */
- .hotplug = 1,
},
};
@@ -733,7 +735,7 @@ static struct platform_device *tegra_usb_otg_host_register(void)
error_add:
kfree(platform_data);
error:
- pr_err("%s: failed to add the host contoller device\n", __func__);
+ pr_err("%s: failed to add the host controller device\n", __func__);
platform_device_put(pdev);
return NULL;
}