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 /include/console_channel.inc | |
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 'include/console_channel.inc')
-rw-r--r-- | include/console_channel.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/console_channel.inc b/include/console_channel.inc index 8d7cd66a01..01658a0eaa 100644 --- a/include/console_channel.inc +++ b/include/console_channel.inc @@ -75,6 +75,9 @@ CONSOLE_CHANNEL(CC_PORT80, "port80") #ifdef CONFIG_PS2 CONSOLE_CHANNEL(CC_PS2, "ps2") #endif +#ifdef CONFIG_PERIPHERAL_CHARGER +CONSOLE_CHANNEL(CC_PCHG, "pchg") +#endif #if defined(CONFIG_PWM) || defined(CONFIG_FANS) CONSOLE_CHANNEL(CC_PWM, "pwm") #endif |