summaryrefslogtreecommitdiff
path: root/include/power_button.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/power_button.h')
-rw-r--r--include/power_button.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/power_button.h b/include/power_button.h
index 3297c411eb..cfa234c8be 100644
--- a/include/power_button.h
+++ b/include/power_button.h
@@ -54,4 +54,12 @@ void power_button_pch_release(void);
*/
void power_button_pch_pulse(void);
+/**
+ * Returns the time when DSW_PWROK was asserted. It should be customized
+ * by each board. See CONFIG_DELAY_DSW_PWROK_TO_PWRBTN for details.
+ *
+ * @return time in usec when DSW_PWROK was asserted.
+ */
+int64_t get_time_dsw_pwrok(void);
+
#endif /* __CROS_EC_POWER_BUTTON_H */