![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <drivers/spi/tpm/tpm.h>
#include <security/tpm/tis.h>
#include <string.h>
#include <types.h>
Go to the source code of this file.
Macros | |
#define | CR50_DID_VID 0x00281ae0L |
#define | TI50_DID_VID 0x504a6666L |
#define | CR50_BOARD_CFG_LOCKBIT_MASK 0x80000000U |
#define | CR50_BOARD_CFG_FEATUREBITS_MASK 0x3FFFFFFFU |
#define | CR50_BOARD_CFG_100US_READY_PULSE 0x00000001U |
#define | CR50_BOARD_CFG_VALUE |
#define | CR50_FW_VER_REG_SPI (TPM_LOCALITY_0_SPI_BASE + 0xf90) |
#define | CR50_BOARD_CFG_REG_SPI (TPM_LOCALITY_0_SPI_BASE + 0xfe0) |
#define | CR50_FW_VER_REG_I2C 0x0f |
#define | CR50_BOARD_CFG_REG_I2C 0x1c |
Enumerations | |
enum | cr50_register { CR50_FW_VER_REG , CR50_BOARD_CFG_REG } |
Functions | |
static int | get_reg_addr (enum cr50_register reg) |
static bool | cr50_fw_supports_board_cfg (struct cr50_firmware_version *version) |
static uint32_t | cr50_get_board_cfg (void) |
enum cb_err | cr50_set_board_cfg (void) |
Set the BOARD_CFG register on the TPM chip to a particular compile-time constant value. More... | |
bool | cr50_is_long_interrupt_pulse_enabled (void) |
static enum cb_err | cr50_parse_fw_version (const char *version_str, struct cr50_firmware_version *ver) |
enum cb_err | cr50_get_firmware_version (struct cr50_firmware_version *version) |
#define CR50_BOARD_CFG_REG_SPI (TPM_LOCALITY_0_SPI_BASE + 0xfe0) |
#define CR50_BOARD_CFG_VALUE |
#define CR50_FW_VER_REG_SPI (TPM_LOCALITY_0_SPI_BASE + 0xf90) |
enum cr50_register |
|
static |
Definition at line 76 of file cr50.c.
References BIOS_ERR, CB_SUCCESS, CR50_BOARD_CFG_FEATUREBITS_MASK, CR50_BOARD_CFG_REG, cr50_fw_supports_board_cfg(), cr50_get_firmware_version(), get_reg_addr(), printk, tis_vendor_read(), and value.
Referenced by cr50_get_firmware_version().
enum cb_err cr50_get_firmware_version | ( | struct cr50_firmware_version * | version | ) |
Definition at line 151 of file cr50.c.
References CONFIG, CR50_BOARD_CFG_100US_READY_PULSE, and cr50_get_board_cfg().
Referenced by cr50_get_board_cfg(), fifo_transfer(), and tpm_vendor_init().
Definition at line 151 of file cr50.c.
Referenced by mainboard_update_soc_chip_config().
|
static |
Set the BOARD_CFG register on the TPM chip to a particular compile-time constant value.
Definition at line 76 of file cr50.c.
Referenced by fifo_transfer(), and tpm_vendor_init().
|
static |
Definition at line 31 of file cr50.c.
References CONFIG, CR50_BOARD_CFG_REG, CR50_BOARD_CFG_REG_I2C, CR50_BOARD_CFG_REG_SPI, CR50_FW_VER_REG, CR50_FW_VER_REG_I2C, and CR50_FW_VER_REG_SPI.
Referenced by cr50_get_board_cfg().