diff options
author | Nico Fajardo <Nicolas.Fajardo@ibm.com> | 2020-01-09 08:56:28 -0600 |
---|---|---|
committer | Daniel M Crowell <dcrowell@us.ibm.com> | 2020-01-29 15:13:52 -0600 |
commit | 5962066104e3a4aa84440f73af50efc67f674fc2 (patch) | |
tree | 94a99121ccc4cccf9600ac046e8ebde06094822d /src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/fir/exp_fir_traits.H | |
parent | 6b29b3829fc9ff676662c4e520c13ded41d070fd (diff) | |
download | talos-hostboot-5962066104e3a4aa84440f73af50efc67f674fc2.tar.gz talos-hostboot-5962066104e3a4aa84440f73af50efc67f674fc2.zip |
Unmask after draminit and draminit_mc; cmd complete
- Define after_* functions and unmasking operations
- Add FAPI_TRY calls to after_* functions in exp_draminit files
- Add SRQFIR, MCBISTFIR, and RDFFIR register traits to exp_fir_traits.H
- after_draminit and after_draminit_mc unit tests
Change-Id: Ie7e6fcfd4b71259e88ad1f804b3da015c9faabf1
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/89488
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@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: NICOLAS R FAJARDO <nicolas.fajardo@ibm.com>
Reviewed-by: Louis Stermole <stermole@us.ibm.com>
Reviewed-by: Mark Pizzutillo <mark.pizzutillo@ibm.com>
Reviewed-by: Marc Gollub <gollub@us.ibm.com>
Reviewed-by: Caleb N Palmer <cnpalmer@us.ibm.com>
Reviewed-by: Jennifer A Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/89525
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/fir/exp_fir_traits.H')
-rw-r--r-- | src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/fir/exp_fir_traits.H | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/fir/exp_fir_traits.H b/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/fir/exp_fir_traits.H index 06d03488b..3fb3460dc 100644 --- a/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/fir/exp_fir_traits.H +++ b/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/fir/exp_fir_traits.H @@ -22,3 +22,78 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ +/// +/// @file exp_fir_traits.H +/// @brief Memory subsystem FIR support +/// +// *HWP HWP Owner: Stephen Glancy <sglancy@us.ibm.com> +// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 3 +// *HWP Consumed by: FSP:HB + +#ifndef _MSS_EXP_FIR_TRAITS_H_ +#define _MSS_EXP_FIR_TRAITS_H_ + +#include <fapi2.H> +#include <generic/memory/lib/utils/fir/gen_mss_fir.H> +#include <generic/memory/lib/utils/shared/mss_generic_consts.H> +#include <explorer_scom_addresses.H> +#include <explorer_scom_addresses_fld.H> + +namespace mss +{ + +/// +/// @brief FIR Register Traits for Explorer MCBIST FIR +/// +template <> +struct firTraits<EXPLR_MCBIST_MCBISTFIRQ> +{ + static constexpr uint64_t REG = EXPLR_MCBIST_MCBISTFIRQ; + static constexpr uint64_t ACT0 = EXPLR_MCBIST_MCBISTFIRACT0; + static constexpr uint64_t ACT1 = EXPLR_MCBIST_MCBISTFIRACT1; + static constexpr uint64_t MASK = EXPLR_MCBIST_MCBISTFIRMASK; + static constexpr uint64_t MASK_AND = EXPLR_MCBIST_MCBISTFIRMASK_AND; + static constexpr uint64_t MASK_OR = EXPLR_MCBIST_MCBISTFIRMASK_OR; + + // Target type of this register + static constexpr fapi2::TargetType T = fapi2::TARGET_TYPE_OCMB_CHIP; +}; + +/// +/// @brief FIR Register Traits for Explorer SRQ FIR +/// +template <> +struct firTraits<EXPLR_SRQ_SRQFIRQ> +{ + static constexpr uint64_t REG = EXPLR_SRQ_SRQFIRQ; + static constexpr uint64_t ACT0 = EXPLR_SRQ_SRQFIR_ACTION0; + static constexpr uint64_t ACT1 = EXPLR_SRQ_SRQFIR_ACTION1; + static constexpr uint64_t MASK = EXPLR_SRQ_SRQFIR_MASK; + static constexpr uint64_t MASK_AND = EXPLR_SRQ_SRQFIR_MASK_AND; + static constexpr uint64_t MASK_OR = EXPLR_SRQ_SRQFIR_MASK_OR; + + // Target type of this register + static constexpr fapi2::TargetType T = fapi2::TARGET_TYPE_OCMB_CHIP; +}; + +/// +/// @brief FIR Register Traits for Explorer RDF FIR +/// +template <> +struct firTraits<EXPLR_RDF_FIR> +{ + static constexpr uint64_t REG = EXPLR_RDF_FIR; + static constexpr uint64_t ACT0 = EXPLR_RDF_ACTION0; + static constexpr uint64_t ACT1 = EXPLR_RDF_ACTION1; + static constexpr uint64_t MASK = EXPLR_RDF_MASK; + static constexpr uint64_t MASK_AND = EXPLR_RDF_MASK_AND; + static constexpr uint64_t MASK_OR = EXPLR_RDF_MASK_OR; + + // Target type of this register + static constexpr fapi2::TargetType T = fapi2::TARGET_TYPE_OCMB_CHIP; +}; + +} // end mss ns +#endif |