From 8f4eeca3100a6ef6986cff52c0b95e6e384510a7 Mon Sep 17 00:00:00 2001 From: Matt Derksen Date: Thu, 23 May 2019 13:22:52 -0500 Subject: Updates to compile new pmic fields in p9a eff_config Added to support updates to p9a_eff_config.C Change-Id: I7424447a57b65ccdc2835dfdb2ec5dcef72b0f53 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/77810 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: Glenn Miles Reviewed-by: Christian R. Geddes Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/include/usr/fapi2/target.H | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/usr/fapi2/target.H b/src/include/usr/fapi2/target.H index 7b286db87..31e909a68 100644 --- a/src/include/usr/fapi2/target.H +++ b/src/include/usr/fapi2/target.H @@ -267,6 +267,9 @@ inline TARGETING::TYPE convertFapi2TypeToTargeting(fapi2::TargetType i_T) case fapi2::TARGET_TYPE_MEM_PORT: o_targetingType = TARGETING::TYPE_MEM_PORT; break; + case fapi2::TARGET_TYPE_PMIC: + o_targetingType = TARGETING::TYPE_PMIC; + break; default: FAPI_ERR("convertFapi2TypeToTargeting:: Chiplet type not supported 0x%.8X!", i_T); assert(false); @@ -382,6 +385,9 @@ inline fapi2::TargetType convertTargetingTypeToFapi2(TARGETING::TYPE i_T) case TARGETING::TYPE_MEM_PORT: o_targetingType = fapi2::TARGET_TYPE_MEM_PORT; break; + case TARGETING::TYPE_PMIC: + o_targetingType = fapi2::TARGET_TYPE_PMIC; + break; default: o_targetingType = fapi2::TARGET_TYPE_NONE; break; @@ -920,9 +926,11 @@ inline std::vector > // valid children for OCMB // OCMB -> MEM_PORT // OCMB -> DIMM + // OCMB -> PMIC static_assert(!((T_SELF == fapi2::TARGET_TYPE_OCMB_CHIP) && (K_CHILD != fapi2::TARGET_TYPE_MEM_PORT) && - (K_CHILD != fapi2::TARGET_TYPE_DIMM)), + (K_CHILD != fapi2::TARGET_TYPE_DIMM) && + (K_CHILD != fapi2::TARGET_TYPE_PMIC)), "improper child of fapi2::TARGET_TYPE_OCMB_CHIP"); // valid children for MEM_PORT -- cgit v1.2.3