arm: tegra12: jetson: disable usb charging detection
Roger Hsieh [Thu, 16 Feb 2017 10:00:32 +0000 (18:00 +0800)]
Jetson TK1 doesn't support usb charging but the detection is still
running. Disable it to avoid unexpected behavior.

Bug 1861049

Change-Id: I13425d69e190a75084486ff1fc9afeb8aa7acb60
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/1308015
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

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

index 46c4d3f..d6423a3 100644 (file)
@@ -660,6 +660,11 @@ static void ardbeg_usb_init(void)
                        tegra_ehci1_utmi_pdata.id_det_type = TEGRA_USB_PMU_ID;
                }
                tegra_ehci1_utmi_pdata.id_extcon_dev_name = "as3722-extcon";
+
+               /* Disable Charging detection on Jetson */
+               if (board_info.board_id == BOARD_PM375)
+                       tegra_udc_pdata.u_data.dev.charging_supported = false;
+
        } else {
                /* Ardbeg and TN8 */