From f2f215c25a90b0cd1ebde9b55ff3d8740930b4ce Mon Sep 17 00:00:00 2001 From: Eric Yilun Lin Date: Fri, 24 Feb 2023 17:19:53 +0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4290678 Tested-by: Eric Yilun Lin Commit-Queue: Eric Yilun Lin Reviewed-by: Ting Shen --- power/mt8186.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'power') 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) -- cgit v1.2.1