summaryrefslogtreecommitdiffstats
path: root/src/include/usr/i2c
diff options
context:
space:
mode:
authorDean Sanner <dsanner@us.ibm.com>2014-09-08 13:58:12 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-09-26 13:56:00 -0500
commit84d598c4c7de197f01dcd0adb20eea27b614e9e1 (patch)
tree9ca325894cc25ea0d7fd539b7be7fc5387d0dcf3 /src/include/usr/i2c
parent8f526d154b379761cdd0b2dd6656532e46d89a11 (diff)
downloadtalos-hostboot-84d598c4c7de197f01dcd0adb20eea27b614e9e1.tar.gz
talos-hostboot-84d598c4c7de197f01dcd0adb20eea27b614e9e1.zip
Move pcie power off prior to starting PCIe clocks
This commit moves pcie power off prior to starting PCIe clocks. It also created i2cResetMaster() function to be called before SBE Update in istep 9. Change-Id: I330a5cabf1e778c1354aa3d93d4dedfded7bf013 CQ: SW276751 Backport: release-fips820 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13235 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/i2c')
-rw-r--r--src/include/usr/i2c/i2cif.H29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/include/usr/i2c/i2cif.H b/src/include/usr/i2c/i2cif.H
index 422d024cd..ac28686b8 100644
--- a/src/include/usr/i2c/i2cif.H
+++ b/src/include/usr/i2c/i2cif.H
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2014 */
+/* Contributors Listed Below - COPYRIGHT 2012,2014 */
+/* [+] International Business Machines Corp. */
+/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
@@ -37,6 +39,31 @@ namespace I2C
*/
errlHndl_t i2cSetupMasters ( void );
+
+/**
+* @enum i2cResetType
+*
+* @brief I2C Reset Type specifies what is reset when i2cResetMasters() is called
+* @todo RTC 115832 - additional enums will be added
+*
+*/
+enum i2cResetType
+{
+ I2C_RESET_INVALID = 0x00,
+ I2C_RESET_PROC_HOST = 0x01, // Only Host (not FSI)
+};
+
+/**
+ * @brief This function will handle everything required to reset various
+ * I2C master engines.
+ *
+ * @param[in] i_resetType - Specfies which I2C master engines to reset
+ *
+ * @return errlHndl_t - Null if successful, otherwise a pointer to
+ * the error log.
+ */
+errlHndl_t i2cResetMasters ( i2cResetType i_resetType );
+
}; // end namespace I2C
#endif // end __I2CIF_H
OpenPOWER on IntegriCloud