summaryrefslogtreecommitdiffstats
path: root/src/include/usr/fapi2
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2019-05-23 13:22:52 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-05-29 16:54:49 -0500
commit8f4eeca3100a6ef6986cff52c0b95e6e384510a7 (patch)
tree3f6ccf0357c292ac5ce1b8cf74c24d0523c5edba /src/include/usr/fapi2
parentae7fd02c211501aa83e81e9593c28017633da629 (diff)
downloadtalos-hostboot-8f4eeca3100a6ef6986cff52c0b95e6e384510a7.tar.gz
talos-hostboot-8f4eeca3100a6ef6986cff52c0b95e6e384510a7.zip
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 <pfd-jenkins+hostboot@us.ibm.com> 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: Glenn Miles <milesg@ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/fapi2')
-rw-r--r--src/include/usr/fapi2/target.H10
1 files changed, 9 insertions, 1 deletions
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<Target<K_CHILD, M, V> >
// 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
OpenPOWER on IntegriCloud