security/tpm: Add vendor-specific tis functions to read/write TPM regs
commit63632d7d82648f77067eadb1bf8c539d7b2d7aaf
authorTim Wawrzynczak <twawrzynczak@chromium.org>
Wed, 16 Feb 2022 20:44:48 +0000 (16 13:44 -0700)
committerFelix Held <felix-coreboot@felixheld.de>
Tue, 1 Mar 2022 16:52:31 +0000 (1 16:52 +0000)
tree5d8e0ac79002d1599970fbe857c742d024cb3b47
parent591c7ebf18359e9686aa592bc5636e9811a5a468
security/tpm: Add vendor-specific tis functions to read/write TPM regs

In order to abstract bus-specific logic from TPM logic, the prototype
for two vendor-specific tis functions are added in this
patch. tis_vendor_read() can be used to read directly from TPM
registers, and tis_vendor_write() can be used to write directly to TPM
registers.

Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: I939cf5b6620b6f5f6d454c53fcaf37c153702acc
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62058
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
src/security/tpm/tis.h