From 94f52949ae4487918573ca7bab85942f147caa0c Mon Sep 17 00:00:00 2001 From: Wai-Hong Tam Date: Mon, 9 Aug 2021 15:19:48 -0700 Subject: qcom: Increase the delay between powering on the switchcap and the PMIC Measured the delay on Herobrine IOB + Trogdor MLB is ~200ms. Pick a larger delay 300ms. BRANCH=None BUG=None TEST=Booted AP successfully. Change-Id: Iaba20995e23c2f2041601c9fc17f35a1cb9300c4 Signed-off-by: Wai-Hong Tam Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3083184 Reviewed-by: Stephen Boyd --- power/qcom.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/power/qcom.c b/power/qcom.c index 8fd96cbb54..e2b0ff3fd5 100644 --- a/power/qcom.c +++ b/power/qcom.c @@ -126,9 +126,12 @@ BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT); /* * Delay between power-on the system and power-on the PMIC. * Some latest PMIC firmware needs this delay longer, for doing a cold - * reboot. Did an experiment; it should be 120ms+. Set it with margin. + * reboot. + * + * Measured on Herobrine IOB + Trogdor MLB, the delay takes ~200ms. Set + * it with margin. */ -#define SYSTEM_POWER_ON_DELAY (150 * MSEC) +#define SYSTEM_POWER_ON_DELAY (300 * MSEC) /* * Delay between the PMIC power drop and power-off the system. -- cgit v1.2.1