From 417c6e0a4bb7c8f9d9721b73ddcae696007be15e Mon Sep 17 00:00:00 2001 From: Corey Swenson Date: Tue, 27 Jan 2015 09:05:37 -0600 Subject: HBRT Runtime VPD Updates Enables writes to VPD and handles disabling PNOR cache in manufacturing mode Change-Id: I03d4246ceb91520939f8b04f3b3d2fc31c116079 RTC: 114911 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15462 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell Reviewed-by: A. Patrick Williams III --- src/include/usr/i2c/i2cif.H | 5 ----- src/include/usr/i2c/i2creasoncodes.H | 2 ++ src/include/usr/vpd/vpd_if.H | 7 ++++++- 3 files changed, 8 insertions(+), 6 deletions(-) (limited to 'src/include/usr') diff --git a/src/include/usr/i2c/i2cif.H b/src/include/usr/i2c/i2cif.H index 51e3c3aad..f03e3bbcd 100644 --- a/src/include/usr/i2c/i2cif.H +++ b/src/include/usr/i2c/i2cif.H @@ -25,11 +25,6 @@ #ifndef __I2CIF_H #define __I2CIF_H -// Handy macros to check i2c ranges -// Pass in an instance of a TARGETING::ATTR_I2C_BUS_SPEED_ARRAY_type -#define I2C_BUS_MAX_ENGINE(var) (sizeof(var)/sizeof(var[0])) -#define I2C_BUS_MAX_PORT(var) (sizeof(var[0])/sizeof(var[0][0])) - namespace I2C { diff --git a/src/include/usr/i2c/i2creasoncodes.H b/src/include/usr/i2c/i2creasoncodes.H index c6685e181..a63e8d5a6 100644 --- a/src/include/usr/i2c/i2creasoncodes.H +++ b/src/include/usr/i2c/i2creasoncodes.H @@ -82,6 +82,8 @@ enum i2cReasonCode I2C_ATTRIBUTE_NOT_FOUND = I2C_COMP_ID | 0x0A, // Needed I2C-related Attribute not found I2C_NACK_ONLY_FOUND = I2C_COMP_ID | 0x0B, // Only NACK found in status register I2C_ARBITRATION_LOST_ONLY_FOUND = I2C_COMP_ID | 0x0C, // Bus Arbi lost found in status reg + I2C_RUNTIME_INTERFACE_ERR = I2C_COMP_ID | 0x0D, // Read/write unavailable at runtime + I2C_RUNTIME_ERR = I2C_COMP_ID | 0x0E, // Failed run-time operation }; diff --git a/src/include/usr/vpd/vpd_if.H b/src/include/usr/vpd/vpd_if.H index af8e501d5..776ccd084 100644 --- a/src/include/usr/vpd/vpd_if.H +++ b/src/include/usr/vpd/vpd_if.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2013,2014 */ +/* Contributors Listed Below - COPYRIGHT 2013,2015 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -87,6 +87,11 @@ namespace VPD */ errlHndl_t invalidatePnorCache ( TARGETING::Target * i_target ); + /** + * @brief This function sets the VPD config flags to use HW and not PNOR + */ + void setVpdConfigFlagsHW ( ); + }; //end vpd namespace #endif -- cgit v1.2.3