target: msm8996: Enable charging only for MTP
Charger is supported only on MTP platform, enable charging only if the
platform type is MTP.
Change-Id: Ie1aa86c307cc79be112b40c3788d9bae9574395b
diff --git a/target/msm8996/init.c b/target/msm8996/init.c
index 488ed47..a627874 100644
--- a/target/msm8996/init.c
+++ b/target/msm8996/init.c
@@ -151,7 +151,8 @@
}
#if ENABLE_WBC
- pm_appsbl_set_dcin_suspend(1);
+ if (board_hardware_id() == HW_PLATFORM_MTP)
+ pm_appsbl_set_dcin_suspend(1);
#endif
/* Tear down glink channels */
@@ -253,7 +254,8 @@
* Charging should happen as early as possible, any other driver
* initialization before this should consider the power impact
*/
- pm_appsbl_chg_check_weak_battery_status(1);
+ if (board_hardware_id() == HW_PLATFORM_MTP)
+ pm_appsbl_chg_check_weak_battery_status(1);
#endif
target_keystatus();