diff options
author | Mike Baiocchi <baiocchi@us.ibm.com> | 2013-05-23 08:56:11 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-07-02 15:28:45 -0500 |
commit | 47e1255f110771d5042e322d207111abcd430bc3 (patch) | |
tree | 9a917efce461ed45d2f4f77632ec64c8fe25f1eb /src/include/usr/i2c | |
parent | b152baa74e1df1d85951ddcbbf0ae393544f68b6 (diff) | |
download | talos-hostboot-47e1255f110771d5042e322d207111abcd430bc3.tar.gz talos-hostboot-47e1255f110771d5042e322d207111abcd430bc3.zip |
Updates to I2C and EEPROM Device Drivers to work for P8
There were several changes required for successful operation
of the I2C and EEPROM Device Drivers based on HW Testing.
There was also a need to upddate the attribute files and
various testcases for processor support.
Change-Id: Idd9351ffb01a992c835f99d06ef1246709eceb8b
RTC: 64765
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4678
Tested-by: Jenkins Server
Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@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/eepromddreasoncodes.H | 56 | ||||
-rw-r--r-- | src/include/usr/i2c/eepromif.H | 46 | ||||
-rw-r--r-- | src/include/usr/i2c/i2cif.H | 2 |
3 files changed, 76 insertions, 28 deletions
diff --git a/src/include/usr/i2c/eepromddreasoncodes.H b/src/include/usr/i2c/eepromddreasoncodes.H index 092f0c5bc..df08679fd 100644 --- a/src/include/usr/i2c/eepromddreasoncodes.H +++ b/src/include/usr/i2c/eepromddreasoncodes.H @@ -1,25 +1,25 @@ -// IBM_PROLOG_BEGIN_TAG -// This is an automatically generated prolog. -// -// $Source: src/include/usr/i2c/eepromddreasoncodes.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/eepromddreasoncodes.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2011,2013 */ +/* */ +/* 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 eepromddreasoncodes.H * @@ -65,11 +65,13 @@ 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_ADDR_INFO0_NOT_FOUND = EEPROM_COMP_ID | 0x03, - EEPROM_ADDR_INFO1_NOT_FOUND = EEPROM_COMP_ID | 0x04, - EEPROM_INVALID_CHIP = EEPROM_COMP_ID | 0x05, - EEPROM_DIMM_I2C_MASTER_PATH_ERROR = EEPROM_COMP_ID | 0x06, - EEPROM_TARGET_NULL = EEPROM_COMP_ID | 0x07, + 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, }; }; // end EEPROM diff --git a/src/include/usr/i2c/eepromif.H b/src/include/usr/i2c/eepromif.H new file mode 100644 index 000000000..80f4aa6cf --- /dev/null +++ b/src/include/usr/i2c/eepromif.H @@ -0,0 +1,46 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/include/usr/i2c/eepromif.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2013 */ +/* */ +/* 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 __EEPROMIF_H +#define __EEPROMIF_H + +namespace EEPROM +{ + +/** + * @brief Enumerations to link EEPROM types to EEPROM's chip number behind + * a device +*/ +typedef enum +{ + VPD_PRIMARY = 0, + VPD_BACKUP = 1, + SBE_PRIMARY = 2, + SBE_BACKUP = 3, + LAST_CHIP_TYPE +} eeprom_chip_types_t; + + +}; // end namespace I2C + +#endif // end __EEPROMIF_H + diff --git a/src/include/usr/i2c/i2cif.H b/src/include/usr/i2c/i2cif.H index 6373337b8..84fece074 100644 --- a/src/include/usr/i2c/i2cif.H +++ b/src/include/usr/i2c/i2cif.H @@ -5,7 +5,7 @@ /* */ /* IBM CONFIDENTIAL */ /* */ -/* COPYRIGHT International Business Machines Corp. 2012 */ +/* COPYRIGHT International Business Machines Corp. 2012,2013 */ /* */ /* p1 */ /* */ |