Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Infineon I2C TPM1.2 chip #1

Merged
merged 4 commits into from
Jun 17, 2022

Conversation

SergiiDmytruk
Copy link
Member

More details in commit messages.

Callers just fail on this error instead of retrying, so retry here as
request is likely to succeed on the next try.

Signed-off-by: Sergii Dmytruk <[email protected]>
libstb/tss/trustedbootCmds.C Outdated Show resolved Hide resolved
libstb/drivers/tpm_i2c_infineon.h Outdated Show resolved Hide resolved
libstb/drivers/tpm_i2c_infineon.h Show resolved Hide resolved
To allow marking TPM with version it supports.

Signed-off-by: Sergii Dmytruk <[email protected]>
Only SHA-1 is supported by TPM 1.2, so the function will pick that hash
from those passed to tpmCmdPcrExtend2Hash() and fail if SHA-1 is not
present.

This is the only command actually used by skiboot.  The only other one
that can be issued is PCR Read, but that's done only for debug dumps.
Several others which are implemented are never invoked.

Signed-off-by: Sergii Dmytruk <[email protected]>
Might actually work for SLB9535 as well.

This is a Nuvoton driver slightly modified for Infineon:
 - use different offsets
 - removed workarounds for Nuvoton
 - discard 0xff status as coreboot does
 - 3-byte burst count (0xffffff is also discarded)

The differences aren't drastic and both drivers can be merged in some
form, but it seemed simpler to copy and modify without touching Nuvoton
driver.

Signed-off-by: Sergii Dmytruk <[email protected]>
@krystian-hebel
Copy link

@SergiiDmytruk did you forgot to push? I don't see any new changes.

@SergiiDmytruk
Copy link
Member Author

@krystian-hebel, sorry, I pushed it to a wrong remote.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants