diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2023-02-24 17:19:53 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-07 08:18:27 +0000 |
commit | f2f215c25a90b0cd1ebde9b55ff3d8740930b4ce (patch) | |
tree | 0fa716b0e2f51f798a5ec1150a20d8d2e7386a26 /power/mt8186.c | |
parent | a3bcde3ef8ceb79e414136e92c82928c6457e1ca (diff) | |
download | chrome-ec-f2f215c25a90b0cd1ebde9b55ff3d8740930b4ce.tar.gz |
mt8186,mt8188: increase PMIC hard off delay by 20% tolerance
The PMIC hard off delay has a 20% tolerance, so increase the
PMIC_HARD_OFF_DELAY to match the spec.
BUG=b:267268982
TEST=zmake
BRANCH=none
LOW_COVERAGE_REASON=geralt bringup
Change-Id: I822e6de7c75e9806763e3139f135e8f65c0bf171
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4290678
Tested-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'power/mt8186.c')
-rw-r--r-- | power/mt8186.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/power/mt8186.c b/power/mt8186.c index 1851b211bc..e46d2b1e10 100644 --- a/power/mt8186.c +++ b/power/mt8186.c @@ -56,7 +56,8 @@ /* Maximum time it should for PMIC to turn on after toggling PMIC_EN_ODL. */ #define PMIC_EN_TIMEOUT (300 * MSEC) #define PMIC_EN_PULSE_MS 50 -#define PMIC_HARD_OFF_DELAY (8 * SECOND) +/* PMIC hard off delay with 20% tolerance. */ +#define PMIC_HARD_OFF_DELAY (8 * SECOND / 100 * 120) /* 30 ms for hard reset, we hold it longer to prevent TPM false alarm. */ #define SYS_RST_PULSE_LENGTH (50 * MSEC) |