turbo charger type-c
event
Change-Id: I302816f48b55abe87a7fb69a1dfb9041ea9957c9
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/
1320067
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
if(battery->cable_type == POWER_SUPPLY_TYPE_HV_MAINS ||
battery->cable_type == POWER_SUPPLY_TYPE_USB_PD ||
- battery->cable_type == POWER_SUPPLY_TYPE_PREPARE_TA )
+ battery->cable_type == POWER_SUPPLY_TYPE_PREPARE_TA ||
+ ((battery->rp_attach)&&(battery->rp_input_current == RP_CURRENT3)) )
battery->charger_rate = POWER_SUPPLY_CHARGE_RATE_TURBO;
else
battery->charger_rate = POWER_SUPPLY_CHARGE_RATE_NORMAL;