From aeaa8eab51e9522175c372b04f39db0fec616930 Mon Sep 17 00:00:00 2001 From: Rajesh Kumar Date: Thu, 16 Feb 2023 21:18:48 -0800 Subject: rex: Update arail and rsmrst system boot timestamp This change updates ARAIL and RSMRST timestamp for rex platform. BUG=b:249163956 BRANCH=none TEST='ectool boottime' AP console command is used to fetch data 'reboot' on AP console to trigger warm reboot 'apshutdown' on EC console to trigger cold reboot Change-Id: Ie621f862f704bf35d249d57fb33411bf4e9f4348 Signed-off-by: Rajesh Kumar Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4263103 Reviewed-by: Vijay P Hiremath Reviewed-by: Al Semjonovs Reviewed-by: Brandon Breitenstein Reviewed-by: Wonkyu Kim --- zephyr/program/rex/src/board_power.c | 3 +++ zephyr/subsys/ap_pwrseq/x86_non_dsx_common_pwrseq_sm_handler.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/zephyr/program/rex/src/board_power.c b/zephyr/program/rex/src/board_power.c index 655edaa452..4daa7db6bd 100644 --- a/zephyr/program/rex/src/board_power.c +++ b/zephyr/program/rex/src/board_power.c @@ -5,6 +5,7 @@ #include "gpio/gpio.h" #include "gpio_signal.h" +#include "system_boot_time.h" #include #include @@ -47,6 +48,8 @@ void board_ap_power_action_g3_s5(void) /* Turn on the PP3300_PRIM rail. */ power_signal_set(PWR_EN_PP3300_A, 1); + update_ap_boot_time(ARAIL); + if (!power_wait_signals_timeout( IN_PGOOD_ALL_CORE, AP_PWRSEQ_DT_VALUE(wait_signal_timeout))) { diff --git a/zephyr/subsys/ap_pwrseq/x86_non_dsx_common_pwrseq_sm_handler.c b/zephyr/subsys/ap_pwrseq/x86_non_dsx_common_pwrseq_sm_handler.c index 4e63e2e04e..3e33915f8f 100644 --- a/zephyr/subsys/ap_pwrseq/x86_non_dsx_common_pwrseq_sm_handler.c +++ b/zephyr/subsys/ap_pwrseq/x86_non_dsx_common_pwrseq_sm_handler.c @@ -3,6 +3,7 @@ * found in the LICENSE file. */ +#include "system_boot_time.h" #include "zephyr_console_shim.h" #include @@ -237,6 +238,7 @@ void rsmrst_pass_thru_handler(void) k_msleep(AP_PWRSEQ_DT_VALUE(rsmrst_delay)); LOG_DBG("Setting PWR_EC_PCH_RSMRST to %d", in_sig_val); power_signal_set(PWR_EC_PCH_RSMRST, in_sig_val); + update_ap_boot_time(RSMRST); } } -- cgit v1.2.1