diff options
author | Aseda Aboagye <aaboagye@google.com> | 2020-06-12 10:36:42 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-13 01:42:36 +0000 |
commit | 9f1e60d0d7b1c1b680144cd0e7345df64b4a9202 (patch) | |
tree | 9be46b54ee678f31edf249923ee62e952a9c486b | |
parent | e0c11663b9f51ec08d6f709e61409728cfc09422 (diff) | |
download | chrome-ec-9f1e60d0d7b1c1b680144cd0e7345df64b4a9202.tar.gz |
raa489000: Disable BFET in hibernate
For further power savings in hibernate, disable the BFET on each
charger. For devices that use the Z-state, the LDO will be powered by
the BFET's body diode.
BUG=b:155507120
BRANCH=None
TEST=Build and flash waddledoo, hibernate DUT, verify that DUT can
wake up via the power button.
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Change-Id: I0ffec4a56e282bcc801a317da78b43e6b04c82d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2243318
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Auto-Submit: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Diana Z <dzigterman@chromium.org>
-rw-r--r-- | driver/charger/isl923x.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/driver/charger/isl923x.c b/driver/charger/isl923x.c index 5fce2d0b62..67ef8b80a7 100644 --- a/driver/charger/isl923x.c +++ b/driver/charger/isl923x.c @@ -586,13 +586,11 @@ void raa489000_hibernate(int chgnum) /* Disable Supplemental support */ regval &= ~RAA489000_C1_ENABLE_SUPP_SUPPORT_MODE; - /* Force BGATE off */ - if (IS_ENABLED(CONFIG_OCPC) && (chgnum == PRIMARY_CHARGER)) { - /* This is needed in the Z-state */ - CPRINTS("%s(%d): Skip disable BFET", __func__, chgnum); - } else { - regval |= RAA489000_C1_BGATE_FORCE_OFF; - } + /* + * Force BGATE off. For devices that utilize the Z-state, the + * LDO will be powered through the BFET's body diode. + */ + regval |= RAA489000_C1_BGATE_FORCE_OFF; /* Disable AMON/BMON */ regval |= ISL923X_C1_DISABLE_MON; |