summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorTerry J. Opie <opiet@us.ibm.com>2012-11-27 14:15:04 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-12-13 16:03:20 -0600
commitae09857da206659ed5a43a416a2827515a5ec3b5 (patch)
tree85aa81be071a1dcef15719e965e455d3a3dc1a6c /src/include
parent0e3cbd6ef804c8bd95711b6674ec13048b67a987 (diff)
downloadtalos-hostboot-ae09857da206659ed5a43a416a2827515a5ec3b5.tar.gz
talos-hostboot-ae09857da206659ed5a43a416a2827515a5ec3b5.zip
Program I2C Bus Divisor Value
Change-Id: I784a6b598298fcd09dcd5c108e0a47f1e7daa544 RTC: 49136 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2440 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/i2c/i2cif.H42
-rw-r--r--src/include/usr/i2c/i2creasoncodes.H47
2 files changed, 67 insertions, 22 deletions
diff --git a/src/include/usr/i2c/i2cif.H b/src/include/usr/i2c/i2cif.H
new file mode 100644
index 000000000..6373337b8
--- /dev/null
+++ b/src/include/usr/i2c/i2cif.H
@@ -0,0 +1,42 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/i2c/i2cif.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2012 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
+#ifndef __I2CIF_H
+#define __I2CIF_H
+
+namespace I2C
+{
+
+/**
+ * @brief This function will handle everything required to setup the master
+ * engines.
+ * Mainly, as of current code, this is being used to write the I2C Bus
+ * Divisor values to the master engines to be used by Phyp.
+ *
+ * @return errlHndl_t - Null if successful, otherwise a pointer to
+ * the error log.
+ */
+errlHndl_t i2cSetupMasters ( void );
+
+}; // end namespace I2C
+
+#endif // end __I2CIF_H
diff --git a/src/include/usr/i2c/i2creasoncodes.H b/src/include/usr/i2c/i2creasoncodes.H
index ce2af7327..ff12d8191 100644
--- a/src/include/usr/i2c/i2creasoncodes.H
+++ b/src/include/usr/i2c/i2creasoncodes.H
@@ -1,25 +1,25 @@
-// IBM_PROLOG_BEGIN_TAG
-// This is an automatically generated prolog.
-//
-// $Source: src/include/usr/i2c/i2creasoncodes.H $
-//
-// IBM CONFIDENTIAL
-//
-// COPYRIGHT International Business Machines Corp. 2011
-//
-// p1
-//
-// Object Code Only (OCO) source materials
-// Licensed Internal Code Source Materials
-// IBM HostBoot Licensed Internal Code
-//
-// The source code for this program is not published or other-
-// wise divested of its trade secrets, irrespective of what has
-// been deposited with the U.S. Copyright Office.
-//
-// Origin: 30
-//
-// IBM_PROLOG_END
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/i2c/i2creasoncodes.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2011,2012 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
/**
* @file i2creasoncodes.H
*
@@ -53,6 +53,7 @@ enum i2cModuleId
I2C_WAIT_FOR_CMD_COMP = 0x05,
I2C_READ_STATUS_REG = 0x06,
I2C_CHECK_FOR_ERRORS = 0x07,
+ I2C_SETUP_MASTERS = 0x08,
};
/**
@@ -71,6 +72,8 @@ enum i2cReasonCode
I2C_CMD_COMP_TIMEOUT = I2C_COMP_ID | 0x05, // Timeout waiting for Cmd Complete
I2C_HW_ERROR_FOUND = I2C_COMP_ID | 0x06, // Error found in Status register
I2C_MASTER_SENTINEL_TARGET = I2C_COMP_ID | 0x07, // Master Sentinel used as target
+ I2C_NO_CENTAUR_FOUND = I2C_COMP_ID | 0x08, // No Centaur chip found
+ I2C_NO_PROC_FOUND = I2C_COMP_ID | 0x09, // No Processor chip found
};
}; // end I2C
OpenPOWER on IntegriCloud