From 9ab1bc28a6d2b703cab2d36985e17601d85b0c20 Mon Sep 17 00:00:00 2001 From: Tsung Yeung Date: Fri, 22 Mar 2019 09:43:38 -0400 Subject: Preload CCS program to support EPOW on NVDIMM This is written specifically for NVDIMM on P9 Nimbus. The current recipe relies on the MC sequencer to enter STR in the event of EPOW and could be delayed depending on the status of the bus. CCS will ensure the immediate entry of the STR and the order of execution (STR -> assert RESETn) Change-Id: Ic117b489582aaf92810e905f43fe2e4e0408eeeb CQ:SW458983 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/74969 Tested-by: FSP CI Jenkins Tested-by: Jenkins Server Tested-by: HWSV CI Tested-by: Hostboot CI Reviewed-by: Louis Stermole Reviewed-by: STEPHEN GLANCY Reviewed-by: Jennifer A. Stofer Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/75019 Reviewed-by: Christian R. Geddes --- .../chips/p9/procedures/hwp/memory/lib/dimm/ddr4/nvdimm_utils.H | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/nvdimm_utils.H') diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/nvdimm_utils.H b/src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/nvdimm_utils.H index fe58fae31..538a650ba 100644 --- a/src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/nvdimm_utils.H +++ b/src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/nvdimm_utils.H @@ -171,6 +171,15 @@ fapi2::ReturnCode post_restore_zqcal( const fapi2::Target fapi2::ReturnCode post_restore_transition( const fapi2::Target& i_target ); +/// +/// @brief Preload the CCS with the EPOW sequence +/// @param[in] i_target the target associated with this subroutine +/// @return FAPI2_RC_SUCCESS iff setup was successful +/// @note This is written specifically to support EPOW on NVDIMM and +/// should only be called after all the draminit. +/// +fapi2::ReturnCode preload_epow_sequence( const fapi2::Target& i_target ); + }//ns nvdimm }//ns mss -- cgit v1.2.1