diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-02-26 16:24:30 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-03-04 12:22:07 +0000 |
commit | 89236992913fbd704e4c68f663d7c13528702a3c (patch) | |
tree | 2f7a0aae44f0c9dad1aaa4c26d61aa5f29de190e /OvmfPkg/OvmfPkgIa32.fdf | |
parent | 07952a962a40efe65729c3ccb9b8934571cec1af (diff) | |
download | edk2-89236992913fbd704e4c68f663d7c13528702a3c.tar.gz edk2-89236992913fbd704e4c68f663d7c13528702a3c.tar.bz2 edk2-89236992913fbd704e4c68f663d7c13528702a3c.zip |
OvmfPkg: detect TPM 1.2 in Tcg2ConfigPei
Complement commit 6cf1880fb5b ("OvmfPkg: add customized Tcg2ConfigPei
clone", 2018-03-09) by detecting TPM 1.2 devices.
Since Tpm12RequestUseTpm() returns success on any TPM interface,
(including FIFO & CRB which are TPM 2.0), try to send a GetTicks TPM
1.2 command to probe the version. In case of failure, fallback on TPM
2.0 path.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Message-Id: <20200226152433.1295789-3-marcandre.lureau@redhat.com>
Tested-by: Simon Hardy <simon.hardy@itdev.co.uk>
Diffstat (limited to 'OvmfPkg/OvmfPkgIa32.fdf')
0 files changed, 0 insertions, 0 deletions