driver: espi: npcx: add option to reset SLP_Sx virtual wire

Add a Kconfig option ESPI_NPCX_RESET_SLP_SX_VW_ON_ESPI_RST.
When the option is enabled, the hardware resets the SLP_S3/SLP_S4/SLP_S5
virtual wires when the eSPI_Reset is asserted. This is required to
synchronize these virtual wires on the ungraceful global reset.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
This commit is contained in:
Jun Lin 2025-01-17 17:19:07 +08:00 committed by Fabio Baltieri
commit aec991ef1a
3 changed files with 20 additions and 0 deletions

View file

@ -775,6 +775,7 @@ struct espi_reg {
#define NPCX_VWEVMS_INDEX FIELD(8, 7)
#define NPCX_VWEVMS_INDEX_EN 15
#define NPCX_VWEVMS_IE 18
#define NPCX_VWEVMS_ENESPIRST 19
#define NPCX_VWEVMS_WE 20
#define NPCX_VWEVSM_WIRE FIELD(0, 4)
#define NPCX_VWEVSM_VALID FIELD(4, 4)