summaryrefslogtreecommitdiff
path: root/power/intel_x86.c
diff options
context:
space:
mode:
authorScott Worley <scott.worley@microchip.corp-partner.google.com>2017-12-20 12:23:59 -0500
committerchrome-bot <chrome-bot@chromium.org>2018-01-02 15:48:20 -0800
commitd813935b827b55f4650365a5e9e8096e47122f07 (patch)
tree32d0ef28e42c9b540770a5e4572e163e80f62b52 /power/intel_x86.c
parentb74f6a576a822f43872f07aebb6909a457a84afa (diff)
downloadchrome-ec-d813935b827b55f4650365a5e9e8096e47122f07.tar.gz
espi: Add API to test if signal is eSPI virtual wire
Add espi_signal_is_vw in new file common/espi.c for testing if a signal is an eSPI virtual wire. API used in power common and intel_x86. Fix CONFIG_BRINGUP support for eSPI (off by default). Add espi_vw_get_wire_name returning a pointer to constant string. Chip modules do not need to maintain names of eSPI signals. BRANCH=none BUG= TEST=Build poppy and other eSPI enabled boards. Test power state machine. Change-Id: I13319e79d208c69092a02ec3ac655477d3043d61 Signed-off-by: Scott Worley <scott.worley@microchip.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/836818 Commit-Ready: Randall Spangler <rspangler@chromium.org> Tested-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'power/intel_x86.c')
-rw-r--r--power/intel_x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/power/intel_x86.c b/power/intel_x86.c
index 8233261661..2ef05191ba 100644
--- a/power/intel_x86.c
+++ b/power/intel_x86.c
@@ -98,7 +98,7 @@ DECLARE_HOOK(HOOK_BATTERY_SOC_CHANGE, power_up_inhibited_cb, HOOK_PRIO_DEFAULT);
static inline int chipset_get_sleep_signal(enum sys_sleep_state state)
{
#ifdef CONFIG_ESPI_VW_SIGNALS
- if (sleep_sig[state] > VW_SIGNAL_BASE)
+ if (espi_signal_is_vw(sleep_sig[state]))
return espi_vw_get_wire(sleep_sig[state]);
else
#endif