diff options
Diffstat (limited to 'chip/g/sps_tpm.c')
-rw-r--r-- | chip/g/sps_tpm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chip/g/sps_tpm.c b/chip/g/sps_tpm.c index 2c3f6876e7..3ef12994e6 100644 --- a/chip/g/sps_tpm.c +++ b/chip/g/sps_tpm.c @@ -271,3 +271,12 @@ void sps_tpm_enable(void) sps_register_rx_handler(SPS_GENERIC_MODE, tpm_rx_handler, 3); init_new_cycle(); } + +void sps_tpm_disable(void) +{ + sps_tpm_state = SPS_TPM_STATE_PONDERING; + sps_unregister_rx_handler(); + /* We don't care anymore, so we can sleep whenever */ + delay_sleep_by(0); + enable_sleep(SLEEP_MASK_SPI); +} |