summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/espi.c
diff options
context:
space:
mode:
authorAndrew McRae <amcrae@google.com>2022-02-08 15:54:25 +1100
committerCommit Bot <commit-bot@chromium.org>2022-02-08 22:53:29 +0000
commit8a40e1daa12c8b8ac5051501bb60b8c0d90137c7 (patch)
tree43ec75d69bf3f321841d6c0504e20aaf848f963b /zephyr/shim/src/espi.c
parent2883a798262703a28f1e707e9ae0aceea884d173 (diff)
downloadchrome-ec-8a40e1daa12c8b8ac5051501bb60b8c0d90137c7.tar.gz
zephyr: Use GPIO nodelabel for EC_PCH_WAKE_ODL
Use nodelable for EC_PCH_WAKE_ODL access instead of enum gpio_signal. BUG=b:216466985 TEST=zmake configure BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: Ie48a331314a8d7d9f971a61e9ee2e37d23858cb4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3445984 Reviewed-by: Wai-Hong Tam <waihong@google.com>
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 2d83afacae..e18d12bfb7 100644
--- a/zephyr/shim/src/espi.c
+++ b/zephyr/shim/src/espi.c
@@ -218,7 +218,8 @@ 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(GPIO_EC_PCH_WAKE_ODL, !wake_events);
+ gpio_pin_set_dt(GPIO_DT_FROM_NODELABEL(gpio_ec_pch_wake_odl),
+ !wake_events);
}
static void lpc_generate_smi(void)