diff options
author | Claudio Carvalho <cclaudio@linux.vnet.ibm.com> | 2016-09-28 05:01:12 -0300 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-10 15:29:35 +1100 |
commit | 56ad053c3e8bf0764ad5878cb018f00a389d30cf (patch) | |
tree | 0dcef4ec48d5dd83b77dee1bc837d4e10424529b /libstb/status_codes.h | |
parent | b018f352d2c0388a95609018ba11cf9ee9d9e464 (diff) | |
download | skiboot-56ad053c3e8bf0764ad5878cb018f00a389d30cf.zip skiboot-56ad053c3e8bf0764ad5878cb018f00a389d30cf.tar.gz skiboot-56ad053c3e8bf0764ad5878cb018f00a389d30cf.tar.bz2 |
Add i2c Nuvoton TPM 2.0 Driver
This adds the 1/5 step performed by the TPM I2C Nuvoton driver to
transmit a command to the TPM device. In this step the driver
checks if the TPM device is ready to receive a new command.
This adds the 2/5 step performed by the TPM I2C Nuvoton driver to
transmit a command to the TPM device. In this step the driver
writes a given command to master I2C FIFO.
This adds the 3/5 step performed by the TPM I2C Nuvoton driver to
transmit a command to the TPM device. In this step the driver
sets the TPMGO bit in the I2C master status register to indicate that
the command stored in the FIFO can be sent to the TPM device.
This adds the 4/5 step performed by the TPM I2C Nuvoton driver to
transmit a command to the TPM device. In this step the driver
reads from the I2C master FIFO the result that the TPM device returned
for the last command sent.
This adds the 5/5 step performed by the TPM I2C Nuvoton driver to
transmit a command to the TPM device. In this step the driver
sets the COMMAND_READY bit in the status register to indicate that the
TPM device is ready to receive a new command.
This adds the probe function to the TPM Nuvoton driver and also updates
the tpm_init() in tpm_chip.c to call the probe function.
Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com>
[stewart@linux.vnet.ibm.com: squash commits into one]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libstb/status_codes.h')
-rw-r--r-- | libstb/status_codes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libstb/status_codes.h b/libstb/status_codes.h index 385e764..1637e9f 100644 --- a/libstb/status_codes.h +++ b/libstb/status_codes.h @@ -25,4 +25,8 @@ /* secure boot */ #define STB_VERIFY_FAILED -100 +/* TPM */ +#define STB_TPM_OVERFLOW -300 +#define STB_TPM_TIMEOUT -301 + #endif /* __STB_STATUS_CODES_H */ |