diff options
author | Mike Lee <mike5@huaqin.corp-partner.google.com> | 2021-04-27 14:49:49 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-27 17:27:08 +0000 |
commit | 0a1ada84e7ccf73ff3976f84cf95eecea1ca2ad1 (patch) | |
tree | 9846a0aacd8f6a7bf69cc6b75f0ae47100f611ad /driver/charger/isl923x.c | |
parent | 19bde9a628c0395aef7560a914ea421c20eeb3cb (diff) | |
download | chrome-ec-0a1ada84e7ccf73ff3976f84cf95eecea1ca2ad1.tar.gz |
Sasukette: Fix main board charger can't wake from hibernate
In Sasukette's design, there is a protection IC between USB
connector and TCPC. When EC is hibernate, the CC lines will
be disconnected, which cause the result that TCPC can't
detect AC power and Chromebook won't wake the system.
Enalbing ADC for all modes by setting 0x4C bit 0 to 1 can
prevent issue mention above.
BUG=b:186335659
BRANCH=dedede
TEST=flash sasukette and test typeC adapter can wake system from
hibernate mode.
Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com>
Change-Id: I04e80815ebfb5aa4022835a5fd8a59de1305e3ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2853087
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'driver/charger/isl923x.c')
-rw-r--r-- | driver/charger/isl923x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/charger/isl923x.c b/driver/charger/isl923x.c index 33a669b5ef..d9a6713a56 100644 --- a/driver/charger/isl923x.c +++ b/driver/charger/isl923x.c @@ -854,6 +854,8 @@ void raa489000_hibernate(int chgnum, bool disable_adc) if (disable_adc) /* ADC is active only when adapter plugged in */ regval &= ~RAA489000_ENABLE_ADC; + else + regval |= RAA489000_ENABLE_ADC; rv = raw_write16(chgnum, ISL9238_REG_CONTROL3, regval); } |