summaryrefslogtreecommitdiffstats
path: root/src/import/chips/centaur/procedures/hwp/perv
diff options
context:
space:
mode:
authorThi Tran <thi@us.ibm.com>2016-11-16 09:31:03 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-08-02 11:35:23 -0400
commitb0f2a49e844dbb53671bd8811330638d058b8d62 (patch)
treed6bbe81b99227dc9df5fd7294524f3b59eac0b49 /src/import/chips/centaur/procedures/hwp/perv
parent7f846fade70220ef488d4a40a19db73f3c70bc2a (diff)
downloadtalos-hostboot-b0f2a49e844dbb53671bd8811330638d058b8d62.tar.gz
talos-hostboot-b0f2a49e844dbb53671bd8811330638d058b8d62.zip
Centaur istep 11 support
initCompiler generate procedures & wrapper for Centaur SCAN initfiles porting Centaur initfiles into p9 for Centaur EC 21 update Initfile Compiler to generate wrapper and C/H Scan files for Centaur generate rings data to be pulled in Centaur HW image. centaur_ec_attributes remove all attributes previously used by SBE code -- only DD2 is supported cen_common_funcs cleanup trace messages add common clockstart module for NEST/MEM centaur_misc_constants define constants for PLL scan0 operations define MEM scan chiplet constant cen_tp_chiplet_init1 remove EC feature attribute qualifications -- only DD2 is supported scan0 flush TP PLL GPTR BNDY and FUNC ring cen_pll_initf cen_initf directly invoke generated scan HWPs until putRing support exists cen_chiplet_init remove EC feature attribute qualifications -- only DD2 is supported cen_startclocks initial release centaur.cleanup.pll.scan.initfile right justify spy value to match p9 initCompiler expectations centaur.dmi.scan.initfile update owner centaur.mba.scan.initfile remove EC feature attribute qualifications -- only DD2 is supported centaur.mbs.scan.initfile remove EC feature attribute qualifications -- only DD2 is supported add content missing from original port centaur.mem.pll.scan.initfile remove dummy settings centaur.nest.pll.scan.initfile adjust freq attributes to match P9 NEST attribute content remove dummy settings centaur.thermal.scan.initfile update owner add content missing from original port cen_mem_pll_setup cen_nest_startclocks remove, not required for P9 IPL flow add missing object depedencies create wrappers for all planned isteps RTC 163457 Change-Id: I1973fe5a902a0d934a040719e8d9a58f9b9986a1 Original-Change-Id: Idd0972207f356315f1e2f52f911e1cb27f72a737 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32714 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43854 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/centaur/procedures/hwp/perv')
-rw-r--r--src/import/chips/centaur/procedures/hwp/perv/cen_initf.C114
1 files changed, 114 insertions, 0 deletions
diff --git a/src/import/chips/centaur/procedures/hwp/perv/cen_initf.C b/src/import/chips/centaur/procedures/hwp/perv/cen_initf.C
new file mode 100644
index 000000000..0e37ac75b
--- /dev/null
+++ b/src/import/chips/centaur/procedures/hwp/perv/cen_initf.C
@@ -0,0 +1,114 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/import/chips/centaur/procedures/hwp/perv/cen_initf.C $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2016,2017 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+///
+/// @file cen_initf.C
+/// @brief Centaur initf (FAPI2)
+///
+/// @author Peng Fei GOU <shgoupf@cn.ibm.com>
+///
+
+//
+// *HWP HWP Owner: Peng Fei GOU <shgoupf@cn.ibm.com>
+// *HWP FW Owner: Thi Tran <thi@us.ibm.com>
+// *HWP Team: Perv
+// *HWP Level: 2
+// *HWP Consumed by: HB
+//
+
+//------------------------------------------------------------------------------
+// Includes
+//------------------------------------------------------------------------------
+#include <cen_initf.H>
+#include <cen_gen_scom_addresses.H>
+#include <cen_gen_scom_addresses_fixes.H>
+#include <centaur_misc_constants.H>
+
+#ifndef __HOSTBOOT_MODULE
+ #include <centaur_mbs_scan.H>
+ #include <centaur_mba_scan.H>
+ #include <centaur_dmi_scan.H>
+ #include <centaur_thermal_scan.H>
+#endif
+
+//------------------------------------------------------------------------------
+// Function definitions
+//------------------------------------------------------------------------------
+
+fapi2::ReturnCode
+cen_initf(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& i_target)
+{
+ FAPI_DBG("Start");
+
+#ifndef __HOSTBOOT_MODULE
+ fapi2::Target<fapi2::TARGET_TYPE_SYSTEM> FAPI_SYSTEM;
+ fapi2::ReturnCode l_rc;
+
+ // apply initfiles
+ ecmdChipTarget l_ecmd_target;
+ fapiTargetToEcmdTarget(i_target, l_ecmd_target);
+ ecmdEnableRingCache(l_ecmd_target);
+ FAPI_EXEC_HWP(l_rc, centaur_mbs_scan, i_target, FAPI_SYSTEM);
+
+ if (l_rc)
+ {
+ FAPI_ERR("Error from centaur_mbs_scan");
+ fapi2::current_err = l_rc;
+ goto fapi_try_exit;
+ }
+
+ FAPI_EXEC_HWP(l_rc, centaur_mba_scan, i_target);
+
+ if (l_rc)
+ {
+ FAPI_ERR("Error from centaur_mba_scan");
+ fapi2::current_err = l_rc;
+ goto fapi_try_exit;
+ }
+
+ FAPI_EXEC_HWP(l_rc, centaur_dmi_scan, i_target, FAPI_SYSTEM);
+
+ if (l_rc)
+ {
+ FAPI_ERR("Error from centaur_dmi_scan");
+ fapi2::current_err = l_rc;
+ goto fapi_try_exit;
+ }
+
+ FAPI_EXEC_HWP(l_rc, centaur_thermal_scan, i_target, FAPI_SYSTEM);
+
+ if (l_rc)
+ {
+ FAPI_ERR("Error from centaur_thermal_scan");
+ fapi2::current_err = l_rc;
+ goto fapi_try_exit;
+ }
+
+ ecmdDisableRingCache(l_ecmd_target);
+
+fapi_try_exit:
+#endif
+ FAPI_DBG("End");
+ return fapi2::current_err;
+}
OpenPOWER on IntegriCloud