summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTinghan Shen <tinghan.shen@mediatek.com>2021-08-27 11:11:49 +0800
committerCommit Bot <commit-bot@chromium.org>2021-09-06 11:46:38 +0000
commita478fe1facb7ac8165678fa877a35a7f9c7d742f (patch)
tree2c2be503377d4500fcec8b4e1d02918a27af96a3
parentc2b7a7dd3eb4c96bc35904ba0d5cb874ec60178c (diff)
downloadchrome-ec-a478fe1facb7ac8165678fa877a35a7f9c7d742f.tar.gz
chip/mt_scp: mt8195 uses 32k clock when AP suspend
Use 32k clock instead of ULPOSC can significantly reduce the power consumption of SCP under S3 stage, and still able to kick SCP WDT. BRANCH=none BUG=b:197937562 TEST=low scp power in S3 stage Change-Id: If2f68a5b11e93c7e6badf2e4893f649700b5af2e Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3131409 Reviewed-by: Tzung-Bi Shih <tzungbi@chromium.org> Commit-Queue: Tzung-Bi Shih <tzungbi@chromium.org>
-rw-r--r--chip/mt_scp/mt8195/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/mt_scp/mt8195/clock.c b/chip/mt_scp/mt8195/clock.c
index 9d341536a6..c6bf3cbc79 100644
--- a/chip/mt_scp/mt8195/clock.c
+++ b/chip/mt_scp/mt8195/clock.c
@@ -377,7 +377,7 @@ power_chipset_handle_host_sleep_event(enum host_sleep_event state,
{
if (state == HOST_SLEEP_EVENT_S3_SUSPEND) {
CPRINTS("AP suspend");
- clock_select_clock(SCP_CLK_ULPOSC2_LOW_SPEED);
+ clock_select_clock(SCP_CLK_32K);
} else if (state == HOST_SLEEP_EVENT_S3_RESUME) {
CPRINTS("AP resume");
clock_select_clock(SCP_CLK_ULPOSC2_HIGH_SPEED);