diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 2 | ||||
-rw-r--r-- | include/throttle_ap.h | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 45fdc4e2a4..9c5c7e3ca8 100644 --- a/include/config.h +++ b/include/config.h @@ -2948,6 +2948,8 @@ /* * On x86 systems, define this option if the CPU_PROCHOT signal is active low. + * This setting also applies to monitoring the PROCHOT input if provided by + * the board. */ #undef CONFIG_CPU_PROCHOT_ACTIVE_LOW 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, |