diff options
author | Ting Shen <phoenixshen@google.com> | 2021-11-16 16:06:37 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-07 04:31:36 +0000 |
commit | afc427853f629e12e238dce780b7b13eabb3b299 (patch) | |
tree | 8e6687315010443a0c3a1a22bcd5f04124119054 /include | |
parent | 229723e49cef20809c0ca0fca520d63c0cfd0e24 (diff) | |
download | chrome-ec-afc427853f629e12e238dce780b7b13eabb3b299.tar.gz |
power: add mt8186 power sequence
MT8186 power sequence is a simplified version of 8192/95. EC does not
lie between AP and PMIC, so there's no need to forward the signals.
Other logics are almost the same.
BUG=b:206338930
TEST=Test following items on krabby CL:3233784
* Cold reset:
$ dut-control cold_reset:on sleep:0.2 cold_reset:off
Result: G3 -> S0
* Long power press to shutdown:
$ dut-control 'ec_uart_cmd:powerbtn 8200'
Result: S0 -> S5 -> G3
* Long power press to power-on but then shutdown:
$ dut-control 'ec_uart_cmd:powerbtn 8200'
Result: G3 -> S0 -> S5 -> G3
* Short power press to power-on:
$ dut-control 'ec_uart_cmd:powerbtn 200'
Result: G3 -> S0
* Console command: apreset
Result: S0 -> S5 -> S0, AP reboots
* Console command: apshutdown
Result: S0 -> S5 -> G3
* Lid open to power-on:
$ dut-control lid_open:no sleep:0.2 lid_open:yes
Result: G3 -> S0
BRANCH=none
Cq-Depend: chromium:3366102
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: Iebfe77c8f6d127ee4d0685903b67afd215ca6682
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3233783
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/power/mt8186.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/power/mt8186.h b/include/power/mt8186.h new file mode 100644 index 0000000000..a2ad5648ed --- /dev/null +++ b/include/power/mt8186.h @@ -0,0 +1,17 @@ +/* Copyright 2022 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef __CROS_EC_POWER_MT8186_H_ +#define __CROS_EC_POWER_MT8186_H_ + +enum power_signal { + AP_IN_RST, + AP_IN_S3, + AP_WDT_ASSERTED, + AP_WARM_RST_REQ, + POWER_SIGNAL_COUNT, +}; + +#endif /* __CROS_EC_POWER_MT8186_H_ */ |