diff options
Diffstat (limited to 'board/cr50/board.h')
-rw-r--r-- | board/cr50/board.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h index ea0ac15dae..67cd0f7faf 100644 --- a/board/cr50/board.h +++ b/board/cr50/board.h @@ -407,6 +407,28 @@ void board_unwedge_i2cs(void); int board_in_prod_mode(void); +/* Bit masks for each bit in TPM_BOARD_CFG register */ +enum board_cfg_reg_bitmask { + BOARD_CFG_LOCKED_BIT = BIT(31), +}; + +/* Disable write on TPM_BOARD_CFG register. */ +void board_cfg_reg_write_disable(void); + +/* + * Write on TPM_BOARD_CFG register if BOARD_CFG_LOCKED_BIT is clear. + * + * @param value: value to write on TPM_BOARD_CFG + */ +void board_cfg_reg_write(unsigned int value); + +/* + * Read TPM_BOARD_CFG register. + * + * @param TPM_BOARD_CFG register value in uint32_t type. + */ +unsigned int board_cfg_reg_read(void); + #endif /* !__ASSEMBLER__ */ /* USB interface indexes (use define rather than enum to expand them) */ |