summaryrefslogtreecommitdiff
path: root/chip/npcx/espi.c
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-06-03 00:12:24 -0700
committerCommit Bot <commit-bot@chromium.org>2021-06-04 22:27:37 +0000
commit15d41792a1f4d24a64ed4ebcaa809a48978ff385 (patch)
tree409d19c8aa38e9b28ae831446b7bdcdc408365ac /chip/npcx/espi.c
parent670b3eabd0929557f3213ea199744d38914c2a99 (diff)
downloadchrome-ec-15d41792a1f4d24a64ed4ebcaa809a48978ff385.tar.gz
COIL: espi: replace VW_SLAVE_BTLD_STATUS_DONE with VW_PERIPHERAL_BTLD_STATUS_DONE
This replaces VW_SLAVE_BTLD_STATUS_DONE with VW_PERIPHERAL_BTLD_STATUS_DONE. BRANCH=none BUG=b:163885307 TEST=buildall, compare_build.sh pass Change-Id: I0b8c71fa7e590dc89357e22aafce0b67717af183 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2938041 Reviewed-by: Harry Cutts <hcutts@chromium.org> Commit-Queue: Harry Cutts <hcutts@chromium.org>
Diffstat (limited to 'chip/npcx/espi.c')
-rw-r--r--chip/npcx/espi.c49
1 files changed, 25 insertions, 24 deletions
diff --git a/chip/npcx/espi.c b/chip/npcx/espi.c
index 5827c5ba9e..903e0be0a5 100644
--- a/chip/npcx/espi.c
+++ b/chip/npcx/espi.c
@@ -109,29 +109,29 @@ static const struct host_wui_item espi_vw_int_list[] = {
/* VW signals used in eSPI */
static const struct vw_event_t vw_events_list[] = {
- {VW_SLP_S3_L, 0x02, 0x01}, /* index 02h (In) */
- {VW_SLP_S4_L, 0x02, 0x02},
- {VW_SLP_S5_L, 0x02, 0x04},
- {VW_SUS_STAT_L, 0x03, 0x01}, /* index 03h (In) */
- {VW_PLTRST_L, 0x03, 0x02},
- {VW_OOB_RST_WARN, 0x03, 0x04},
- {VW_OOB_RST_ACK, 0x04, 0x01}, /* index 04h (Out) */
- {VW_WAKE_L, 0x04, 0x04},
- {VW_PME_L, 0x04, 0x08},
- {VW_ERROR_FATAL, 0x05, 0x02}, /* index 05h (Out) */
- {VW_ERROR_NON_FATAL, 0x05, 0x04},
- {VW_SLAVE_BTLD_STATUS_DONE, 0x05, 0x09},
- {VW_SCI_L, 0x06, 0x01}, /* index 06h (Out) */
- {VW_SMI_L, 0x06, 0x02},
- {VW_RCIN_L, 0x06, 0x04},
- {VW_HOST_RST_ACK, 0x06, 0x08},
- {VW_HOST_RST_WARN, 0x07, 0x01}, /* index 07h (In) */
- {VW_SUS_ACK, 0x40, 0x01}, /* index 40h (Out) */
- {VW_SUS_WARN_L, 0x41, 0x01}, /* index 41h (In) */
- {VW_SUS_PWRDN_ACK_L, 0x41, 0x02},
- {VW_SLP_A_L, 0x41, 0x08},
- {VW_SLP_LAN, 0x42, 0x01}, /* index 42h (In) */
- {VW_SLP_WLAN, 0x42, 0x02},
+ {VW_SLP_S3_L, 0x02, 0x01}, /* index 02h (In) */
+ {VW_SLP_S4_L, 0x02, 0x02},
+ {VW_SLP_S5_L, 0x02, 0x04},
+ {VW_SUS_STAT_L, 0x03, 0x01}, /* index 03h (In) */
+ {VW_PLTRST_L, 0x03, 0x02},
+ {VW_OOB_RST_WARN, 0x03, 0x04},
+ {VW_OOB_RST_ACK, 0x04, 0x01}, /* index 04h (Out) */
+ {VW_WAKE_L, 0x04, 0x04},
+ {VW_PME_L, 0x04, 0x08},
+ {VW_ERROR_FATAL, 0x05, 0x02}, /* index 05h (Out) */
+ {VW_ERROR_NON_FATAL, 0x05, 0x04},
+ {VW_PERIPHERAL_BTLD_STATUS_DONE, 0x05, 0x09},
+ {VW_SCI_L, 0x06, 0x01}, /* index 06h (Out) */
+ {VW_SMI_L, 0x06, 0x02},
+ {VW_RCIN_L, 0x06, 0x04},
+ {VW_HOST_RST_ACK, 0x06, 0x08},
+ {VW_HOST_RST_WARN, 0x07, 0x01}, /* index 07h (In) */
+ {VW_SUS_ACK, 0x40, 0x01}, /* index 40h (Out) */
+ {VW_SUS_WARN_L, 0x41, 0x01}, /* index 41h (In) */
+ {VW_SUS_PWRDN_ACK_L, 0x41, 0x02},
+ {VW_SLP_A_L, 0x41, 0x08},
+ {VW_SLP_LAN, 0x42, 0x01}, /* index 42h (In) */
+ {VW_SLP_WLAN, 0x42, 0x02},
};
/* Flag for boot load signals */
@@ -600,7 +600,8 @@ void espi_interrupt(void)
if (boot_load_done == 0 &&
IS_SLAVE_CHAN_ENABLE(NPCX_ESPI_CH_VW)) {
- espi_vw_set_wire(VW_SLAVE_BTLD_STATUS_DONE, 1);
+ espi_vw_set_wire(
+ VW_PERIPHERAL_BTLD_STATUS_DONE, 1);
boot_load_done = 1;
}
}