diff options
author | Mike Baiocchi <baiocchi@us.ibm.com> | 2013-08-14 14:26:51 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-10-10 08:58:28 -0500 |
commit | 28d2cbbfe962284d1c43129adca2812e215abe71 (patch) | |
tree | 76bb37e17a07410b831412cf4b9e86990813cd41 /src/include/usr/i2c | |
parent | 84795d15ac8728b2787c67200662db8f2cb2c909 (diff) | |
download | talos-hostboot-28d2cbbfe962284d1c43129adca2812e215abe71.tar.gz talos-hostboot-28d2cbbfe962284d1c43129adca2812e215abe71.zip |
Add More Attribute Support for I2C and EEPROM Drivers
This commit adds more attribute fields to be used in the
EEPROM device drivers. The I2C device driver is also being
updated so that it can eventually get the desired bus speed
from an attribute, as well.
Change-Id: I6b609cafdd7ea3b015a4f62009297e0149ba5b84
RTC: 72715
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6116
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/i2c')
-rw-r--r-- | src/include/usr/i2c/eepromddreasoncodes.H | 13 | ||||
-rw-r--r-- | src/include/usr/i2c/i2creasoncodes.H | 5 |
2 files changed, 10 insertions, 8 deletions
diff --git a/src/include/usr/i2c/eepromddreasoncodes.H b/src/include/usr/i2c/eepromddreasoncodes.H index df08679fd..9c9b16214 100644 --- a/src/include/usr/i2c/eepromddreasoncodes.H +++ b/src/include/usr/i2c/eepromddreasoncodes.H @@ -65,13 +65,12 @@ enum eepromReasonCode EEPROM_INVALID_REASONCODE = EEPROM_COMP_ID | 0x00, // Invalid Reasoncode EEPROM_INVALID_OPERATION = EEPROM_COMP_ID | 0x01, EEPROM_INVALID_DEVICE_TYPE = EEPROM_COMP_ID | 0x02, - EEPROM_VPD_PRIMARY_INFO_NOT_FOUND = EEPROM_COMP_ID | 0x03, - EEPROM_VPD_BACKUP_INFO_NOT_FOUND = EEPROM_COMP_ID | 0x04, - EEPROM_SBE_PRIMARY_INFO_NOT_FOUND = EEPROM_COMP_ID | 0x05, - EEPROM_SBE_BACKUP_INFO_NOT_FOUND = EEPROM_COMP_ID | 0x06, - EEPROM_INVALID_CHIP = EEPROM_COMP_ID | 0x07, - EEPROM_DIMM_I2C_MASTER_PATH_ERROR = EEPROM_COMP_ID | 0x08, - EEPROM_TARGET_NULL = EEPROM_COMP_ID | 0x09, + EEPROM_ATTR_INFO_NOT_FOUND = EEPROM_COMP_ID | 0x03, + EEPROM_INVALID_CHIP = EEPROM_COMP_ID | 0x04, + EEPROM_DIMM_I2C_MASTER_PATH_ERROR = EEPROM_COMP_ID | 0x05, + EEPROM_TARGET_NULL = EEPROM_COMP_ID | 0x06, + EEPROM_INVALID_ADDR_OFFSET_SIZE = EEPROM_COMP_ID | 0x07, + EEPROM_OVERFLOW_ERROR = EEPROM_COMP_ID | 0x08, }; }; // end EEPROM diff --git a/src/include/usr/i2c/i2creasoncodes.H b/src/include/usr/i2c/i2creasoncodes.H index ff12d8191..267ffcc65 100644 --- a/src/include/usr/i2c/i2creasoncodes.H +++ b/src/include/usr/i2c/i2creasoncodes.H @@ -5,7 +5,7 @@ /* */ /* IBM CONFIDENTIAL */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2012 */ +/* COPYRIGHT International Business Machines Corp. 2011,2013 */ /* */ /* p1 */ /* */ @@ -54,8 +54,10 @@ enum i2cModuleId I2C_READ_STATUS_REG = 0x06, I2C_CHECK_FOR_ERRORS = 0x07, I2C_SETUP_MASTERS = 0x08, + I2C_SET_BUS_VARIABLES = 0x09, }; + /** * @enum i2cReasonCode * @@ -74,6 +76,7 @@ enum i2cReasonCode 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 + I2C_INVALID_BUS_SPEED_MODE = I2C_COMP_ID | 0x0A, // Invalid Bus Speed Mode }; }; // end I2C |