diff options
author | Brian Silver <bsilver@us.ibm.com> | 2015-10-01 08:51:04 -0500 |
---|---|---|
committer | Stephen Cprek <smcprek@us.ibm.com> | 2016-02-19 17:06:45 -0600 |
commit | 5497cd42ffcebb7929c22be4ec85d3146265a92b (patch) | |
tree | 9ed620ea1852f1d62fd71c814f8db2d5b630002b /src/import/chips/p9/procedures/hwp/memory | |
parent | 586a24f50694ccab0763586d24a322bb293fc66f (diff) | |
download | talos-hostboot-5497cd42ffcebb7929c22be4ec85d3146265a92b.tar.gz talos-hostboot-5497cd42ffcebb7929c22be4ec85d3146265a92b.zip |
Change Memory L1 procedures
Move from chips/centaur
Add remaining interfaces
Change-Id: I85f568d5101fb46de031d884cb9aeee3fb32dd2b
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20902
Tested-by: Jenkins Server
Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com>
Reviewed-by: Andre A. Marin <aamarin@us.ibm.com>
Reviewed-by: Richard J. Knight <rjknight@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory')
29 files changed, 1055 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C new file mode 100644 index 000000000..b60b68ee1 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C @@ -0,0 +1,46 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/centaur/procedures/ipl/hwp/p9_mss_attr_update.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_attr_update.C +/// @brief Programatic over-rides related to effective config +/// +// *HWP HWP Owner: Andre Marin <aamarin@us.ibm.com> +// *HWP HWP Backup: Luke Mulkey <lwmulkey@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCS; +using fapi2::FAPI2_RC_SUCCESS; + +/// +/// @brief Programatic over-rides related to effective config +/// @param[in] i_target, the controller (e.g., MCS) +/// @return FAPI2_RC_SUCCESS iff ok +/// +fapi2::ReturnCode p9_mss_attr_update( const fapi2::Target<TARGET_TYPE_MCS>& i_target ) +{ + FAPI_INF("Start attr update"); + FAPI_INF("End attr update"); + return FAPI2_RC_SUCCESS; +} diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.H b/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.H new file mode 100644 index 000000000..e33973ba5 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.H @@ -0,0 +1,48 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/centaur/procedures/ipl/hwp/p9_mss_attr_update.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_attr_update.H +/// @brief Programatic over-rides related to effective config +/// +// *HWP HWP Owner: Andre Marin <aamarin@us.ibm.com> +// *HWP HWP Backup: Luke Mulkey <lwmulkey@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCS; + +typedef fapi2::ReturnCode (*p9_mss_attr_update_FP_t) (const fapi2::Target<TARGET_TYPE_MCS>&); + +extern "C" +{ + +/// +/// @brief Programatic over-rides related to effective config +/// @param[in] i_target, the controller (e.g., MCS) +/// @return FAPI2_RC_SUCCESS iff ok +/// + fapi2::ReturnCode p9_mss_attr_update( const fapi2::Target<TARGET_TYPE_MCS>& i_target ); + +} + diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.mk b/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.mk new file mode 100644 index 000000000..49961ed56 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.mk @@ -0,0 +1,20 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: chips/centaur/procedures/ipl/hwp/p9_mss_attr_update.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015 +# [+] International Business Machines Corp. +# +# +# 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. +# +# IBM_PROLOG_END_TAG +PROCEDURE=p9_mss_attr_update +$(call BUILD_PROCEDURE) diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_ddr_phy_reset.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_ddr_phy_reset.C new file mode 100644 index 000000000..62ef59263 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_ddr_phy_reset.C @@ -0,0 +1,48 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/p9/procedures/hwp/memory/p9_mss_ddr_phy_reset.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_ddr_phy_reset.C +/// @brief Initialize dram +/// +// *HWP HWP Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCBIST; + +extern "C" +{ +/// +/// @brief Reset the DDR PHY +/// @param[in] i_target, the McBIST of the ports of the dram you're training +/// @return FAPI2_RC_SUCCESS iff ok +/// + fapi2::ReturnCode p9_mss_ddr_phy_reset( const fapi2::Target<TARGET_TYPE_MCBIST>& i_target ) + { + FAPI_INF("Start ddr phy reset"); + FAPI_INF("End ddr phy reset"); + return fapi2::FAPI2_RC_SUCCESS; + } +} diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_ddr_phy_reset.mk b/src/import/chips/p9/procedures/hwp/memory/p9_mss_ddr_phy_reset.mk new file mode 100644 index 000000000..4241bd2d1 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_ddr_phy_reset.mk @@ -0,0 +1,21 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: chips/p9/procedures/hwp/memory/p9_mss_ddr_phy_reset.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015 +# [+] International Business Machines Corp. +# +# +# 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. +# +# IBM_PROLOG_END_TAG + +PROCEDURE=p9_mss_ddr_phy_reset +$(call BUILD_PROCEDURE) diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit.C new file mode 100644 index 000000000..e592743a0 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit.C @@ -0,0 +1,48 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/p9/procedures/hwp/memory/p9_mss_draminit.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_draminit.C +/// @brief Initialize dram +/// +// *HWP HWP Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCBIST; + +extern "C" +{ +/// +/// @brief Initialize dram +/// @param[in] i_target, the McBIST of the ports of the dram you're training +/// @return FAPI2_RC_SUCCESS iff ok +/// + fapi2::ReturnCode p9_mss_draminit( const fapi2::Target<TARGET_TYPE_MCBIST>& i_target ) + { + FAPI_INF("Start draminit"); + FAPI_INF("End draminit"); + return fapi2::FAPI2_RC_SUCCESS; + } +} diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit.mk b/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit.mk new file mode 100644 index 000000000..2ab354c8f --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit.mk @@ -0,0 +1,21 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: chips/p9/procedures/hwp/memory/p9_mss_draminit.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015 +# [+] International Business Machines Corp. +# +# +# 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. +# +# IBM_PROLOG_END_TAG + +PROCEDURE=p9_mss_draminit +$(call BUILD_PROCEDURE) diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_mc.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_mc.C new file mode 100644 index 000000000..6b23cb9a7 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_mc.C @@ -0,0 +1,48 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/p9/procedures/hwp/memory/p9_mss_draminit_mc.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_draminit_mc.C +/// @brief Initialize the memory controller to take over the DRAM +/// +// *HWP HWP Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCBIST; + +extern "C" +{ +/// +/// @brief Initialize the MC now that DRAM is up +/// @param[in] i_target, the McBIST of the ports of the dram you're training +/// @return FAPI2_RC_SUCCESS iff ok +/// + fapi2::ReturnCode p9_mss_draminit_mc( const fapi2::Target<TARGET_TYPE_MCBIST>& i_target ) + { + FAPI_INF("Start draminit MC"); + FAPI_INF("End draminit MC"); + return fapi2::FAPI2_RC_SUCCESS; + } +} diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_mc.mk b/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_mc.mk new file mode 100644 index 000000000..b18ee7c30 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_mc.mk @@ -0,0 +1,21 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: chips/p9/procedures/hwp/memory/p9_mss_draminit_mc.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015 +# [+] International Business Machines Corp. +# +# +# 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. +# +# IBM_PROLOG_END_TAG + +PROCEDURE=p9_mss_draminit_mc +$(call BUILD_PROCEDURE) diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_training.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_training.C new file mode 100644 index 000000000..3073816ff --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_training.C @@ -0,0 +1,48 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/p9/procedures/hwp/memory/p9_mss_draminit_training.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_draminit_training.C +/// @brief Train dram +/// +// *HWP HWP Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCBIST; + +extern "C" +{ +/// +/// @brief Train dram +/// @param[in] i_target, the McBIST of the ports of the dram you're training +/// @return FAPI2_RC_SUCCESS iff ok +/// + fapi2::ReturnCode p9_mss_draminit_training( const fapi2::Target<TARGET_TYPE_MCBIST>& i_target ) + { + FAPI_INF("Start draminit training"); + FAPI_INF("End draminit training"); + return fapi2::FAPI2_RC_SUCCESS; + } +} diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_training.mk b/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_training.mk new file mode 100644 index 000000000..ce3f35c2a --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_training.mk @@ -0,0 +1,21 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: chips/p9/procedures/hwp/memory/p9_mss_draminit_training.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015 +# [+] International Business Machines Corp. +# +# +# 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. +# +# IBM_PROLOG_END_TAG + +PROCEDURE=p9_mss_draminit_training +$(call BUILD_PROCEDURE) diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config.C new file mode 100644 index 000000000..07df677ce --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config.C @@ -0,0 +1,46 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/centaur/procedures/ipl/hwp/p9_mss_eff_config.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_eff_config.C +/// @brief Command and Control for the memory subsystem - populate attributes +/// +// *HWP HWP Owner: Luke Mulkey <lwmulkey@us.ibm.com> +// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCS; +using fapi2::FAPI2_RC_SUCCESS; + +/// +/// @brief Configure the attributes for each controller +/// @param[in] i_target, the controller (e.g., MCS) +/// @return FAPI2_RC_SUCCESS iff ok +/// +fapi2::ReturnCode p9_mss_eff_config( const fapi2::Target<TARGET_TYPE_MCS>& i_target ) +{ + FAPI_INF("Start effective config"); + FAPI_INF("End effective config"); + return FAPI2_RC_SUCCESS; +} diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config.H b/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config.H new file mode 100644 index 000000000..24d52c73e --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config.H @@ -0,0 +1,48 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/centaur/procedures/ipl/hwp/p9_mss_eff_config.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_eff_config.H +/// @brief Command and Control for the memory subsystem - populate attributes +/// +// *HWP HWP Owner: Luke Mulkey <lwmulkey@us.ibm.com> +// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCS; + +typedef fapi2::ReturnCode (*p9_mss_eff_config_FP_t) (const fapi2::Target<TARGET_TYPE_MCS>&); + +extern "C" +{ + +/// +/// @brief Configure the attributes for each controller +/// @param[in] i_target, the controller (e.g., MCS) +/// @return FAPI2_RC_SUCCESS iff ok +/// + fapi2::ReturnCode p9_mss_eff_config( const fapi2::Target<TARGET_TYPE_MCS>& i_target ); + +} + diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config.mk b/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config.mk new file mode 100644 index 000000000..96f2bfbae --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config.mk @@ -0,0 +1,20 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: chips/centaur/procedures/ipl/hwp/p9_mss_eff_config.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015 +# [+] International Business Machines Corp. +# +# +# 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. +# +# IBM_PROLOG_END_TAG +PROCEDURE=p9_mss_eff_config +$(call BUILD_PROCEDURE) diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.C new file mode 100644 index 000000000..04dc11044 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.C @@ -0,0 +1,46 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/centaur/procedures/ipl/hwp/p9_mss_eff_config_thermal.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_eff_config_thermal.C +/// @brief Perform thermal calculations as part of the effective configuration +/// +// *HWP HWP Owner: Luke Mulkey <lwmulkey@us.ibm.com> +// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCS; +using fapi2::FAPI2_RC_SUCCESS; + +/// +/// @brief Perform thermal calculations as part of the effective configuration +/// @param[in] i_target, the controller (e.g., MCS) +/// @return FAPI2_RC_SUCCESS iff ok +/// +fapi2::ReturnCode p9_mss_eff_config_thermal( const fapi2::Target<TARGET_TYPE_MCS>& i_target ) +{ + FAPI_INF("Start effective config thermal"); + FAPI_INF("End effective config thermal"); + return FAPI2_RC_SUCCESS; +} diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.H b/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.H new file mode 100644 index 000000000..9e1c7373a --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.H @@ -0,0 +1,48 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/centaur/procedures/ipl/hwp/p9_mss_eff_config_thermal.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_eff_config_thermal.H +/// @brief Perform thermal calculations as part of the effective configuration +/// +// *HWP HWP Owner: Luke Mulkey <lwmulkey@us.ibm.com> +// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCS; + +typedef fapi2::ReturnCode (*p9_mss_eff_config_thermal_FP_t) (const fapi2::Target<TARGET_TYPE_MCS>&); + +extern "C" +{ + +/// +/// @brief Perform thermal calculations as part of the effective configuration +/// @param[in] i_target, the controller (e.g., MCS) +/// @return FAPI2_RC_SUCCESS iff ok +/// + fapi2::ReturnCode p9_mss_eff_config_thermal( const fapi2::Target<TARGET_TYPE_MCS>& i_target ); + +} + diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.mk b/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.mk new file mode 100644 index 000000000..a63b7d833 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.mk @@ -0,0 +1,20 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: chips/centaur/procedures/ipl/hwp/p9_mss_eff_config_thermal.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015 +# [+] International Business Machines Corp. +# +# +# 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. +# +# IBM_PROLOG_END_TAG +PROCEDURE=p9_mss_eff_config_thermal +$(call BUILD_PROCEDURE) diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.C new file mode 100644 index 000000000..5cc11bea7 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.C @@ -0,0 +1,46 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/centaur/procedures/ipl/hwp/p9_mss_freq.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_freq.C +/// @brief Calculate and save off DIMM frequencies +/// +// *HWP HWP Owner: Andre Marin <aamarin@us.ibm.com> +// *HWP HWP Backup: Luke Mulkey <lwmulkey@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCS; +using fapi2::FAPI2_RC_SUCCESS; + +/// +/// @brief Calculate and save off DIMM frequencies +/// @param[in] i_target, the controller (e.g., MCS) +/// @return FAPI2_RC_SUCCESS iff ok +/// +fapi2::ReturnCode p9_mss_freq( const fapi2::Target<TARGET_TYPE_MCS>& i_target ) +{ + FAPI_INF("Start mss freq"); + FAPI_INF("End mss freq"); + return FAPI2_RC_SUCCESS; +} diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.H b/src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.H new file mode 100644 index 000000000..352dff54b --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.H @@ -0,0 +1,48 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/centaur/procedures/ipl/hwp/p9_mss_freq.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_freq.H +/// @brief Calculate and save off DIMM frequencies +/// +// *HWP HWP Owner: Andre Marin <aamarin@us.ibm.com> +// *HWP HWP Backup: Luke Mulkey <lwmulkey@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCS; + +typedef fapi2::ReturnCode (*p9_mss_freq_FP_t) (const fapi2::Target<TARGET_TYPE_MCS>&); + +extern "C" +{ + + /// + /// @brief Calculate and save off DIMM frequencies + /// @param[in] i_target, the controller (e.g., MCS) + /// @return FAPI2_RC_SUCCESS iff ok + /// + fapi2::ReturnCode p9_mss_freq( const fapi2::Target<TARGET_TYPE_MCS>& i_target ); + +} + diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.mk b/src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.mk new file mode 100644 index 000000000..8b065eeda --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.mk @@ -0,0 +1,21 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: chips/p9/procedures/hwp/memory/p9_mss_freq.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015 +# [+] International Business Machines Corp. +# +# +# 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. +# +# IBM_PROLOG_END_TAG + +PROCEDURE=p9_mss_freq +$(call BUILD_PROCEDURE) diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_memdiag.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_memdiag.C new file mode 100644 index 000000000..78ef1ddc6 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_memdiag.C @@ -0,0 +1,48 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/p9/procedures/hwp/memory/p9_mss_memdiag.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_memdiag.C +/// @brief Mainstore pattern testing +/// +// *HWP HWP Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCBIST; + +extern "C" +{ +/// +/// @brief Pattern test the DRAM +/// @param[in] i_target, the McBIST of the ports of the dram you're training +/// @return FAPI2_RC_SUCCESS iff ok +/// + fapi2::ReturnCode p9_mss_memdiag( const fapi2::Target<TARGET_TYPE_MCBIST>& i_target ) + { + FAPI_INF("Start memdiag"); + FAPI_INF("End memdiag"); + return fapi2::FAPI2_RC_SUCCESS; + } +} diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_memdiag.mk b/src/import/chips/p9/procedures/hwp/memory/p9_mss_memdiag.mk new file mode 100644 index 000000000..3372e0f01 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_memdiag.mk @@ -0,0 +1,21 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: chips/p9/procedures/hwp/memory/p9_mss_memdiag.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015 +# [+] International Business Machines Corp. +# +# +# 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. +# +# IBM_PROLOG_END_TAG + +PROCEDURE=p9_mss_memdiag +$(call BUILD_PROCEDURE) diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_power_cleanup.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_power_cleanup.C new file mode 100644 index 000000000..636234e53 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_power_cleanup.C @@ -0,0 +1,48 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/p9/procedures/hwp/memory/p9_mss_power_cleanup.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_power_cleanup.C +/// @brief Perform any necessary power cleanup +/// +// *HWP HWP Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCBIST; + +extern "C" +{ +/// +/// @brief Perform any necessary power cleanup +/// @param[in] i_target, the McBIST of the ports of the dram you're training +/// @return FAPI2_RC_SUCCESS iff ok +/// + fapi2::ReturnCode p9_mss_power_cleanup( const fapi2::Target<TARGET_TYPE_MCBIST>& i_target ) + { + FAPI_INF("Start power_cleanup"); + FAPI_INF("End power_cleanup"); + return fapi2::FAPI2_RC_SUCCESS; + } +} diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_power_cleanup.mk b/src/import/chips/p9/procedures/hwp/memory/p9_mss_power_cleanup.mk new file mode 100644 index 000000000..615a27bc5 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_power_cleanup.mk @@ -0,0 +1,21 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: chips/p9/procedures/hwp/memory/p9_mss_power_cleanup.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015 +# [+] International Business Machines Corp. +# +# +# 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. +# +# IBM_PROLOG_END_TAG + +PROCEDURE=p9_mss_power_cleanup +$(call BUILD_PROCEDURE) diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_thermal_init.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_thermal_init.C new file mode 100644 index 000000000..63a4ed9c2 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_thermal_init.C @@ -0,0 +1,48 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/p9/procedures/hwp/memory/p9_mss_thermal_init.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_thermal_init.C +/// @brief Initialize thermal sensors +/// +// *HWP HWP Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCBIST; + +extern "C" +{ +/// +/// @brief Initialize thermal sensors +/// @param[in] i_target, the McBIST of the ports of the dram you're training +/// @return FAPI2_RC_SUCCESS iff ok +/// + fapi2::ReturnCode p9_mss_thermal_init( const fapi2::Target<TARGET_TYPE_MCBIST>& i_target ) + { + FAPI_INF("Start thermal_init"); + FAPI_INF("End thermal_init"); + return fapi2::FAPI2_RC_SUCCESS; + } +} diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_thermal_init.mk b/src/import/chips/p9/procedures/hwp/memory/p9_mss_thermal_init.mk new file mode 100644 index 000000000..66b9a123a --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_thermal_init.mk @@ -0,0 +1,21 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: chips/p9/procedures/hwp/memory/p9_mss_thermal_init.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015 +# [+] International Business Machines Corp. +# +# +# 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. +# +# IBM_PROLOG_END_TAG + +PROCEDURE=p9_mss_thermal_init +$(call BUILD_PROCEDURE) 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 new file mode 100644 index 000000000..8616f2237 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_volt.C @@ -0,0 +1,46 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/centaur/procedures/ipl/hwp/p9_mss_volt.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_volt.C +/// @brief Calculate and save off rail voltages +/// +// *HWP HWP Owner: Andre Marin <aamarin@us.ibm.com> +// *HWP HWP Backup: Luke Mulkey <lwmulkey@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCS; +using fapi2::FAPI2_RC_SUCCESS; + +/// +/// @brief Calculate and save off rail voltages +/// @param[in] i_target, the controller (e.g., MCS) +/// @return FAPI2_RC_SUCCESS iff ok +/// +fapi2::ReturnCode p9_mss_volt( const fapi2::Target<TARGET_TYPE_MCS>& i_target ) +{ + FAPI_INF("Start mss volt"); + FAPI_INF("End mss volt"); + return FAPI2_RC_SUCCESS; +} diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_volt.H b/src/import/chips/p9/procedures/hwp/memory/p9_mss_volt.H new file mode 100644 index 000000000..fc2b625db --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_volt.H @@ -0,0 +1,48 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/centaur/procedures/ipl/hwp/p9_mss_volt.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/// +/// @file p9_mss_volt.H +/// @brief Calculate and save off rail voltages +/// +// *HWP HWP Owner: Andre Marin <aamarin@us.ibm.com> +// *HWP HWP Backup: Luke Mulkey <lwmulkey@us.ibm.com> +// *HWP FW Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#include <fapi2.H> + +using fapi2::TARGET_TYPE_MCS; + +typedef fapi2::ReturnCode (*p9_mss_volt_FP_t) (const fapi2::Target<TARGET_TYPE_MCS>&); + +extern "C" +{ + + /// + /// @brief Calculate and save off rail voltages + /// @param[in] i_target, the controller (e.g., MCS) + /// @return FAPI2_RC_SUCCESS iff ok + /// + fapi2::ReturnCode p9_mss_volt( const fapi2::Target<TARGET_TYPE_MCS>& i_target ); + +} + diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_volt.mk b/src/import/chips/p9/procedures/hwp/memory/p9_mss_volt.mk new file mode 100644 index 000000000..d895c10c0 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_volt.mk @@ -0,0 +1,21 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: chips/p9/procedures/hwp/memory/p9_mss_volt.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015 +# [+] International Business Machines Corp. +# +# +# 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. +# +# IBM_PROLOG_END_TAG + +PROCEDURE=p9_mss_volt +$(call BUILD_PROCEDURE) |