[ARM] tegra: board-stingray: Add USB2 (LTE DataCard connector)
authorBenoit Goby <benoit@android.com>
Fri, 3 Sep 2010 01:13:09 +0000 (18:13 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:51:04 +0000 (16:51 -0700)
Change-Id: I59c09898394ac72966fa2057eb69130f7439c2f6
Signed-off-by: Benoit Goby <benoit@android.com>
arch/arm/mach-tegra/board-stingray.c

index 6b632548728fed6549534a82e7d4b0b41022905e..efb34c9aeffc7f4bcd0dbcb9cc577ee47b7e4377 100644 (file)
@@ -406,6 +406,11 @@ static struct tegra_utmip_config host_phy_config[] = {
        },
 };
 
+static struct tegra_ulpi_config ulpi_phy_config = {
+       .reset_gpio = TEGRA_GPIO_PG2,
+       .clk = "clk_dev2",
+};
+
 /* bq24617 charger */
 static struct resource bq24617_resources[] = {
        [0] = {
@@ -739,9 +744,11 @@ static void stingray_usb_init(void)
        struct android_usb_platform_data *platform_data;
 
        tegra_udc_device.dev.platform_data = &tegra_udc_pdata;
+       tegra_ehci2_device.dev.platform_data = &ulpi_phy_config;
        tegra_ehci3_device.dev.platform_data = &host_phy_config[2];
 
        platform_device_register(&tegra_udc_device);
+       platform_device_register(&tegra_ehci2_device);
        platform_device_register(&tegra_ehci3_device);
 #ifdef CONFIG_USB_ANDROID_RNDIS
        src = usb_serial_num;
@@ -900,15 +907,6 @@ static void __init tegra_stingray_init(void)
        gpio_request(TEGRA_GPIO_PV4, "usb_data_en");
        gpio_direction_output(TEGRA_GPIO_PV4, 1);
 
-       /* ULPI_PHY_RESET_B (TEGRA_GPIO_PG2) can be initialized as
-          output low when the kernel boots.
-          FIXME: This will need to be evaluated for datacard scenarios
-          separately. */
-       tegra_gpio_enable(TEGRA_GPIO_PG2);
-       gpio_request(TEGRA_GPIO_PG2, "ulpi_phy_reset_b");
-       gpio_direction_output(TEGRA_GPIO_PG2, 0);
-       gpio_export(TEGRA_GPIO_PG2, false);
-
        /* USB_FORCEON_N (TEGRA_GPIO_PC5) should be forced high at boot
           and will be pulled low by the hardware on attach */
        tegra_gpio_enable(TEGRA_GPIO_PC5);