ARM: tegra: loki: Enable VBUS detection via PMIC
Pradeep Goudagunta [Mon, 16 Sep 2013 08:50:08 +0000 (13:50 +0530)]
-Enable VBUS detection through PMIC.
-Remove stale init of ID for E1733/E1735 module inits.

Bug 1355688

Change-Id: Ia35401bdc832babea75e80af061d7778d8ba631b
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/275053
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

arch/arm/mach-tegra/board-loki.c

index 1a2b43b..d6d5c1f 100644 (file)
@@ -470,22 +470,11 @@ static void loki_usb_init(void)
 {
        int usb_port_owner_info = tegra_get_usb_port_owner_info();
        int modem_id = tegra_get_modem_id();
-       struct board_info bi;
 
-       tegra_get_pmu_board_info(&bi);
-
-       switch (bi.board_id) {
-       case BOARD_E1733:
-               /* Host cable is detected through USB ID */
-               tegra_udc_pdata.id_det_type = TEGRA_USB_ID;
-               tegra_ehci1_utmi_pdata.id_det_type = TEGRA_USB_ID;
-               break;
-       case BOARD_E1735:
-               /* Host cable is detected through PMU Interrupt */
-               tegra_udc_pdata.id_det_type = TEGRA_USB_PMU_ID;
-               tegra_ehci1_utmi_pdata.id_det_type = TEGRA_USB_PMU_ID;
-               tegra_otg_pdata.id_extcon_dev_name = "palmas-extcon";
-       }
+       /* Device cable is detected through PMU Interrupt */
+       tegra_udc_pdata.support_pmu_vbus = true;
+       tegra_ehci1_utmi_pdata.support_pmu_vbus = true;
+       tegra_otg_pdata.vbus_extcon_dev_name = "palmas-extcon";
 
        if (!(usb_port_owner_info & UTMI1_PORT_OWNER_XUSB)) {
                tegra_otg_device.dev.platform_data = &tegra_otg_pdata;