summaryrefslogtreecommitdiff
path: root/include/power_button.h
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2015-06-03 13:34:30 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-04 01:15:55 +0000
commit1de5ac02ec5558f118e64a354967a83d6994d9c4 (patch)
treeb8d6306d14962506e6ed879d844096b00a65f924 /include/power_button.h
parent45f7ddadd176f470c6cc8eb02b9dfaa08a573673 (diff)
downloadchrome-ec-1de5ac02ec5558f118e64a354967a83d6994d9c4.tar.gz
skylake: Use a simulated power button press to force-shutdown the AP
Holding the power button is currently the best known way to bring the AP back to a state where it is shutdown and not powered. BUG=chrome-os-partner:40826, chrome-os-partner:40677 TEST=Run `apshutdown` on glados, verify that power state machine transitions to G3 after several seconds. Run `powerbtn`, verify that state machine transitions back to S0. BRANCH=None Change-Id: Ia799c5f199127f31bd24907b93946c6289d381f8 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/275060 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'include/power_button.h')
-rw-r--r--include/power_button.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/power_button.h b/include/power_button.h
index a7ec4612ad..d996cbbdbb 100644
--- a/include/power_button.h
+++ b/include/power_button.h
@@ -40,6 +40,11 @@ int power_button_signal_asserted(void);
void power_button_interrupt(enum gpio_signal signal);
/**
+ * For x86 systems, force-assert the power button signal to the PCH.
+ */
+void power_button_pch_press(void);
+
+/**
* For x86 systems, force-deassert the power button signal to the PCH.
*/
void power_button_pch_release(void);