]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ARM: tegra: usb: add y cable support parameter
authorRakesh Bodla <rbodla@nvidia.com>
Wed, 5 Mar 2014 06:15:24 +0000 (11:45 +0530)
committerRakesh Babu Bodla <rbodla@nvidia.com>
Tue, 11 Mar 2014 10:37:21 +0000 (03:37 -0700)
Adding y cable support as platform parameter
and enabling it for loki.

Bug 1456628

Change-Id: I4572cadc6bed1bcdf994782bb1514ba3b79cb81f
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/377600
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
arch/arm/mach-tegra/board-loki.c
include/linux/platform_data/tegra_usb.h

index 98b87e8e939415c76add3a1ba428d1ea439e9015..687de9f23781963d8c2b21b60a35b090adbe9930 100644 (file)
@@ -489,6 +489,9 @@ static void loki_usb_init(void)
        tegra_ehci1_utmi_pdata.support_pmu_vbus = true;
        tegra_ehci1_utmi_pdata.vbus_extcon_dev_name = "palmas-extcon";
 
+       /* Enable Y-Cable support */
+       tegra_ehci1_utmi_pdata.u_data.host.support_y_cable = true;
+
        if (!(usb_port_owner_info & UTMI1_PORT_OWNER_XUSB)) {
                tegra_otg_device.dev.platform_data = &tegra_otg_pdata;
                platform_device_register(&tegra_otg_device);
index 838c56dc88fe059edb9eff2d74f7ff1e668d17bd..b53e4e361f3d751ad582de103c5520e7637a5912 100644 (file)
@@ -143,6 +143,7 @@ struct tegra_usb_host_mode_data {
        bool remote_wakeup_supported;
        bool power_off_on_suspend;
        bool turn_off_vbus_on_lp0;
+       bool support_y_cable;
 };
 
 /**