diff options
author | Caveh Jalali <caveh@chromium.org> | 2021-06-03 00:47:14 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-04 22:27:42 +0000 |
commit | 12906eb5285f119921b884baca2dd12f0f8ec92c (patch) | |
tree | 2725704737587ec52096a0e7b06c879b9f7cc08c /chip/npcx/espi.c | |
parent | 15d41792a1f4d24a64ed4ebcaa809a48978ff385 (diff) | |
download | chrome-ec-12906eb5285f119921b884baca2dd12f0f8ec92c.tar.gz |
COIL: chip/npcx: rename IS_SLAVE_CHAN_ENABLE
This renames IS_SLAVE_CHAN_ENABLE to IS_PERIPHERAL_CHAN_ENABLE.
BRANCH=none
BUG=b:163885307
TEST=buildall and compare_build.sh pass
Change-Id: Iaab11a2485fdcde3992ecb457c204465acfdf732
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2938042
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/npcx/espi.c b/chip/npcx/espi.c index 903e0be0a5..a8429afe89 100644 --- a/chip/npcx/espi.c +++ b/chip/npcx/espi.c @@ -584,10 +584,10 @@ void espi_interrupt(void) */ for (chan = NPCX_ESPI_CH_VW; chan < NPCX_ESPI_CH_COUNT; chan++) { - if (!IS_SLAVE_CHAN_ENABLE(chan) && + if (!IS_PERIPHERAL_CHAN_ENABLE(chan) && IS_HOST_CHAN_EN(chan)) ENABLE_ESPI_CHAN(chan); - else if (IS_SLAVE_CHAN_ENABLE(chan) && + else if (IS_PERIPHERAL_CHAN_ENABLE(chan) && !IS_HOST_CHAN_EN(chan)) DISABLE_ESPI_CHAN(chan); } @@ -598,7 +598,7 @@ void espi_interrupt(void) * completion of EC firmware code loading. */ if (boot_load_done == 0 && - IS_SLAVE_CHAN_ENABLE(NPCX_ESPI_CH_VW)) { + IS_PERIPHERAL_CHAN_ENABLE(NPCX_ESPI_CH_VW)) { espi_vw_set_wire( VW_PERIPHERAL_BTLD_STATUS_DONE, 1); |