summaryrefslogtreecommitdiff
path: root/chip/g/rbox.h
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2016-10-10 14:03:48 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-10-11 01:48:21 -0700
commit6abbb636393ddbb504d72dab5377a8a8dfe79482 (patch)
tree5a40be76109a39fd9eaf463847215f214aeada3a /chip/g/rbox.h
parentbc34c98edd0e303617ce0dae7b283b18d290b0e7 (diff)
downloadchrome-ec-6abbb636393ddbb504d72dab5377a8a8dfe79482.tar.gz
cr50: add press and release options to powerbtn command
This change adds options to the powerbtn console command to press and release the power button. BUG=chrome-os-partner:58123 BRANCH=none TEST=manual 'powerbtn press' force a power button press 'powerbtn release' release the power button. This will not override the signal if the button is physically pressed. Change-Id: I52631d30dbae874ba6637f728cb6e435cb626e12 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/396207 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'chip/g/rbox.h')
-rw-r--r--chip/g/rbox.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/chip/g/rbox.h b/chip/g/rbox.h
index 0d90b2ce25..e327faaf8e 100644
--- a/chip/g/rbox.h
+++ b/chip/g/rbox.h
@@ -6,6 +6,23 @@
#ifndef __CROS_RBOX_H
#define __CROS_RBOX_H
-/* Simultate a power button press */
-void rbox_press_power_btn(int ms);
+/**
+ * Return true if the power button output shows it is pressed
+ */
+int rbox_powerbtn_is_pressed(void);
+
+/**
+ * Return true if power button rbox output override is enabled
+ */
+int rbox_powerbtn_override_is_enabled(void);
+
+/**
+ * Disable the output override
+ */
+void rbox_powerbtn_release(void);
+
+/**
+ * Override power button output to force a power button press
+ */
+void rbox_powerbtn_press(void);
#endif /* __CROS_RBOX_H */