diff options
Diffstat (limited to 'board/cr50/board.h')
-rw-r--r-- | board/cr50/board.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h index 540f4c622d..ea0ac15dae 100644 --- a/board/cr50/board.h +++ b/board/cr50/board.h @@ -366,6 +366,27 @@ int ec_is_on(void); int ec_is_rx_allowed(void); int servo_is_connected(void); +/* + * Assert INT_AP_L to acknowledge AP that cr50 is ready for next TPM command. + * NOTE: must be called by ISR only. + * + * Returns 1 if it successfully asserted (or scheduled to assert), or + * 0 if the extended long pulse was disabled. + */ +int assert_int_ap(void); + +/* + * Deassert INT_AP_L immediately. + * NOTE: must be called by ISR only. + */ +void deassert_int_ap(void); + +/* Register a function that should be called when INT_AP_L extension starts. */ +void int_ap_register(void (*func_enable)(void)); + +void int_ap_extension_enable(void); +void int_ap_extension_stop_pulse(void); + /* Moving from legacy versions might require NVMEM transition. */ int board_nvmem_legacy_check_needed(void); |