summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajesh Kumar <rajesh3.kumar@intel.com>2023-02-16 21:18:48 -0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-01 22:22:01 +0000
commitaeaa8eab51e9522175c372b04f39db0fec616930 (patch)
tree18f275c6a4488e3259790689b41fe0faf74b2610
parented9896847fda73e6c12a17b93c47ff413511e7be (diff)
downloadchrome-ec-aeaa8eab51e9522175c372b04f39db0fec616930.tar.gz
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 <rajesh3.kumar@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4263103 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Al Semjonovs <asemjonovs@google.com> Reviewed-by: Brandon Breitenstein <brandon.breitenstein@intel.com> Reviewed-by: Wonkyu Kim <wonkyu.kim@intel.com>
-rw-r--r--zephyr/program/rex/src/board_power.c3
-rw-r--r--zephyr/subsys/ap_pwrseq/x86_non_dsx_common_pwrseq_sm_handler.c2
2 files changed, 5 insertions, 0 deletions
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 <zephyr/drivers/gpio.h>
#include <zephyr/logging/log.h>
@@ -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 <zephyr/init.h>
@@ -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);
}
}