diff options
author | Marco Chen <marcochen@google.com> | 2019-05-21 21:16:45 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-05-24 21:14:00 -0700 |
commit | 65e137d416970043463d00905f96f7590e847fbe (patch) | |
tree | 0704cf8be3192a0ea0ef8efe6618242d59a5ba7b /common/usbc_ppc.c | |
parent | 583f6db2d7c22c402c260531c1834c9db39d974a (diff) | |
download | chrome-ec-65e137d416970043463d00905f96f7590e847fbe.tar.gz |
usb_port_power_smart: support a new usb_charge_mode - USB_CHARGE_MODE_DEFAULT.
OS can leverage `ectool usbchargemode` to control the usb_charge_mode
in the EC. In this case, we might want to set mode back to the default
one defined in the config of board level therefore the new
usb_charge_mode is added for this purpose.
BUG=b:130767435
BRANCH=octopus
TEST=1. make -j buildall
2. ectool usbchargemode 0 0x5 0
3. usb charging mode is set to CDP in Octopus board
Change-Id: Ib7397993fc49e6c744dc55b9adace95dd6b8bd3a
Signed-off-by: Marco Chen <marcochen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1621452
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'common/usbc_ppc.c')
0 files changed, 0 insertions, 0 deletions