diff options
author | Rajesh Kumar <rajesh3.kumar@intel.com> | 2022-12-05 11:01:24 -0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-12-07 20:06:04 +0000 |
commit | 3a824dc622e29c423e39b1ec3c1b2bac571f23ce (patch) | |
tree | 5e5fdf25fff48de8d05eeb7b567cf02b42416bc0 /zephyr/Kconfig | |
parent | 2fc6c41fccc215b5b91423b6de3361d0dcfa2620 (diff) | |
download | chrome-ec-3a824dc622e29c423e39b1ec3c1b2bac571f23ce.tar.gz |
ec: Support logging system boot time info
This CL add support logging system boot time and hostcommand to get
boot time info.
EC logs elapsed time (in micro second) info since boot for different
signal events,that can be used to calculate system boot time in cold
boot and warm boot scenarios.
Below are the events when EC logs time info
ARAIL EC turns on A-RAIL
RSMRST EC releases RSMRST#
ESPIRST ESPIRST received
PLTRST_LOW PLTRST# asserted
PLTRST_HIGH PLTRST# deasserted
EC_CUR_TIME EC current time
cnt increments on every warm reboot and reset to 0 on
cold reboot
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
Signed-off-by: Rajesh Kumar <rajesh3.kumar@intel.com>
Change-Id: I47abe3f8a0b7ab43f2af11bf8387c006ba383020
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4081566
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Tested-by: Li-Yu Yu <aaronyu@google.com>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'zephyr/Kconfig')
-rw-r--r-- | zephyr/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig index d80548ca39..4943a73676 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -800,4 +800,10 @@ config PLATFORM_EC_GPIO_ID devicetree node using the known nodelabels gpio_id_sku and gpio_id_board. +config SYSTEM_BOOT_TIME_LOGGING + bool "boot time logging" + help + This config enables boot time logging functionality in EC which + is used for calculating system boot time. + endif # PLATFORM_EC |