diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2020-11-04 10:23:14 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-24 16:22:55 +0000 |
commit | faa4aa99fc342e28f280163290ec8e1ca6522f62 (patch) | |
tree | 172848fdb942223f0a29b6a45d77e4f0564f8f52 /common/build.mk | |
parent | ea6413290f1b4488fa2f2c7dfa303e19ce6f8bfd (diff) | |
download | chrome-ec-faa4aa99fc342e28f280163290ec8e1ca6522f62.tar.gz |
PCHG: Add peripheral charge manager
Peripheral charge manager communicates with peripheral charge chips
to charge batteries of peripheral devices.
Tested using Coachz proto and a listener evaluation board from NXP demo
kit as follows:
1. Attach device then battery percentage is reported periodically.
2. Detach device then re-attach device to stop and resume charging.
3. Disable port by 'pchg 0 disable' to stop charging.
4. Enable disabled port by 'pchg 0 enable' to resume charging while
device is in proximity.
5. When port is disabled, a device isn't detected or charged.
BUG=b:173235954
BRANCH=Trogdor
TEST=See the description above.
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Change-Id: I0c2b583e5f7736b26ec7d1fb9cd9b6c59c7e8177
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2538536
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/build.mk')
-rw-r--r-- | common/build.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/build.mk b/common/build.mk index 839207a1a8..ab43c992e0 100644 --- a/common/build.mk +++ b/common/build.mk @@ -110,6 +110,7 @@ common-$(CONFIG_OCPC)+=ocpc.o common-$(CONFIG_ONEWIRE)+=onewire.o common-$(CONFIG_ORIENTATION_SENSOR)+=motion_orientation.o common-$(CONFIG_PECI_COMMON)+=peci.o +common-$(CONFIG_PERIPHERAL_CHARGER)+=peripheral_charger.o common-$(CONFIG_POWER_BUTTON)+=power_button.o common-$(CONFIG_POWER_BUTTON_X86)+=power_button_x86.o common-$(CONFIG_PSTORE)+=pstore_commands.o |