diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-03-15 12:27:27 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-03-15 12:42:11 -0700 |
commit | c72f66c050b7754c36436583272965b9ca4fd850 (patch) | |
tree | 8f532eeb86274628a542d38ccd2bc6012a958e38 /common/x86_power.c | |
parent | 38d1b2e8bad5b9d4698963dbb63684aacbd23ec0 (diff) | |
download | chrome-ec-c72f66c050b7754c36436583272965b9ca4fd850.tar.gz |
Add wake signal to PCH
This works similar to SCI/SMI events, but triggers a separate
level-sensitive signal to the PCH instead.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=chrome-os-partner:8514
TEST=manual
From EC console:
gpioget PCH_WAKEn --> should be 1
hostevent wake 0x1
close lid switch (with magnet)
hostevent -> should show wake mask 0x1, raw events 0x1
gpioget PCH_WAKEn --> should be 0
hostevent clear 0x1
hostevent -> should show raw events 0
gpioget PCH_WAKEn --> should be 1
Change-Id: I29832c1dc30239a98987578f07dfeb25791dde11
Diffstat (limited to 'common/x86_power.c')
-rw-r--r-- | common/x86_power.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/x86_power.c b/common/x86_power.c index 1b6e2a4249..e58bbdf7d2 100644 --- a/common/x86_power.c +++ b/common/x86_power.c @@ -324,10 +324,11 @@ void x86_power_task(void) /* Deassert RCINn */ gpio_set_level(GPIO_PCH_RCINn, 1); - /* Mask all SCI/SMI host events until the host unmasks + /* Mask all host events until the host unmasks * them itself. */ - lpc_set_host_event_mask(0, 0); - lpc_set_host_event_mask(1, 0); + lpc_set_host_event_mask(LPC_HOST_EVENT_SMI, 0); + lpc_set_host_event_mask(LPC_HOST_EVENT_SCI, 0); + lpc_set_host_event_mask(LPC_HOST_EVENT_WAKE, 0); /* Turn on power rails */ gpio_set_level(GPIO_ENABLE_VS, 1); |