summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/common
diff options
context:
space:
mode:
authorMike Baiocchi <mbaiocch@us.ibm.com>2019-06-10 23:09:11 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-06-27 10:58:15 -0500
commitd978f97d33f0e16c7fd8938da7eba6e69fa4f99a (patch)
treec129454fcea9cebcc6118f69c6e62591a438a324 /src/usr/targeting/common
parent3805319f1d630c6bc9c022b3e9eeb601aa3ffbf4 (diff)
downloadtalos-hostboot-d978f97d33f0e16c7fd8938da7eba6e69fa4f99a.tar.gz
talos-hostboot-d978f97d33f0e16c7fd8938da7eba6e69fa4f99a.zip
Add Device Tree support for Nuvoton TPM 75x
This commit updates the code that creates the device tree to support Nuvoton TPM 75x models along with the existing 65x models. Change-Id: I46b08970911d259f620c747015800e4aeba34b99 RTC:204133 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/78743 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/common')
-rwxr-xr-xsrc/usr/targeting/common/genHDATstructures.pl2
-rwxr-xr-xsrc/usr/targeting/common/processMrw.pl12
2 files changed, 12 insertions, 2 deletions
diff --git a/src/usr/targeting/common/genHDATstructures.pl b/src/usr/targeting/common/genHDATstructures.pl
index 5150e3a06..2bbcbfd9a 100755
--- a/src/usr/targeting/common/genHDATstructures.pl
+++ b/src/usr/targeting/common/genHDATstructures.pl
@@ -6,7 +6,7 @@
#
# OpenPOWER HostBoot Project
#
-# Contributors Listed Below - COPYRIGHT 2015,2018
+# Contributors Listed Below - COPYRIGHT 2015,2019
# [+] International Business Machines Corp.
#
#
diff --git a/src/usr/targeting/common/processMrw.pl b/src/usr/targeting/common/processMrw.pl
index f0aaf4518..744eda2ef 100755
--- a/src/usr/targeting/common/processMrw.pl
+++ b/src/usr/targeting/common/processMrw.pl
@@ -3084,7 +3084,17 @@ sub processI2C
# <vendor>,<device type>,<purpose>,<scope>
if ($type_str eq "NUVOTON_TPM")
{
- $label = "nuvoton,npct601,tpm,host";
+ # Model values can be found in tpmddif.H and are kept in
+ # sync with TPM_MODEL attribute in attribute_types_hb.xml
+ my $tpm_model = $targetObj->getAttribute($i2c->{DEST_PARENT},"TPM_MODEL");
+ if ($tpm_model eq 1)
+ {
+ $label = "nuvoton,npct601,tpm,host";
+ }
+ if ($tpm_model eq 2)
+ {
+ $label = "tcg,tpm_i2c_ptp,tpm,host";
+ }
}
if ($label eq "")
OpenPOWER on IntegriCloud