tpm: provide explicit tpm register access
An issue was observed using a specific vendor's TPM in that it
chokes on access to registers that are not explicitly defined in the
PC client specification. The previous driver used generic access
functions for reading and writing registers. However, issues come
to play when reading from the status register. It read it as a 32-bit
value, but that read address 0x1b which is not defined in the spec.
Instead of using generic access functions for the tpm registers
provide explicit ones. To that end provide more high level wrapper
functions to perform the semantic access required.
Signed-off-by: Aaron Durbin <firstname.lastname@example.org>
Reviewed-by: Duncan Laurie <email@example.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <firstname.lastname@example.org>
1 file changed