tpm: add TPM interface to lookup TPM version
commit9af7a721662de8cdfa7b02b7e9cc2c2c30e7bacb
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 6 Nov 2017 18:39:16 +0000 (6 19:39 +0100)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 15 Dec 2017 04:39:14 +0000 (14 23:39 -0500)
treeb0aadbe61c7d67d5e95a2259ad9704f0020af3d3
parent3dfd5a2a50fc4907728eb83569c84b0d98b56582
tpm: add TPM interface to lookup TPM version

Do not hardcode TPM device model to lookup version, use an interface
instead.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
hw/tpm/tpm_tis.c
include/sysemu/tpm.h