summaryrefslogtreecommitdiffstats
path: root/src/import/chips/ocmb/explorer/procedures/hwp
diff options
context:
space:
mode:
authorAndre Marin <aamarin@us.ibm.com>2018-11-02 08:33:30 -0500
committerChristian R. Geddes <crgeddes@us.ibm.com>2018-11-21 10:42:24 -0600
commite2e0e045605128f32c83299692f829686c0ea675 (patch)
tree3dfd0ca63b98c7292d042f75c4fa381a2b66cd2d /src/import/chips/ocmb/explorer/procedures/hwp
parent3f1f2186bb80322594a3cc81241c390119d69552 (diff)
downloadtalos-hostboot-e2e0e045605128f32c83299692f829686c0ea675.tar.gz
talos-hostboot-e2e0e045605128f32c83299692f829686c0ea675.zip
Add exp_draminit and fix data_structs constants
Change-Id: Ic8011ed9b6261ce2849b2c51f79c9533261222bf Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67837 Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Louis Stermole <stermole@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/68429 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/import/chips/ocmb/explorer/procedures/hwp')
-rw-r--r--src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_inband.C4
-rw-r--r--src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/i2c/exp_i2c.H2
-rw-r--r--src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/shared/exp_consts.H33
3 files changed, 36 insertions, 3 deletions
diff --git a/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_inband.C b/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_inband.C
index 4bccb489b..4e86dcc40 100644
--- a/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_inband.C
+++ b/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_inband.C
@@ -239,7 +239,7 @@ std::vector<uint8_t> host_fw_command_struct_to_little_endian(const host_fw_comma
forceLE(i_input.cmd_crc, l_data);
forceLE(i_input.host_work_area, l_data);
forceLE(i_input.cmd_work_area, l_data);
- forceLEArray(i_input.padding, PADDING_SIZE, l_data);
+ forceLEArray(i_input.padding, CMD_PADDING_SIZE, l_data);
forceLEArray(i_input.command_argument, ARGUMENT_SIZE, l_data);
// Generates and adds on the CRC
@@ -403,7 +403,7 @@ bool host_fw_response_struct_from_little_endian(const std::vector<uint8_t>& i_da
l_rc &= readLE(i_data, l_idx, o_response.response_crc);
l_rc &= readLE(i_data, l_idx, o_response.host_work_area);
- l_rc &= readLEArray(i_data, PADDING_SIZE, l_idx, o_response.padding);
+ l_rc &= readLEArray(i_data, RSP_PADDING_SIZE, l_idx, o_response.padding);
l_rc &= readLEArray(i_data, ARGUMENT_SIZE, l_idx, o_response.response_argument);
o_crc = crc32_gen(i_data, l_idx);
diff --git a/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/i2c/exp_i2c.H b/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/i2c/exp_i2c.H
index d90408df0..05cc3689e 100644
--- a/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/i2c/exp_i2c.H
+++ b/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/i2c/exp_i2c.H
@@ -70,7 +70,7 @@ inline fapi2::ReturnCode status_code( const fapi2::Target<fapi2::TARGET_TYPE_OCM
// Technically many cmds have their own status code decoding..but SUCCESS is always 0.
// If it's anything else we can just look up the status code
FAPI_ASSERT( l_status == status_codes::SUCCESS,
- fapi2::MSS_EXP_STATUS_CODE_UNSUCCESSFUL().
+ fapi2::MSS_EXP_I2C_FW_STATUS_CODE_FAILED().
set_TARGET(i_target).
set_STATUS_CODE(l_status).
set_CMD_ID(i_cmd_id),
diff --git a/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/shared/exp_consts.H b/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/shared/exp_consts.H
index 223b97ca7..b317d683b 100644
--- a/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/shared/exp_consts.H
+++ b/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/shared/exp_consts.H
@@ -167,6 +167,39 @@ enum addrSide
}// i2c
+
+namespace omi
+{
+
+///
+/// @brief HOST-FW Commands and Responses
+///
+enum cmd_and_response_id
+{
+ FW_DDR_INTERFACE_INIT = 0x01,
+ FW_TEMP_SENSOR_INIT = 0x02,
+ FW_ERR_LOGGING_INTERFACE_INIT = 0x03,
+ FW_GO_COMMAND = 0x04,
+ FW_ADAPTER_PROPERTIES_GET = 0x05,
+ FW_STATUS_GET = 0x06,
+ FW_TEMPERATURE_GET = 0x07,
+ FW_ERROR_LOG_GET = 0x08,
+ FW_SPD_DATA_SET = 0x09,
+ FW_BINARY_UPGRADE = 0x0A,
+ FW_FLASH_LOADER_VERSION_INFO = 0x0B,
+};
+
+///
+/// @brief Response argument parameters
+///
+enum response_arg
+{
+ SUCCESS = 0,
+ ERROR_CODE = 1,
+};
+
+}// omi
+
}// exp
}// mss
OpenPOWER on IntegriCloud