ARM: tegra: pm375: disable usb device mode
Preetham Chandru R [Tue, 15 Apr 2014 10:03:45 +0000 (15:03 +0530)]
Disable usb device mode for pm375 rev A-D

Bug 1495952

Change-Id: I553d3c05f9a8421ff4900999d9d6e5c21dc5e596
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/396368
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

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

index 82257e3..2b7e726 100644 (file)
@@ -728,8 +728,15 @@ static void ardbeg_usb_init(void)
                        board_info.board_id == BOARD_PM363) {
                /* Laguna */
                /* Host cable is detected through AMS PMU Interrupt */
-               tegra_udc_pdata.id_det_type = TEGRA_USB_PMU_ID;
-               tegra_ehci1_utmi_pdata.id_det_type = TEGRA_USB_PMU_ID;
+               if (board_info.major_revision >= 'A' &&
+                       board_info.major_revision <= 'D') {
+                       tegra_udc_pdata.id_det_type = TEGRA_USB_VIRTUAL_ID;
+                       tegra_ehci1_utmi_pdata.id_det_type =
+                                               TEGRA_USB_VIRTUAL_ID;
+               } else {
+                       tegra_udc_pdata.id_det_type = TEGRA_USB_PMU_ID;
+                       tegra_ehci1_utmi_pdata.id_det_type = TEGRA_USB_PMU_ID;
+               }
                tegra_ehci1_utmi_pdata.id_extcon_dev_name = "as3722-extcon";
        } else {
                /* Ardbeg */