From 0ded5623f2e2321d22539f8b4747876f039ef0d1 Mon Sep 17 00:00:00 2001 From: Tom Chang Date: Thu, 15 Aug 2024 13:48:12 +0800 Subject: [PATCH] soc: npcx: update register definition for espi vw This CL adds the field for the index of virtual wire and the enable bit. Signed-off-by: Tom Chang --- soc/nuvoton/npcx/common/reg/reg_def.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soc/nuvoton/npcx/common/reg/reg_def.h b/soc/nuvoton/npcx/common/reg/reg_def.h index b43c3d54bc1..915694ba606 100644 --- a/soc/nuvoton/npcx/common/reg/reg_def.h +++ b/soc/nuvoton/npcx/common/reg/reg_def.h @@ -750,10 +750,14 @@ struct espi_reg { #define NPCX_VWSWIRQ_EDGE_IRQ 28 #define NPCX_VWEVMS_WIRE FIELD(0, 4) #define NPCX_VWEVMS_VALID FIELD(4, 4) +#define NPCX_VWEVMS_INDEX FIELD(8, 7) +#define NPCX_VWEVMS_INDEX_EN 15 #define NPCX_VWEVMS_IE 18 #define NPCX_VWEVMS_WE 20 #define NPCX_VWEVSM_WIRE FIELD(0, 4) #define NPCX_VWEVSM_VALID FIELD(4, 4) +#define NPCX_VWEVSM_INDEX FIELD(8, 7) +#define NPCX_VWEVSM_INDEX_EN 15 #define NPCX_VWEVSM_BIT_VALID(n) (4+n) #define NPCX_VWEVSM_HW_WIRE FIELD(24, 4) #define NPCX_VWGPSM_INDEX_EN 15