summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/espi.c
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-01-15 08:18:21 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-16 02:38:01 +0000
commit84cdec284c0288ae073af8a1b8290d529959c535 (patch)
tree4a6dac2e1fb37386d5ce0d7145619c5936c80580 /zephyr/shim/src/espi.c
parent2d9f8f9e2f0796eb18aaa3b6f89975d2305b04b6 (diff)
downloadchrome-ec-84cdec284c0288ae073af8a1b8290d529959c535.tar.gz
zephyr: kohaku: bring up eSPI
Enable eSPI shim for kohaku. BUG=b:177609422 BRANCH=none TEST=run on kohaku with power sequencing follow-up Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I173e1a091b9e6e46b5207db19248afe102a665a0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2633163 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/shim/src/espi.c')
-rw-r--r--zephyr/shim/src/espi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zephyr/shim/src/espi.c b/zephyr/shim/src/espi.c
index 2a81bd0446..7f653f9543 100644
--- a/zephyr/shim/src/espi.c
+++ b/zephyr/shim/src/espi.c
@@ -15,6 +15,7 @@
#include "chipset.h"
#include "common.h"
#include "espi.h"
+#include "gpio.h"
#include "hooks.h"
#include "lpc.h"
#include "port80.h"
@@ -269,7 +270,7 @@ static void lpc_update_wake(host_event_t wake_events)
wake_events &= ~EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON);
/* Signal is asserted low when wake events is non-zero */
- gpio_set_level(NAMED_GPIO(ec_pch_wake_odl), !wake_events);
+ gpio_set_level(GPIO_EC_PCH_WAKE_ODL, !wake_events);
}
static void lpc_generate_smi(void)