diff options
author | amber.chen <amber.chen@lcfc.corp-partner.google.com> | 2022-12-27 13:04:37 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-01-06 01:18:02 +0000 |
commit | 950c21ed4d0181029653bfebabcbfc990c1757d3 (patch) | |
tree | 0f1ef127fc77401b7ad39b529d50cd2aac55297b /baseboard/grunt | |
parent | ed8fee77c9a7d8077f05040275ef5fa8d2c2f500 (diff) | |
download | chrome-ec-950c21ed4d0181029653bfebabcbfc990c1757d3.tar.gz |
baseboard: enable powered of PP1 and PP2 for port 1
Due to in Treeya360 project add "#undef CONFIG_HIBERNATE_PSL" this
configuration, so PPC1 remains powered during hibernate.
PPC1 therefore now needs to be configured the same way as PPC0, to mimic
the previous dead-battery behavior and allow wake on AC plug.
BRANCH=none
BUG=b:259211176
TEST=make buildall -j48
Change-Id: Ie353a3f3ca118dd94a2131d8ea62ddf5ee12c470
Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4119878
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Diffstat (limited to 'baseboard/grunt')
-rw-r--r-- | baseboard/grunt/baseboard.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/baseboard/grunt/baseboard.c b/baseboard/grunt/baseboard.c index 6c2fbc2046..37bb61b423 100644 --- a/baseboard/grunt/baseboard.c +++ b/baseboard/grunt/baseboard.c @@ -784,6 +784,15 @@ void board_hibernate(void) */ ppc_vbus_source_enable(0, 0); ppc_vbus_sink_enable(0, 1); + /* + * PPC1 therefore now needs to be configured the same way as PPC0, + * to mimic the previous dead-battery behavior and allow wake on AC + * plug. + */ + if (!IS_ENABLED(CONFIG_HIBERNATE_PSL)) { + ppc_vbus_source_enable(1, 0); + ppc_vbus_sink_enable(1, 1); + } /* * If CCD not active, set port 0 SBU_EN=0 to avoid power leakage during |