diff options
author | Ting Shen <phoenixshen@google.com> | 2020-08-27 16:48:28 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-28 10:46:55 +0000 |
commit | 723b0f9adce5ea03af335b9e1e3378682de635c8 (patch) | |
tree | 96881e7f0e4d85d4ddbd82724a25027010ed4926 /power | |
parent | 9a10b3e1d88cfca71fcaadff58e43e911483004a (diff) | |
download | chrome-ec-723b0f9adce5ea03af335b9e1e3378682de635c8.tar.gz |
asurada: keep PP5000_A on at G3
In current EC implementation, EC turns off PP5000_A in G3. Since
PPC is powered by PP5000_A, it needs special logic to handle the
re-power and re-initialization.
See b:154775121 for more discussion.
To simplify the logic, change the behavior to turn PP5000_A off
only when hibernate, so we won't need to worry about re-initialize
PPC anymore (resume from hibernate is a reboot, so it's also
covered here).
BUG=b:154775121
TEST=1) Run the test script in CL:2169443
2) Verify PD is functional whenever EC is awake.
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I07c03f9a8c0b77012d1284a283ce489e54b1a058
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2378940
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'power')
-rw-r--r-- | power/mt8192.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/power/mt8192.c b/power/mt8192.c index 6f6eecfa20..4c0ca97aa7 100644 --- a/power/mt8192.c +++ b/power/mt8192.c @@ -287,7 +287,6 @@ enum power_state power_handle_state(enum power_state state) case POWER_G3S5: forcing_shutdown = 0; - GPIO_SET_LEVEL(GPIO_EN_PP5000_A, 1); /* Power up to next state */ return POWER_S5; @@ -414,8 +413,6 @@ enum power_state power_handle_state(enum power_state state) if (forcing_shutdown) GPIO_SET_LEVEL(GPIO_EC_PMIC_EN_ODL, 1); - GPIO_SET_LEVEL(GPIO_EN_PP5000_A, 0); - return POWER_G3; } |