drivers: espi: npcx: ensure the host receives the value from eSPI VW

This commit adds an option to verify weather the host has read the value
after the wire 3-0 bits have been updated.

Signed-off-by: Tom Chang <CHChang19@nuvoton.com>
This commit is contained in:
Tom Chang 2025-04-08 10:45:07 +08:00 committed by Benjamin Cabé
commit eb5597e90a
3 changed files with 30 additions and 0 deletions

View file

@ -727,6 +727,7 @@ struct espi_reg {
#define NPCX_VWEVSM_INDEX FIELD(8, 7)
#define NPCX_VWEVSM_INDEX_EN 15
#define NPCX_VWEVSM_BIT_VALID(n) (4+n)
#define NPCX_VWEVSM_DIRTY 16
#define NPCX_VWEVSM_HW_WIRE FIELD(24, 4)
#define NPCX_VWGPSM_INDEX_EN 15
#define NPCX_OOBCTL_OOB_FREE 0