diff options
Diffstat (limited to 'chip/npcx/espi.c')
-rw-r--r-- | chip/npcx/espi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chip/npcx/espi.c b/chip/npcx/espi.c index e73d04e988..3bed4f4564 100644 --- a/chip/npcx/espi.c +++ b/chip/npcx/espi.c @@ -13,6 +13,7 @@ #include "power.h" #include "registers.h" #include "system.h" +#include "system_boot_time.h" #include "task.h" #include "timer.h" #include "uart.h" @@ -459,11 +460,14 @@ void espi_vw_evt_pltrst(void) /* Enable eSPI peripheral channel */ SET_BIT(NPCX_ESPICFG, NPCX_ESPICFG_PCHANEN); #endif + update_ap_boot_time(PLTRST_HIGH); + } else { /* PLTRST# asserted */ #ifdef CONFIG_CHIPSET_RESET_HOOK hook_call_deferred(&espi_chipset_reset_data, MSEC); #endif + update_ap_boot_time(PLTRST_LOW); } } @@ -524,6 +528,8 @@ void espi_espirst_handler(void) /* Clear pending bit of WUI */ SET_BIT(NPCX_WKPCL(MIWU_TABLE_0, MIWU_GROUP_5), 5); + update_ap_boot_time(ESPIRST); + CPRINTS("eSPI RST issued!"); } |