summaryrefslogtreecommitdiffstats
path: root/src/include/usr/i2c
diff options
context:
space:
mode:
authorChris Engel <cjengel@us.ibm.com>2017-01-23 14:00:25 -0600
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2017-01-27 16:41:57 -0500
commit5784da25300866c71551f1f0411d469eb3a3c922 (patch)
tree5916d1a64353257d72ac19371581aadad9f96bb3 /src/include/usr/i2c
parent0446c85a500a07e1e81fe49cf91af207b88a753f (diff)
downloadtalos-hostboot-5784da25300866c71551f1f0411d469eb3a3c922.tar.gz
talos-hostboot-5784da25300866c71551f1f0411d469eb3a3c922.zip
Add TPM4 locality support
Change-Id: I9f16fe77ee18f3d8839d0a06f9322ca1b1e47d93 RTC: 134415 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35271 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Timothy R. Block <block@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include/usr/i2c')
-rw-r--r--src/include/usr/i2c/tpmddif.H16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/include/usr/i2c/tpmddif.H b/src/include/usr/i2c/tpmddif.H
index 67602c2be..9691450d6 100644
--- a/src/include/usr/i2c/tpmddif.H
+++ b/src/include/usr/i2c/tpmddif.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2016 */
+/* Contributors Listed Below - COPYRIGHT 2015,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -50,6 +50,15 @@ enum tpm_addr_size_t
};
/**
+ * @brief TPM Locality to address for operation
+ */
+enum tpm_locality_t
+{
+ TPM_LOCALITY_0 = 0,
+ TPM_LOCALITY_4 = 4,
+};
+
+/**
* @brief Structure of common parameters needed by different parts of
* the code.
*/
@@ -92,11 +101,14 @@ bool tpmPresence ( TARGETING::Target * i_target);
* @param[in/out] io_tpmInfo The structure that will contain the attribute data
* read from the target device. Chip field must be set
*
+ * @param[in] i_locality TPM locality to address
+ *
* @return errlHndl_t NULL if successful, otherwise a pointer to the
* error log.
*/
errlHndl_t tpmReadAttributes ( TARGETING::Target * i_target,
- tpm_info_t & io_tpmInfo );
+ tpm_info_t & io_tpmInfo,
+ tpm_locality_t i_locality);
}; // end namespace TPMDD
OpenPOWER on IntegriCloud