summaryrefslogtreecommitdiff
path: root/include/chipset.h
diff options
context:
space:
mode:
authorTom Wai-Hong Tam <waihong@google.com>2018-04-25 10:06:04 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-05-08 13:17:14 -0700
commit548e4d9708cc4402497ed290daf4df672114302c (patch)
tree03aa8025431748f00d9e708fab56d0610363b415 /include/chipset.h
parent71e966af61f3e4b23e658f42552938c9d6941228 (diff)
downloadchrome-ec-548e4d9708cc4402497ed290daf4df672114302c.tar.gz
cheza: Support confirmation of power lost
Keep the timestamp of the latest power lost. Add a handler to wake the chipset task to check if power lost stays low for a while (the time between now and the latest power lost is longer than a period). BRANCH=none BUG=b:78455067 TEST=Toggle EC GPIO SYS_RST_L for a low pulse to execute PMIC reset sequence and verified AP reset but not a transition S0 -> S5. TEST=Toggle EC GPIO PMIC_KPD_PWR_ODL and SYS_RST_L for a low pulse (see power_off function) to execute PMIC shutdown sequence and verified a power-lost transition S0 -> S5. Change-Id: I8ed789d701e834195865bfdf2d302388d42618d2 Signed-off-by: Tom Wai-Hong Tam <waihong@google.com> Signed-off-by: Alexandru M Stan <amstan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1028831 Commit-Ready: Wai-Hong Tam <waihong@google.com> Tested-by: Wai-Hong Tam <waihong@google.com> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/chipset.h')
-rw-r--r--include/chipset.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/chipset.h b/include/chipset.h
index 85d33425f8..66398ea059 100644
--- a/include/chipset.h
+++ b/include/chipset.h
@@ -129,4 +129,12 @@ void chipset_handle_reboot(void);
*/
void chipset_reset_request_interrupt(enum gpio_signal signal);
+/**
+ * Chipset-specific power signal interrupt, overrides the default one.
+ *
+ * It is used in SDM845, to handle the short-low-pulse during the reset
+ * sequence which we don't consider it as a power-lost.
+ */
+void chipset_power_signal_interrupt(enum gpio_signal signal);
+
#endif /* __CROS_EC_CHIPSET_H */