summaryrefslogtreecommitdiffstats
path: root/src/include/usr/devicefw
diff options
context:
space:
mode:
authorChris Engel <cjengel@us.ibm.com>2015-03-19 16:05:07 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-08-31 17:54:12 -0500
commit0795cc6781a4d937786b39c23b655397432ec90e (patch)
treec046357de087101de900b3958e18d60812462381 /src/include/usr/devicefw
parentb9c64e6a1948009018490b3cd41bc8725a8a6050 (diff)
downloadtalos-hostboot-0795cc6781a4d937786b39c23b655397432ec90e.tar.gz
talos-hostboot-0795cc6781a4d937786b39c23b655397432ec90e.zip
Nuvoton TPM 1.2 Device Driver
This adds support for the Nuvoton TPM 1.2 in simics Change-Id: I24973cb9824e31967aae3fb97e86a631e514b2ff RTC: 125287 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16535 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/devicefw')
-rw-r--r--src/include/usr/devicefw/userif.H15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/usr/devicefw/userif.H b/src/include/usr/devicefw/userif.H
index eac5366aa..55751d97d 100644
--- a/src/include/usr/devicefw/userif.H
+++ b/src/include/usr/devicefw/userif.H
@@ -62,6 +62,7 @@ namespace DeviceFW
LPC,
IPMIBT, // As opposed to other phy's
PVPD,
+ TPM,
LAST_ACCESS_TYPE,
};
@@ -225,6 +226,20 @@ namespace DeviceFW
static_cast<uint64_t>(( i_offset ))
/**
+ * Construct the device addressing parameters for the TPM device ops.
+ * @param[in] i_tpm_enum The chip number of the TPM to access. See
+ * tpm_chip_types_t in tpmddif.H
+ * @param[in] i_tpm_operation The TPM operation to perform. See
+ * tpm_op_types_t in tpmddif.H
+ * @param[in] i_command_len Command length to write during transmit
+ * operations
+ */
+ #define DEVICE_TPM_ADDRESS( i_tpm_enum, i_tpm_op, i_command_len )\
+ DeviceFW::TPM, static_cast<uint64_t>(( i_tpm_enum )),\
+ static_cast<uint64_t>(( i_tpm_op )),\
+ static_cast<uint64_t>(( i_command_len ))
+
+ /**
* Construct the device addressing parameters for the GPIO port extender ops
* @param[in] i_gpio_num - The port extender device type.
* @param[in] i_gpio_pin = The GPIO port address
OpenPOWER on IntegriCloud