Files
OpenCellular/util
Shawn Nematbakhsh ad8ce3f806 usb_pd: Add host command to limit external charger voltage / current
PD charger voltage + current can now be limited with
EC_CMD_EXTERNAL_POWER_LIMIT. The limit is automatically cleared when the
AP transitions out of S0 into S3 / suspend.

BUG=chrome-os-partner:43285
TEST=Manual on Samus w/ zinger.
- Plug zinger, verify charging at 20V/3A.
- `ectool extpwrlimit 3000 12000 --dev=1`, verify charging at 12V/3A
- `ectool extpwrlimit 1000 5000 --dev=1`, verify charging at 5V/1A
- Plug zinger into other port, verify still charging at 5V/1A
- `powerd_dbus_suspend`, verify charging at 20V/3A
- `chglim 2000 12000`, verify charging at 12V/2A
- `ectool extpwrlimit 0xffff 0xffff --dev=1`, verify charging at 20V/3A
- `chglim 1000 20000`, verify charging at 20V/1A
- `chglim`, verify charging at 20V/3A
BRANCH=ryu

Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: I6cd5377be91b3df75f99cb414fd3fa5a463b56cb
Reviewed-on: https://chromium-review.googlesource.com/293954
Reviewed-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
2015-08-22 01:37:38 +00:00
..
2015-06-18 19:07:00 +00:00
2015-07-25 01:22:32 +00:00
2015-06-18 19:07:00 +00:00
2015-04-17 01:47:34 +00:00
2013-07-01 16:14:16 -07:00
2015-06-18 19:07:00 +00:00
2015-07-25 01:22:32 +00:00
2015-07-25 01:22:32 +00:00
2012-11-01 14:09:34 -07:00
2015-07-16 05:15:34 +00:00
2014-02-17 17:35:43 +00:00
2015-06-18 19:07:00 +00:00
2014-01-15 04:52:54 +00:00
2015-04-24 05:07:45 +00:00