diff options
author | Mike Baiocchi <mbaiocch@us.ibm.com> | 2019-06-10 23:09:11 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-06-27 10:58:15 -0500 |
commit | d978f97d33f0e16c7fd8938da7eba6e69fa4f99a (patch) | |
tree | c129454fcea9cebcc6118f69c6e62591a438a324 /src/usr/targeting/common/processMrw.pl | |
parent | 3805319f1d630c6bc9c022b3e9eeb601aa3ffbf4 (diff) | |
download | talos-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/processMrw.pl')
-rwxr-xr-x | src/usr/targeting/common/processMrw.pl | 12 |
1 files changed, 11 insertions, 1 deletions
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 "") |