2 #ifndef CR50_TSS_STRUCTURES_H_
3 #define CR50_TSS_STRUCTURES_H_
11 #define TPM2_CR50_VENDOR_COMMAND ((TPM_CC)(TPM_CC_VENDOR_BIT_MASK | 0))
12 #define TPM2_CR50_SUB_CMD_IMMEDIATE_RESET (19)
13 #define TPM2_CR50_SUB_CMD_NVMEM_ENABLE_COMMITS (21)
14 #define TPM2_CR50_SUB_CMD_TURN_UPDATE_ON (24)
15 #define TPM2_CR50_SUB_CMD_GET_REC_BTN (29)
16 #define TPM2_CR50_SUB_CMD_TPM_MODE (40)
17 #define TPM2_CR50_SUB_CMD_GET_BOOT_MODE (52)
18 #define TPM2_CR50_SUB_CMD_RESET_EC (53)
21 #define VENDOR_RC_ERR 0x00000500
uint32_t tlcl_cr50_get_tpm_mode(uint8_t *tpm_mode)
CR50 specific TPM command sequence to query the current TPM mode.
uint32_t tlcl_cr50_immediate_reset(uint16_t timeout_ms)
CR50 specific TPM command sequence to trigger an immediate reset to the Cr50 device after the specifi...
uint32_t tlcl_cr50_enable_update(uint16_t timeout_ms, uint8_t *num_restored_headers)
CR50 specific tpm command to restore header(s) of the dormant RO/RW image(s) and in case there indeed...
uint32_t tlcl_cr50_reset_ec(void)
CR50 specific TPM command sequence to issue an EC reset.
uint32_t tlcl_cr50_get_recovery_button(uint8_t *recovery_button_state)
CR50 specific tpm command to get the latched state of the recovery button.
uint32_t tlcl_cr50_enable_nvcommits(void)
CR50 specific tpm command to enable nvmem commits before internal timeout expires.
@ TPM_MODE_ENABLED_TENTATIVE
uint32_t tlcl_cr50_get_boot_mode(uint8_t *boot_mode)
CR50 specific TPM command sequence to query the current boot mode.
@ VENDOR_RC_INTERNAL_ERROR
@ VENDOR_RC_NO_SUCH_SUBCOMMAND
@ VENDOR_RC_NO_SUCH_COMMAND