summaryrefslogtreecommitdiff
path: root/include/throttle_ap.h
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2020-03-24 15:35:58 -0600
committerCommit Bot <commit-bot@chromium.org>2020-03-28 01:02:14 +0000
commit68b77f7c6ca95602d9cc5d63798c620e190c30f6 (patch)
tree8d1f524d730296ac228ee6ce80b1d18d0e01fb25 /include/throttle_ap.h
parent4f312996f9d74ebb2ca62cc053564797bd28f8c4 (diff)
downloadchrome-ec-68b77f7c6ca95602d9cc5d63798c620e190c30f6.tar.gz
Volteer: add monitoring for PROCHOT input
Add monotoring of the PROCHOT input to the EC. BUG=b:152340521 BRANCH=none TEST=makebuild all TEST=Assert PROCHOT output from the EC and confirm EC console logging or PROCHOT input. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Ib28537a227ea40ac947f7b999a85354b1ae4c111 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2120067 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'include/throttle_ap.h')
-rw-r--r--include/throttle_ap.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/throttle_ap.h b/include/throttle_ap.h
index 442a6cb634..fbfa36aed3 100644
--- a/include/throttle_ap.h
+++ b/include/throttle_ap.h
@@ -52,6 +52,19 @@ void throttle_ap(enum throttle_level level,
enum throttle_type type,
enum throttle_sources source);
+/**
+ * Interrupt handler to monitor PROCHOT input to the EC. The PROCHOT signal
+ * can be asserted by the AP or by other devices on the board, such as chargers
+ * and voltage regulators.
+ *
+ * The board initialization is responsible for enabling the interrupt.
+ *
+ * @param signal GPIO signal connected to PROCHOT input. The polarity of this
+ * signal is active high unless CONFIG_CPU_PROCHOT_ACTIVE_LOW
+ * is defined.
+ */
+void throttle_ap_prochot_input_interrupt(enum gpio_signal signal);
+
#else
static inline void throttle_ap(enum throttle_level level,
enum throttle_type type,