summaryrefslogtreecommitdiff
path: root/SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c
diff options
context:
space:
mode:
authorYao, Jiewen <jiewen.yao@intel.com>2016-01-26 01:30:35 +0000
committerjyao1 <jyao1@Edk2>2016-01-26 01:30:35 +0000
commit8e997ab8d32ea9c4882912ad514e6a20901cf54e (patch)
treea3a94ae878c8974e622f778bd5da2f715fab206b /SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c
parentd967d6d96fc18d7a53d32223f5813b12cda19e8d (diff)
downloadedk2-8e997ab8d32ea9c4882912ad514e6a20901cf54e.zip
edk2-8e997ab8d32ea9c4882912ad514e6a20901cf54e.tar.gz
edk2-8e997ab8d32ea9c4882912ad514e6a20901cf54e.tar.bz2
SecurityPkg: Add TPM PTP detection in TPM12 device lib.
The TPM RequestUseTpm API can only set register to use the hardware, but it can not be used to distinguish TPM12 or TPM2 device. TPM PTP defines same address with TIS, so we need detect the TPM device is PTP or TIS in RequestUseTpm. Also, Tcg2Config driver call RequestUseTpm to detect TPM hardware device. So we have to add check here. There is no need to support PTP CRB style SubmitCommand(), because TPM2 device can not accept TPM12 style command. This patch also uses TpmTis.h instead of duplicate definition. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com> Reviewed-by: "Zhang, Chao B" <chao.b.zhang@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19742 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c')
0 files changed, 0 insertions, 0 deletions