diff options
author | Jacob Harvey <jlharvey@us.ibm.com> | 2017-01-13 10:27:20 -0600 |
---|---|---|
committer | Christian R. Geddes <crgeddes@us.ibm.com> | 2017-01-25 18:46:48 -0500 |
commit | 88d44d222b5dffc2a0c5dc88a9805639b40550cc (patch) | |
tree | 389c6c4dc6b673eca1de8a6b9664840f08c65058 /src/import/chips/p9/procedures/hwp/memory/p9_mss_volt.C | |
parent | 38aa7b996846d5b403fa96e27799bfab1abf13a8 (diff) | |
download | talos-hostboot-88d44d222b5dffc2a0c5dc88a9805639b40550cc.tar.gz talos-hostboot-88d44d222b5dffc2a0c5dc88a9805639b40550cc.zip |
L3 work for volt and freq_systems
Change-Id: If35a855130a5f6d06f8e1a480623a26f9cec2e14
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34838
Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com>
Reviewed-by: Brian R. Silver <bsilver@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35059
Reviewed-by: Hostboot Team <hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory/p9_mss_volt.C')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/memory/p9_mss_volt.C | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_volt.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_volt.C index 4673896ef..fcaa3f305 100644 --- a/src/import/chips/p9/procedures/hwp/memory/p9_mss_volt.C +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_volt.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2016 */ +/* Contributors Listed Below - COPYRIGHT 2015,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -31,7 +31,7 @@ // *HWP HWP Backup: Andre A. Marin <aamarin@us.ibm.com> // *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> // *HWP Team: Memory -// *HWP Level: 2 +// *HWP Level: 3 // *HWP Consumed by: FSP:HB #include <p9_mss_volt.H> @@ -61,12 +61,11 @@ using fapi2::FAPI2_RC_SUCCESS; extern "C" { - -/// -/// @brief Calculate and save off rail voltages -/// @param[in] i_targets vector of controllers (e.g., MCS) -/// @return FAPI2_RC_SUCCESS iff ok -/// + /// + /// @brief Calculate and save off rail voltages + /// @param[in] i_targets vector of controllers (e.g., MCS) + /// @return FAPI2_RC_SUCCESS iff ok + /// fapi2::ReturnCode p9_mss_volt( const std::vector< fapi2::Target<TARGET_TYPE_MCS> >& i_targets ) { // Loop through MCS @@ -82,7 +81,7 @@ extern "C" // Get dimms for each MCS for ( const auto& l_dimm : mss::find_targets<TARGET_TYPE_DIMM> (l_mcs)) { - const auto& l_dimm_pos = mss::pos(l_dimm); + const auto l_dimm_pos = mss::pos(l_dimm); // Find decoder factory for this dimm position auto l_it = l_factory_caches.find(l_dimm_pos); @@ -117,8 +116,8 @@ extern "C" // Set the attributes for this MCS, values are in mss_const.H // TK : will need to change attribute target according to voltage rails in the future FAPI_TRY (mss::set_voltage_attributes (l_mcs, - uint64_t(mss::DDR4_NOMINAL_VOLTAGE), - uint64_t(mss::DDR4_VPP_VOLTAGE)), + mss::DDR4_NOMINAL_VOLTAGE, + mss::DDR4_VPP_VOLTAGE), "Failed to set volt attributes"); } // mcs |