Files
OpenCellular/include
Vijay Hiremath f66113247a charge_state_v2: Limit i/p current to meet allowed MAX i/p system power
If battery is not present, input current is set to PD_MAX_CURRENT_MA.
If the input power set is greater than the maximum allowed system power,
system might get damaged. Hence, limit the input current to meet maximum
allowed input system power.

BUG=chrome-os-partner:58498
BRANCH=none
TEST=Manually tested on Reef. Removed the battery & using 'charger'
     console command observed the following.
     With Zinger charger at 20V - Input current is set to 2.25A
     With Type-C & other chargers - Input current is set to 3A

Change-Id: Ife8686f322e095aa74b740a7c469bfe87107fb9a
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/397865
Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
2016-12-05 16:43:00 -08:00
..
2016-05-26 16:17:26 -07:00
2016-11-15 17:41:53 -08:00
2015-11-08 07:59:40 -08:00
2016-04-27 14:04:07 -07:00
2016-09-07 14:01:18 -07:00
2016-11-08 17:11:28 -08:00
2015-10-07 17:51:36 -07:00
2016-07-29 10:51:22 -07:00
2016-11-15 17:41:53 -08:00
2015-12-21 14:58:54 -08:00
2016-11-28 20:55:02 -08:00
2016-11-08 17:11:28 -08:00
2016-07-11 21:27:46 -07:00
2015-09-16 14:49:46 -07:00
2016-11-02 17:39:56 -07:00