diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2018-04-06 22:54:28 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-04-10 16:13:48 -0400 |
commit | 43fcef0d5e371460dcdea1ff04bacfb731e6ee0f (patch) | |
tree | ca1ea2eaf2c0f594d38c4e34e8a71980117100dd /src/import/chips/centaur/procedures | |
parent | 0775540e33cc121932fd14ff956a6793b23f0a3e (diff) | |
download | talos-hostboot-43fcef0d5e371460dcdea1ff04bacfb731e6ee0f.tar.gz talos-hostboot-43fcef0d5e371460dcdea1ff04bacfb731e6ee0f.zip |
Remove un-used scan procedures
Change-Id: I6fdd38884facfda3abffce669b99fcd6aa4969e4
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56912
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/centaur/procedures')
21 files changed, 0 insertions, 1354 deletions
diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_cleanup_pll_scan.C b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_cleanup_pll_scan.C deleted file mode 100644 index b46d3bca2..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_cleanup_pll_scan.C +++ /dev/null @@ -1,75 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_cleanup_pll_scan.C $ */ -/* */ -/* OpenPOWER HostBoot Project */ -/* */ -/* Contributors Listed Below - COPYRIGHT 2016,2018 */ -/* [+] 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 */ -#include "centaur_cleanup_pll_scan.H" -#include <stdint.h> -#include <stddef.h> -#include <fapi2.H> - -using namespace fapi2; - -constexpr uint64_t literal_1 = 1; -constexpr uint64_t literal_0x000020000000 = 0x000020000000; -constexpr uint64_t literal_0 = 0; -constexpr uint64_t literal_0x40002208BF00 = 0x40002208BF00; - -fapi2::ReturnCode centaur_cleanup_pll_scan(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& TGT0, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>& TGT1) -{ - { - fapi2::ATTR_EC_Type l_chip_ec; - fapi2::ATTR_NAME_Type l_chip_id; - FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_NAME, TGT0, l_chip_id)); - FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_EC, TGT0, l_chip_ec)); - fapi2::ATTR_IS_SIMULATION_Type l_TGT1_ATTR_IS_SIMULATION; - FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_IS_SIMULATION, TGT1, l_TGT1_ATTR_IS_SIMULATION)); - uint64_t l_def_IS_SIM = (l_TGT1_ATTR_IS_SIMULATION == literal_1); - uint64_t l_def_IS_HW = (l_TGT1_ATTR_IS_SIMULATION == literal_0); - bool l_DMI_RX_RXCLKCTL_CUPLL_CTL_update = false; - fapi2::variable_buffer l_DMI_RX_RXCLKCTL_CUPLL_CTL(47); - fapi2::variable_buffer l_DMI_RX_RXCLKCTL_CUPLL_CTL_CARE(47); - - if (l_def_IS_SIM) - { - l_DMI_RX_RXCLKCTL_CUPLL_CTL.insertFromRight<uint64_t>(literal_0x000020000000, 0, 47); - l_DMI_RX_RXCLKCTL_CUPLL_CTL_CARE.insertFromRight<uint64_t>(0x7fffffffffff, 0, 47); - l_DMI_RX_RXCLKCTL_CUPLL_CTL_update = true; - } - else if (l_def_IS_HW) - { - l_DMI_RX_RXCLKCTL_CUPLL_CTL.insertFromRight<uint64_t>(literal_0x40002208BF00, 0, 47); - l_DMI_RX_RXCLKCTL_CUPLL_CTL_CARE.insertFromRight<uint64_t>(0x7fffffffffff, 0, 47); - l_DMI_RX_RXCLKCTL_CUPLL_CTL_update = true; - } - - if ( l_DMI_RX_RXCLKCTL_CUPLL_CTL_update) - { - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "DMI.RX.RXCLKCTL.CUPLL_CTL", l_DMI_RX_RXCLKCTL_CUPLL_CTL, - l_DMI_RX_RXCLKCTL_CUPLL_CTL_CARE)); - } - - }; -fapi_try_exit: - return fapi2::current_err; -} diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_cleanup_pll_scan.H b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_cleanup_pll_scan.H deleted file mode 100644 index e47fd913a..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_cleanup_pll_scan.H +++ /dev/null @@ -1,49 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_cleanup_pll_scan.H $ */ -/* */ -/* 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 */ -#ifndef _INIT_CENTAUR_CLEANUP_PLL_SCAN_PROCEDURE_H_ -#define _INIT_CENTAUR_CLEANUP_PLL_SCAN_PROCEDURE_H_ - - -#include <stddef.h> -#include <stdint.h> -#include <fapi2.H> - -#ifdef IFCOMPILER_PLAT -#define INITFILE_PROCEDURE \ - centaur_cleanup_pll_scan(TGT0, TGT1); -#endif - -typedef fapi2::ReturnCode (*centaur_cleanup_pll_scan_FP_t)(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>&, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>&); - -extern "C" -{ - - fapi2::ReturnCode centaur_cleanup_pll_scan(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& TGT0, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>& TGT1); - -} - -#endif diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_cleanup_pll_scan.mk b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_cleanup_pll_scan.mk deleted file mode 100644 index abb913a40..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_cleanup_pll_scan.mk +++ /dev/null @@ -1,36 +0,0 @@ -# IBM_PROLOG_BEGIN_TAG -# This is an automatically generated prolog. -# -# $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_cleanup_pll_scan.mk $ -# -# 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 -PROCEDURE=centaur_cleanup_pll_scan -lib$(PROCEDURE)_COMMONFLAGS+=-DFAPI_SUPPORT_SPY_AS_STRING=1 -$(call BUILD_PROCEDURE) - -PROCEDURE=centaur_cleanup_pll_scan_ifCompiler -lib$(PROCEDURE)_COMMONFLAGS+=-DFAPI_SUPPORT_SPY_AS_STRING=1 -lib$(PROCEDURE)_COMMONFLAGS+=-DIFCOMPILER_PLAT=1 -FAPI=2_IFCOMPILER -OBJS+=centaur_cleanup_pll_scan.o -lib$(PROCEDURE)_LIBPATH=$(LIBPATH)/ifCompiler -lib$(PROCEDURE)_COMMONFLAGS+=-fno-var-tracking-assignments -$(call BUILD_PROCEDURE)
\ No newline at end of file diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_dmi_scan.C b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_dmi_scan.C deleted file mode 100644 index 9ea61a5ec..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_dmi_scan.C +++ /dev/null @@ -1,45 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_dmi_scan.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 */ -#include "centaur_dmi_scan.H" -#include <stdint.h> -#include <stddef.h> -#include <fapi2.H> - -using namespace fapi2; - - -fapi2::ReturnCode centaur_dmi_scan(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& TGT0, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>& TGT1) -{ - { - fapi2::ATTR_EC_Type l_chip_ec; - fapi2::ATTR_NAME_Type l_chip_id; - FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_NAME, TGT0, l_chip_id)); - FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_EC, TGT0, l_chip_ec)); - - }; -fapi_try_exit: - return fapi2::current_err; -} diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_dmi_scan.H b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_dmi_scan.H deleted file mode 100644 index da5c8d73c..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_dmi_scan.H +++ /dev/null @@ -1,49 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_dmi_scan.H $ */ -/* */ -/* 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 */ -#ifndef _INIT_CENTAUR_DMI_SCAN_PROCEDURE_H_ -#define _INIT_CENTAUR_DMI_SCAN_PROCEDURE_H_ - - -#include <stddef.h> -#include <stdint.h> -#include <fapi2.H> - -#ifdef IFCOMPILER_PLAT -#define INITFILE_PROCEDURE \ - centaur_dmi_scan(TGT0, TGT1); -#endif - -typedef fapi2::ReturnCode (*centaur_dmi_scan_FP_t)(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>&, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>&); - -extern "C" -{ - - fapi2::ReturnCode centaur_dmi_scan(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& TGT0, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>& TGT1); - -} - -#endif diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_dmi_scan.mk b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_dmi_scan.mk deleted file mode 100644 index 8b2d45895..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_dmi_scan.mk +++ /dev/null @@ -1,36 +0,0 @@ -# IBM_PROLOG_BEGIN_TAG -# This is an automatically generated prolog. -# -# $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_dmi_scan.mk $ -# -# 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 -PROCEDURE=centaur_dmi_scan -lib$(PROCEDURE)_COMMONFLAGS+=-DFAPI_SUPPORT_SPY_AS_STRING=1 -$(call BUILD_PROCEDURE) - -PROCEDURE=centaur_dmi_scan_ifCompiler -lib$(PROCEDURE)_COMMONFLAGS+=-DFAPI_SUPPORT_SPY_AS_STRING=1 -lib$(PROCEDURE)_COMMONFLAGS+=-DIFCOMPILER_PLAT=1 -FAPI=2_IFCOMPILER -OBJS+=centaur_dmi_scan.o -lib$(PROCEDURE)_LIBPATH=$(LIBPATH)/ifCompiler -lib$(PROCEDURE)_COMMONFLAGS+=-fno-var-tracking-assignments -$(call BUILD_PROCEDURE)
\ No newline at end of file diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mba_scan.C b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mba_scan.C deleted file mode 100644 index a3b85c6f3..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mba_scan.C +++ /dev/null @@ -1,113 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_mba_scan.C $ */ -/* */ -/* OpenPOWER HostBoot Project */ -/* */ -/* Contributors Listed Below - COPYRIGHT 2016,2018 */ -/* [+] 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 */ -#include "centaur_mba_scan.H" -#include <stdint.h> -#include <stddef.h> -#include <fapi2.H> - -using namespace fapi2; - -constexpr uint64_t literal_0x0000000000003FFF = 0x0000000000003FFF; -constexpr uint64_t literal_0xFFFFFF = 0xFFFFFF; -constexpr uint64_t literal_0b00000000000011 = 0b00000000000011; - -fapi2::ReturnCode centaur_mba_scan(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& TGT0) -{ - { - fapi2::ATTR_EC_Type l_chip_ec; - fapi2::ATTR_NAME_Type l_chip_id; - FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_NAME, TGT0, l_chip_id)); - FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_EC, TGT0, l_chip_ec)); - fapi2::variable_buffer l_MBU_MBA01_DD2_HW218537_MASTER_RANK_END_FIX_DIS(1); - fapi2::variable_buffer l_MBU_MBA01_DD2_HW218537_MASTER_RANK_END_FIX_DIS_CARE(1); - constexpr auto l_MBU_MBA01_DD2_HW218537_MASTER_RANK_END_FIX_DIS_ON = 0x1; - l_MBU_MBA01_DD2_HW218537_MASTER_RANK_END_FIX_DIS.insertFromRight<uint64_t> - (l_MBU_MBA01_DD2_HW218537_MASTER_RANK_END_FIX_DIS_ON, 0, 1); - l_MBU_MBA01_DD2_HW218537_MASTER_RANK_END_FIX_DIS_CARE.insertFromRight<uint64_t>(0x1, 0, 1); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBA01.DD2_HW218537_MASTER_RANK_END_FIX_DIS", - l_MBU_MBA01_DD2_HW218537_MASTER_RANK_END_FIX_DIS, l_MBU_MBA01_DD2_HW218537_MASTER_RANK_END_FIX_DIS_CARE)); - fapi2::variable_buffer l_MBU_MBA23_DD2_HW218537_MASTER_RANK_END_FIX_DIS(1); - fapi2::variable_buffer l_MBU_MBA23_DD2_HW218537_MASTER_RANK_END_FIX_DIS_CARE(1); - constexpr auto l_MBU_MBA23_DD2_HW218537_MASTER_RANK_END_FIX_DIS_ON = 0x1; - l_MBU_MBA23_DD2_HW218537_MASTER_RANK_END_FIX_DIS.insertFromRight<uint64_t> - (l_MBU_MBA23_DD2_HW218537_MASTER_RANK_END_FIX_DIS_ON, 0, 1); - l_MBU_MBA23_DD2_HW218537_MASTER_RANK_END_FIX_DIS_CARE.insertFromRight<uint64_t>(0x1, 0, 1); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBA23.DD2_HW218537_MASTER_RANK_END_FIX_DIS", - l_MBU_MBA23_DD2_HW218537_MASTER_RANK_END_FIX_DIS, l_MBU_MBA23_DD2_HW218537_MASTER_RANK_END_FIX_DIS_CARE)); - fapi2::variable_buffer l_MBU_MBA01_DD2_HW220614_SCRUB_PSAVE_DIS(1); - fapi2::variable_buffer l_MBU_MBA01_DD2_HW220614_SCRUB_PSAVE_DIS_CARE(1); - constexpr auto l_MBU_MBA01_DD2_HW220614_SCRUB_PSAVE_DIS_OFF = 0x0; - l_MBU_MBA01_DD2_HW220614_SCRUB_PSAVE_DIS.insertFromRight<uint64_t>(l_MBU_MBA01_DD2_HW220614_SCRUB_PSAVE_DIS_OFF, 0, 1); - l_MBU_MBA01_DD2_HW220614_SCRUB_PSAVE_DIS_CARE.insertFromRight<uint64_t>(0x1, 0, 1); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBA01.DD2_HW220614_SCRUB_PSAVE_DIS", l_MBU_MBA01_DD2_HW220614_SCRUB_PSAVE_DIS, - l_MBU_MBA01_DD2_HW220614_SCRUB_PSAVE_DIS_CARE)); - fapi2::variable_buffer l_MBU_MBA23_DD2_HW220614_SCRUB_PSAVE_DIS(1); - fapi2::variable_buffer l_MBU_MBA23_DD2_HW220614_SCRUB_PSAVE_DIS_CARE(1); - constexpr auto l_MBU_MBA23_DD2_HW220614_SCRUB_PSAVE_DIS_OFF = 0x0; - l_MBU_MBA23_DD2_HW220614_SCRUB_PSAVE_DIS.insertFromRight<uint64_t>(l_MBU_MBA23_DD2_HW220614_SCRUB_PSAVE_DIS_OFF, 0, 1); - l_MBU_MBA23_DD2_HW220614_SCRUB_PSAVE_DIS_CARE.insertFromRight<uint64_t>(0x1, 0, 1); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBA23.DD2_HW220614_SCRUB_PSAVE_DIS", l_MBU_MBA23_DD2_HW220614_SCRUB_PSAVE_DIS, - l_MBU_MBA23_DD2_HW220614_SCRUB_PSAVE_DIS_CARE)); - fapi2::variable_buffer l_TCM_TRA_MBA01TRA_TR_TRACE_TRDATA_CONFIG_0(64); - fapi2::variable_buffer l_TCM_TRA_MBA01TRA_TR_TRACE_TRDATA_CONFIG_0_CARE(64); - l_TCM_TRA_MBA01TRA_TR_TRACE_TRDATA_CONFIG_0.insertFromRight<uint64_t>(literal_0x0000000000003FFF, 0, 64); - l_TCM_TRA_MBA01TRA_TR_TRACE_TRDATA_CONFIG_0_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "TCM.TRA.MBA01TRA.TR.TRACE_TRDATA_CONFIG_0", - l_TCM_TRA_MBA01TRA_TR_TRACE_TRDATA_CONFIG_0, l_TCM_TRA_MBA01TRA_TR_TRACE_TRDATA_CONFIG_0_CARE)); - fapi2::variable_buffer l_TCM_TRA_MBA01TRA_TR_TRACE_TRDATA_CONFIG_1(24); - fapi2::variable_buffer l_TCM_TRA_MBA01TRA_TR_TRACE_TRDATA_CONFIG_1_CARE(24); - l_TCM_TRA_MBA01TRA_TR_TRACE_TRDATA_CONFIG_1.insertFromRight<uint64_t>(literal_0xFFFFFF, 0, 24); - l_TCM_TRA_MBA01TRA_TR_TRACE_TRDATA_CONFIG_1_CARE.insertFromRight<uint64_t>(0xffffff, 0, 24); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "TCM.TRA.MBA01TRA.TR.TRACE_TRDATA_CONFIG_1", - l_TCM_TRA_MBA01TRA_TR_TRACE_TRDATA_CONFIG_1, l_TCM_TRA_MBA01TRA_TR_TRACE_TRDATA_CONFIG_1_CARE)); - fapi2::variable_buffer l_TCM_TRA_MBA23TRA_TR_TRACE_TRDATA_CONFIG_0(64); - fapi2::variable_buffer l_TCM_TRA_MBA23TRA_TR_TRACE_TRDATA_CONFIG_0_CARE(64); - l_TCM_TRA_MBA23TRA_TR_TRACE_TRDATA_CONFIG_0.insertFromRight<uint64_t>(literal_0x0000000000003FFF, 0, 64); - l_TCM_TRA_MBA23TRA_TR_TRACE_TRDATA_CONFIG_0_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "TCM.TRA.MBA23TRA.TR.TRACE_TRDATA_CONFIG_0", - l_TCM_TRA_MBA23TRA_TR_TRACE_TRDATA_CONFIG_0, l_TCM_TRA_MBA23TRA_TR_TRACE_TRDATA_CONFIG_0_CARE)); - fapi2::variable_buffer l_TCM_TRA_MBA23TRA_TR_TRACE_TRDATA_CONFIG_1(24); - fapi2::variable_buffer l_TCM_TRA_MBA23TRA_TR_TRACE_TRDATA_CONFIG_1_CARE(24); - l_TCM_TRA_MBA23TRA_TR_TRACE_TRDATA_CONFIG_1.insertFromRight<uint64_t>(literal_0xFFFFFF, 0, 24); - l_TCM_TRA_MBA23TRA_TR_TRACE_TRDATA_CONFIG_1_CARE.insertFromRight<uint64_t>(0xffffff, 0, 24); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "TCM.TRA.MBA23TRA.TR.TRACE_TRDATA_CONFIG_1", - l_TCM_TRA_MBA23TRA_TR_TRACE_TRDATA_CONFIG_1, l_TCM_TRA_MBA23TRA_TR_TRACE_TRDATA_CONFIG_1_CARE)); - fapi2::variable_buffer l_TCM_TRA_MBA01TRA_TR_TRACE_TRCTRL_CONFIG(14); - fapi2::variable_buffer l_TCM_TRA_MBA01TRA_TR_TRACE_TRCTRL_CONFIG_CARE(14); - l_TCM_TRA_MBA01TRA_TR_TRACE_TRCTRL_CONFIG.insertFromRight<uint64_t>(literal_0b00000000000011, 0, 14); - l_TCM_TRA_MBA01TRA_TR_TRACE_TRCTRL_CONFIG_CARE.insertFromRight<uint64_t>(0x3fff, 0, 14); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "TCM.TRA.MBA01TRA.TR.TRACE_TRCTRL_CONFIG", - l_TCM_TRA_MBA01TRA_TR_TRACE_TRCTRL_CONFIG, l_TCM_TRA_MBA01TRA_TR_TRACE_TRCTRL_CONFIG_CARE)); - fapi2::variable_buffer l_TCM_TRA_MBA23TRA_TR_TRACE_TRCTRL_CONFIG(14); - fapi2::variable_buffer l_TCM_TRA_MBA23TRA_TR_TRACE_TRCTRL_CONFIG_CARE(14); - l_TCM_TRA_MBA23TRA_TR_TRACE_TRCTRL_CONFIG.insertFromRight<uint64_t>(literal_0b00000000000011, 0, 14); - l_TCM_TRA_MBA23TRA_TR_TRACE_TRCTRL_CONFIG_CARE.insertFromRight<uint64_t>(0x3fff, 0, 14); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "TCM.TRA.MBA23TRA.TR.TRACE_TRCTRL_CONFIG", - l_TCM_TRA_MBA23TRA_TR_TRACE_TRCTRL_CONFIG, l_TCM_TRA_MBA23TRA_TR_TRACE_TRCTRL_CONFIG_CARE)); - - }; -fapi_try_exit: - return fapi2::current_err; -} diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mba_scan.H b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mba_scan.H deleted file mode 100644 index 6d02ef0de..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mba_scan.H +++ /dev/null @@ -1,47 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_mba_scan.H $ */ -/* */ -/* 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 */ -#ifndef _INIT_CENTAUR_MBA_SCAN_PROCEDURE_H_ -#define _INIT_CENTAUR_MBA_SCAN_PROCEDURE_H_ - - -#include <stddef.h> -#include <stdint.h> -#include <fapi2.H> - -#ifdef IFCOMPILER_PLAT -#define INITFILE_PROCEDURE \ - centaur_mba_scan(TGT0); -#endif - -typedef fapi2::ReturnCode (*centaur_mba_scan_FP_t)(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>&); - -extern "C" -{ - - fapi2::ReturnCode centaur_mba_scan(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& TGT0); - -} - -#endif diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mba_scan.mk b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mba_scan.mk deleted file mode 100644 index dd4c536a7..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mba_scan.mk +++ /dev/null @@ -1,36 +0,0 @@ -# IBM_PROLOG_BEGIN_TAG -# This is an automatically generated prolog. -# -# $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_mba_scan.mk $ -# -# 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 -PROCEDURE=centaur_mba_scan -lib$(PROCEDURE)_COMMONFLAGS+=-DFAPI_SUPPORT_SPY_AS_STRING=1 -$(call BUILD_PROCEDURE) - -PROCEDURE=centaur_mba_scan_ifCompiler -lib$(PROCEDURE)_COMMONFLAGS+=-DFAPI_SUPPORT_SPY_AS_STRING=1 -lib$(PROCEDURE)_COMMONFLAGS+=-DIFCOMPILER_PLAT=1 -FAPI=2_IFCOMPILER -OBJS+=centaur_mba_scan.o -lib$(PROCEDURE)_LIBPATH=$(LIBPATH)/ifCompiler -lib$(PROCEDURE)_COMMONFLAGS+=-fno-var-tracking-assignments -$(call BUILD_PROCEDURE)
\ No newline at end of file diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mbs_scan.C b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mbs_scan.C deleted file mode 100644 index 79d9b4354..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mbs_scan.C +++ /dev/null @@ -1,159 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_mbs_scan.C $ */ -/* */ -/* OpenPOWER HostBoot Project */ -/* */ -/* Contributors Listed Below - COPYRIGHT 2016,2018 */ -/* [+] 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 */ -#include "centaur_mbs_scan.H" -#include <stdint.h> -#include <stddef.h> -#include <fapi2.H> - -using namespace fapi2; - -constexpr uint64_t literal_0b0010000 = 0b0010000; -constexpr uint64_t literal_0b10110111000 = 0b10110111000; -constexpr uint64_t literal_0b00000000000000 = 0b00000000000000; -constexpr uint64_t literal_0b001001 = 0b001001; -constexpr uint64_t literal_0b001 = 0b001; -constexpr uint64_t literal_0b000000 = 0b000000; -constexpr uint64_t literal_0b00100 = 0b00100; -constexpr uint64_t literal_0b011 = 0b011; - -fapi2::ReturnCode centaur_mbs_scan(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& TGT0, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>& TGT1) -{ - { - fapi2::ATTR_EC_Type l_chip_ec; - fapi2::ATTR_NAME_Type l_chip_id; - FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_NAME, TGT0, l_chip_id)); - FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_EC, TGT0, l_chip_ec)); - fapi2::variable_buffer l_MBU_MBS_CFG_MBS_FLARB_PROGRESS_WINDOW_EN(1); - fapi2::variable_buffer l_MBU_MBS_CFG_MBS_FLARB_PROGRESS_WINDOW_EN_CARE(1); - constexpr auto l_MBU_MBS_CFG_MBS_FLARB_PROGRESS_WINDOW_EN_ON = 0x1; - l_MBU_MBS_CFG_MBS_FLARB_PROGRESS_WINDOW_EN.insertFromRight<uint64_t>(l_MBU_MBS_CFG_MBS_FLARB_PROGRESS_WINDOW_EN_ON, 0, - 1); - l_MBU_MBS_CFG_MBS_FLARB_PROGRESS_WINDOW_EN_CARE.insertFromRight<uint64_t>(0x1, 0, 1); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBS.CFG_MBS_FLARB_PROGRESS_WINDOW_EN", - l_MBU_MBS_CFG_MBS_FLARB_PROGRESS_WINDOW_EN, l_MBU_MBS_CFG_MBS_FLARB_PROGRESS_WINDOW_EN_CARE)); - fapi2::variable_buffer l_MBU_MBS_CFG_BLOCK_CACHE_CE_FIR_DIS(1); - fapi2::variable_buffer l_MBU_MBS_CFG_BLOCK_CACHE_CE_FIR_DIS_CARE(1); - constexpr auto l_MBU_MBS_CFG_BLOCK_CACHE_CE_FIR_DIS_ON = 0x1; - l_MBU_MBS_CFG_BLOCK_CACHE_CE_FIR_DIS.insertFromRight<uint64_t>(l_MBU_MBS_CFG_BLOCK_CACHE_CE_FIR_DIS_ON, 0, 1); - l_MBU_MBS_CFG_BLOCK_CACHE_CE_FIR_DIS_CARE.insertFromRight<uint64_t>(0x1, 0, 1); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBS.CFG_BLOCK_CACHE_CE_FIR_DIS", l_MBU_MBS_CFG_BLOCK_CACHE_CE_FIR_DIS, - l_MBU_MBS_CFG_BLOCK_CACHE_CE_FIR_DIS_CARE)); - fapi2::variable_buffer l_MBU_MBX_HW269130_MBX_RDTAG_PARITY_CHECK(4); - fapi2::variable_buffer l_MBU_MBX_HW269130_MBX_RDTAG_PARITY_CHECK_CARE(4); - constexpr auto l_MBU_MBX_HW269130_MBX_RDTAG_PARITY_CHECK_MASKED = 0xf; - l_MBU_MBX_HW269130_MBX_RDTAG_PARITY_CHECK.insertFromRight<uint64_t>(l_MBU_MBX_HW269130_MBX_RDTAG_PARITY_CHECK_MASKED, 0, - 4); - l_MBU_MBX_HW269130_MBX_RDTAG_PARITY_CHECK_CARE.insertFromRight<uint64_t>(0xf, 0, 4); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBX.HW269130_MBX_RDTAG_PARITY_CHECK", - l_MBU_MBX_HW269130_MBX_RDTAG_PARITY_CHECK, l_MBU_MBX_HW269130_MBX_RDTAG_PARITY_CHECK_CARE)); - fapi2::variable_buffer l_MBU_MBS_CFG_DIR_ECC_USE_ADDPAR_DISABLE(7); - fapi2::variable_buffer l_MBU_MBS_CFG_DIR_ECC_USE_ADDPAR_DISABLE_CARE(7); - constexpr auto l_MBU_MBS_CFG_DIR_ECC_USE_ADDPAR_DISABLE_OFF = 0x0; - l_MBU_MBS_CFG_DIR_ECC_USE_ADDPAR_DISABLE.insertFromRight<uint64_t>(l_MBU_MBS_CFG_DIR_ECC_USE_ADDPAR_DISABLE_OFF, 0, 7); - l_MBU_MBS_CFG_DIR_ECC_USE_ADDPAR_DISABLE_CARE.insertFromRight<uint64_t>(0x7f, 0, 7); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBS.CFG_DIR_ECC_USE_ADDPAR_DISABLE", l_MBU_MBS_CFG_DIR_ECC_USE_ADDPAR_DISABLE, - l_MBU_MBS_CFG_DIR_ECC_USE_ADDPAR_DISABLE_CARE)); - fapi2::variable_buffer l_MBU_MBI_MBI_WAT0A_WAT_ENABLE(1); - fapi2::variable_buffer l_MBU_MBI_MBI_WAT0A_WAT_ENABLE_CARE(1); - constexpr auto l_MBU_MBI_MBI_WAT0A_WAT_ENABLE_ON = 0x1; - l_MBU_MBI_MBI_WAT0A_WAT_ENABLE.insertFromRight<uint64_t>(l_MBU_MBI_MBI_WAT0A_WAT_ENABLE_ON, 0, 1); - l_MBU_MBI_MBI_WAT0A_WAT_ENABLE_CARE.insertFromRight<uint64_t>(0x1, 0, 1); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBI.MBI.WAT0A.WAT_ENABLE", l_MBU_MBI_MBI_WAT0A_WAT_ENABLE, - l_MBU_MBI_MBI_WAT0A_WAT_ENABLE_CARE)); - fapi2::variable_buffer l_MBU_MBI_MBI_WAT0B_WAT_ENABLE(1); - fapi2::variable_buffer l_MBU_MBI_MBI_WAT0B_WAT_ENABLE_CARE(1); - constexpr auto l_MBU_MBI_MBI_WAT0B_WAT_ENABLE_ON = 0x1; - l_MBU_MBI_MBI_WAT0B_WAT_ENABLE.insertFromRight<uint64_t>(l_MBU_MBI_MBI_WAT0B_WAT_ENABLE_ON, 0, 1); - l_MBU_MBI_MBI_WAT0B_WAT_ENABLE_CARE.insertFromRight<uint64_t>(0x1, 0, 1); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBI.MBI.WAT0B.WAT_ENABLE", l_MBU_MBI_MBI_WAT0B_WAT_ENABLE, - l_MBU_MBI_MBI_WAT0B_WAT_ENABLE_CARE)); - fapi2::variable_buffer l_MBU_MBI_CFG_DBG_MUX(7); - fapi2::variable_buffer l_MBU_MBI_CFG_DBG_MUX_CARE(7); - l_MBU_MBI_CFG_DBG_MUX.insertFromRight<uint64_t>(literal_0b0010000, 0, 7); - l_MBU_MBI_CFG_DBG_MUX_CARE.insertFromRight<uint64_t>(0x7f, 0, 7); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBI.CFG_DBG_MUX", l_MBU_MBI_CFG_DBG_MUX, l_MBU_MBI_CFG_DBG_MUX_CARE)); - fapi2::variable_buffer l_MBU_MBS_IBB_IBRD_CFG_LATE_OCC_UPDATE_DONE(1); - fapi2::variable_buffer l_MBU_MBS_IBB_IBRD_CFG_LATE_OCC_UPDATE_DONE_CARE(1); - constexpr auto l_MBU_MBS_IBB_IBRD_CFG_LATE_OCC_UPDATE_DONE_ON = 0x1; - l_MBU_MBS_IBB_IBRD_CFG_LATE_OCC_UPDATE_DONE.insertFromRight<uint64_t>(l_MBU_MBS_IBB_IBRD_CFG_LATE_OCC_UPDATE_DONE_ON, 0, - 1); - l_MBU_MBS_IBB_IBRD_CFG_LATE_OCC_UPDATE_DONE_CARE.insertFromRight<uint64_t>(0x1, 0, 1); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBS.IBB.IBRD.CFG_LATE_OCC_UPDATE_DONE", - l_MBU_MBS_IBB_IBRD_CFG_LATE_OCC_UPDATE_DONE, l_MBU_MBS_IBB_IBRD_CFG_LATE_OCC_UPDATE_DONE_CARE)); - fapi2::variable_buffer l_MBU_MBS_CFG_HANG_COUNT(11); - fapi2::variable_buffer l_MBU_MBS_CFG_HANG_COUNT_CARE(11); - l_MBU_MBS_CFG_HANG_COUNT.insertFromRight<uint64_t>(literal_0b10110111000, 0, 11); - l_MBU_MBS_CFG_HANG_COUNT_CARE.insertFromRight<uint64_t>(0x7ff, 0, 11); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBS.CFG_HANG_COUNT", l_MBU_MBS_CFG_HANG_COUNT, - l_MBU_MBS_CFG_HANG_COUNT_CARE)); - fapi2::variable_buffer l_MBU_MBS_MBS_CLN_DV_CGC_CNT_LWMARK(14); - fapi2::variable_buffer l_MBU_MBS_MBS_CLN_DV_CGC_CNT_LWMARK_CARE(14); - l_MBU_MBS_MBS_CLN_DV_CGC_CNT_LWMARK.insertFromRight<uint64_t>(literal_0b00000000000000, 0, 14); - l_MBU_MBS_MBS_CLN_DV_CGC_CNT_LWMARK_CARE.insertFromRight<uint64_t>(0x3fff, 0, 14); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBS.MBS_CLN_DV_CGC_CNT_LWMARK", l_MBU_MBS_MBS_CLN_DV_CGC_CNT_LWMARK, - l_MBU_MBS_MBS_CLN_DV_CGC_CNT_LWMARK_CARE)); - fapi2::variable_buffer l_MBU_MBS_MBS_CLN_RNK_GRP_WRQ_CNT_LWMARK(6); - fapi2::variable_buffer l_MBU_MBS_MBS_CLN_RNK_GRP_WRQ_CNT_LWMARK_CARE(6); - l_MBU_MBS_MBS_CLN_RNK_GRP_WRQ_CNT_LWMARK.insertFromRight<uint64_t>(literal_0b001001, 0, 6); - l_MBU_MBS_MBS_CLN_RNK_GRP_WRQ_CNT_LWMARK_CARE.insertFromRight<uint64_t>(0x3f, 0, 6); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBS.MBS_CLN_RNK_GRP_WRQ_CNT_LWMARK", l_MBU_MBS_MBS_CLN_RNK_GRP_WRQ_CNT_LWMARK, - l_MBU_MBS_MBS_CLN_RNK_GRP_WRQ_CNT_LWMARK_CARE)); - fapi2::variable_buffer l_MBU_MBS_MBS_CLN_PAGE_MODE_HARVEST_DIS(1); - fapi2::variable_buffer l_MBU_MBS_MBS_CLN_PAGE_MODE_HARVEST_DIS_CARE(1); - constexpr auto l_MBU_MBS_MBS_CLN_PAGE_MODE_HARVEST_DIS_OFF = 0x0; - l_MBU_MBS_MBS_CLN_PAGE_MODE_HARVEST_DIS.insertFromRight<uint64_t>(l_MBU_MBS_MBS_CLN_PAGE_MODE_HARVEST_DIS_OFF, 0, 1); - l_MBU_MBS_MBS_CLN_PAGE_MODE_HARVEST_DIS_CARE.insertFromRight<uint64_t>(0x1, 0, 1); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBS.MBS_CLN_PAGE_MODE_HARVEST_DIS", l_MBU_MBS_MBS_CLN_PAGE_MODE_HARVEST_DIS, - l_MBU_MBS_MBS_CLN_PAGE_MODE_HARVEST_DIS_CARE)); - fapi2::variable_buffer l_MBU_MBS_MBS_CLN_PAGE_MODE_HARV_MAX_FAILS_CNT(3); - fapi2::variable_buffer l_MBU_MBS_MBS_CLN_PAGE_MODE_HARV_MAX_FAILS_CNT_CARE(3); - l_MBU_MBS_MBS_CLN_PAGE_MODE_HARV_MAX_FAILS_CNT.insertFromRight<uint64_t>(literal_0b001, 0, 3); - l_MBU_MBS_MBS_CLN_PAGE_MODE_HARV_MAX_FAILS_CNT_CARE.insertFromRight<uint64_t>(0x7, 0, 3); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBS.MBS_CLN_PAGE_MODE_HARV_MAX_FAILS_CNT", - l_MBU_MBS_MBS_CLN_PAGE_MODE_HARV_MAX_FAILS_CNT, l_MBU_MBS_MBS_CLN_PAGE_MODE_HARV_MAX_FAILS_CNT_CARE)); - fapi2::variable_buffer l_MBU_MBS_MBS_CLN_PG_HARV_CONFLICT_WAIT_CNT(6); - fapi2::variable_buffer l_MBU_MBS_MBS_CLN_PG_HARV_CONFLICT_WAIT_CNT_CARE(6); - l_MBU_MBS_MBS_CLN_PG_HARV_CONFLICT_WAIT_CNT.insertFromRight<uint64_t>(literal_0b000000, 0, 6); - l_MBU_MBS_MBS_CLN_PG_HARV_CONFLICT_WAIT_CNT_CARE.insertFromRight<uint64_t>(0x3f, 0, 6); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBS.MBS_CLN_PG_HARV_CONFLICT_WAIT_CNT", - l_MBU_MBS_MBS_CLN_PG_HARV_CONFLICT_WAIT_CNT, l_MBU_MBS_MBS_CLN_PG_HARV_CONFLICT_WAIT_CNT_CARE)); - fapi2::variable_buffer l_MBU_MBS_CFG_WHAP_CLEAN_THRESHOLD(5); - fapi2::variable_buffer l_MBU_MBS_CFG_WHAP_CLEAN_THRESHOLD_CARE(5); - l_MBU_MBS_CFG_WHAP_CLEAN_THRESHOLD.insertFromRight<uint64_t>(literal_0b00100, 0, 5); - l_MBU_MBS_CFG_WHAP_CLEAN_THRESHOLD_CARE.insertFromRight<uint64_t>(0x1f, 0, 5); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBS.CFG_WHAP_CLEAN_THRESHOLD", l_MBU_MBS_CFG_WHAP_CLEAN_THRESHOLD, - l_MBU_MBS_CFG_WHAP_CLEAN_THRESHOLD_CARE)); - fapi2::variable_buffer l_MBU_MBS_CFG_WHAP_WR_START_RECNT(3); - fapi2::variable_buffer l_MBU_MBS_CFG_WHAP_WR_START_RECNT_CARE(3); - l_MBU_MBS_CFG_WHAP_WR_START_RECNT.insertFromRight<uint64_t>(literal_0b011, 0, 3); - l_MBU_MBS_CFG_WHAP_WR_START_RECNT_CARE.insertFromRight<uint64_t>(0x7, 0, 3); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "MBU.MBS.CFG_WHAP_WR_START_RECNT", l_MBU_MBS_CFG_WHAP_WR_START_RECNT, - l_MBU_MBS_CFG_WHAP_WR_START_RECNT_CARE)); - - }; -fapi_try_exit: - return fapi2::current_err; -} diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mbs_scan.H b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mbs_scan.H deleted file mode 100644 index c4641e723..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mbs_scan.H +++ /dev/null @@ -1,49 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_mbs_scan.H $ */ -/* */ -/* 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 */ -#ifndef _INIT_CENTAUR_MBS_SCAN_PROCEDURE_H_ -#define _INIT_CENTAUR_MBS_SCAN_PROCEDURE_H_ - - -#include <stddef.h> -#include <stdint.h> -#include <fapi2.H> - -#ifdef IFCOMPILER_PLAT -#define INITFILE_PROCEDURE \ - centaur_mbs_scan(TGT0, TGT1); -#endif - -typedef fapi2::ReturnCode (*centaur_mbs_scan_FP_t)(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>&, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>&); - -extern "C" -{ - - fapi2::ReturnCode centaur_mbs_scan(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& TGT0, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>& TGT1); - -} - -#endif diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mbs_scan.mk b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mbs_scan.mk deleted file mode 100644 index cd00151c1..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mbs_scan.mk +++ /dev/null @@ -1,36 +0,0 @@ -# IBM_PROLOG_BEGIN_TAG -# This is an automatically generated prolog. -# -# $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_mbs_scan.mk $ -# -# 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 -PROCEDURE=centaur_mbs_scan -lib$(PROCEDURE)_COMMONFLAGS+=-DFAPI_SUPPORT_SPY_AS_STRING=1 -$(call BUILD_PROCEDURE) - -PROCEDURE=centaur_mbs_scan_ifCompiler -lib$(PROCEDURE)_COMMONFLAGS+=-DFAPI_SUPPORT_SPY_AS_STRING=1 -lib$(PROCEDURE)_COMMONFLAGS+=-DIFCOMPILER_PLAT=1 -FAPI=2_IFCOMPILER -OBJS+=centaur_mbs_scan.o -lib$(PROCEDURE)_LIBPATH=$(LIBPATH)/ifCompiler -lib$(PROCEDURE)_COMMONFLAGS+=-fno-var-tracking-assignments -$(call BUILD_PROCEDURE)
\ No newline at end of file diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mem_pll_scan.C b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mem_pll_scan.C deleted file mode 100644 index 936be0c4e..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mem_pll_scan.C +++ /dev/null @@ -1,169 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_mem_pll_scan.C $ */ -/* */ -/* OpenPOWER HostBoot Project */ -/* */ -/* Contributors Listed Below - COPYRIGHT 2016,2018 */ -/* [+] 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 */ -#include "centaur_mem_pll_scan.H" -#include <stdint.h> -#include <stddef.h> -#include <fapi2.H> - -using namespace fapi2; - -constexpr uint64_t literal_1 = 1; -constexpr uint64_t literal_0x128000000A0040D5 = 0x128000000A0040D5; -constexpr uint64_t literal_1066 = 1066; -constexpr uint64_t literal_0 = 0; -constexpr uint64_t literal_0x128000000A0030D2 = 0x128000000A0030D2; -constexpr uint64_t literal_1333 = 1333; -constexpr uint64_t literal_0x128000000A0050D1 = 0x128000000A0050D1; -constexpr uint64_t literal_1600 = 1600; -constexpr uint64_t literal_0x128000000A0030D1 = 0x128000000A0030D1; -constexpr uint64_t literal_1866 = 1866; -constexpr uint64_t literal_0x128000000A0150D5 = 0x128000000A0150D5; -constexpr uint64_t literal_0xB000000200040000 = 0xB000000200040000; -constexpr uint64_t literal_0x5000000200040002 = 0x5000000200040002; -constexpr uint64_t literal_0x3000000200040002 = 0x3000000200040002; -constexpr uint64_t literal_0xB000000200040002 = 0xB000000200040002; -constexpr uint64_t literal_0x00 = 0x00; - -fapi2::ReturnCode centaur_mem_pll_scan(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& TGT0, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>& TGT1) -{ - { - fapi2::ATTR_EC_Type l_chip_ec; - fapi2::ATTR_NAME_Type l_chip_id; - FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_NAME, TGT0, l_chip_id)); - FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_EC, TGT0, l_chip_ec)); - fapi2::ATTR_IS_SIMULATION_Type l_TGT1_ATTR_IS_SIMULATION; - FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_IS_SIMULATION, TGT1, l_TGT1_ATTR_IS_SIMULATION)); - uint64_t l_def_IS_SIM = (l_TGT1_ATTR_IS_SIMULATION == literal_1); - fapi2::ATTR_CEN_MSS_FREQ_Type l_TGT0_ATTR_CEN_MSS_FREQ; - FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_CEN_MSS_FREQ, TGT0, l_TGT0_ATTR_CEN_MSS_FREQ)); - uint64_t l_def_MEMB_MEM_FREQ = l_TGT0_ATTR_CEN_MSS_FREQ; - uint64_t l_def_IS_HW = (l_TGT1_ATTR_IS_SIMULATION == literal_0); - bool l_PLLMEM_PLL_CNTRL0_update = false; - fapi2::variable_buffer l_PLLMEM_PLL_CNTRL0(64); - fapi2::variable_buffer l_PLLMEM_PLL_CNTRL0_CARE(64); - - if (l_def_IS_SIM) - { - l_PLLMEM_PLL_CNTRL0.insertFromRight<uint64_t>(literal_0x128000000A0040D5, 0, 64); - l_PLLMEM_PLL_CNTRL0_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_PLLMEM_PLL_CNTRL0_update = true; - } - else if ((l_def_IS_HW && (l_def_MEMB_MEM_FREQ == literal_1066))) - { - l_PLLMEM_PLL_CNTRL0.insertFromRight<uint64_t>(literal_0x128000000A0030D2, 0, 64); - l_PLLMEM_PLL_CNTRL0_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_PLLMEM_PLL_CNTRL0_update = true; - } - else if ((l_def_IS_HW && (l_def_MEMB_MEM_FREQ == literal_1333))) - { - l_PLLMEM_PLL_CNTRL0.insertFromRight<uint64_t>(literal_0x128000000A0050D1, 0, 64); - l_PLLMEM_PLL_CNTRL0_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_PLLMEM_PLL_CNTRL0_update = true; - } - else if ((l_def_IS_HW && (l_def_MEMB_MEM_FREQ == literal_1600))) - { - l_PLLMEM_PLL_CNTRL0.insertFromRight<uint64_t>(literal_0x128000000A0030D1, 0, 64); - l_PLLMEM_PLL_CNTRL0_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_PLLMEM_PLL_CNTRL0_update = true; - } - else if ((l_def_IS_HW && (l_def_MEMB_MEM_FREQ == literal_1866))) - { - l_PLLMEM_PLL_CNTRL0.insertFromRight<uint64_t>(literal_0x128000000A0150D5, 0, 64); - l_PLLMEM_PLL_CNTRL0_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_PLLMEM_PLL_CNTRL0_update = true; - } - - if ( l_PLLMEM_PLL_CNTRL0_update) - { - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "PLLMEM.PLL_CNTRL0", l_PLLMEM_PLL_CNTRL0, l_PLLMEM_PLL_CNTRL0_CARE)); - } - - bool l_PLLMEM_PLL_CNTRL1_update = false; - fapi2::variable_buffer l_PLLMEM_PLL_CNTRL1(64); - fapi2::variable_buffer l_PLLMEM_PLL_CNTRL1_CARE(64); - - if (l_def_IS_SIM) - { - l_PLLMEM_PLL_CNTRL1.insertFromRight<uint64_t>(literal_0xB000000200040000, 0, 64); - l_PLLMEM_PLL_CNTRL1_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_PLLMEM_PLL_CNTRL1_update = true; - } - else if ((l_def_IS_HW && (l_def_MEMB_MEM_FREQ == literal_1066))) - { - l_PLLMEM_PLL_CNTRL1.insertFromRight<uint64_t>(literal_0x5000000200040002, 0, 64); - l_PLLMEM_PLL_CNTRL1_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_PLLMEM_PLL_CNTRL1_update = true; - } - else if ((l_def_IS_HW && (l_def_MEMB_MEM_FREQ == literal_1333))) - { - l_PLLMEM_PLL_CNTRL1.insertFromRight<uint64_t>(literal_0x3000000200040002, 0, 64); - l_PLLMEM_PLL_CNTRL1_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_PLLMEM_PLL_CNTRL1_update = true; - } - else if ((l_def_IS_HW && (l_def_MEMB_MEM_FREQ == literal_1600))) - { - l_PLLMEM_PLL_CNTRL1.insertFromRight<uint64_t>(literal_0x3000000200040002, 0, 64); - l_PLLMEM_PLL_CNTRL1_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_PLLMEM_PLL_CNTRL1_update = true; - } - else if ((l_def_IS_HW && (l_def_MEMB_MEM_FREQ == literal_1866))) - { - l_PLLMEM_PLL_CNTRL1.insertFromRight<uint64_t>(literal_0xB000000200040002, 0, 64); - l_PLLMEM_PLL_CNTRL1_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_PLLMEM_PLL_CNTRL1_update = true; - } - - if ( l_PLLMEM_PLL_CNTRL1_update) - { - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "PLLMEM.PLL_CNTRL1", l_PLLMEM_PLL_CNTRL1, l_PLLMEM_PLL_CNTRL1_CARE)); - } - - bool l_PLLMEM_PLL_CNTRL2_update = false; - fapi2::variable_buffer l_PLLMEM_PLL_CNTRL2(8); - fapi2::variable_buffer l_PLLMEM_PLL_CNTRL2_CARE(8); - - if (l_def_IS_SIM) - { - l_PLLMEM_PLL_CNTRL2.insertFromRight<uint64_t>(literal_0x00, 0, 8); - l_PLLMEM_PLL_CNTRL2_CARE.insertFromRight<uint64_t>(0xff, 0, 8); - l_PLLMEM_PLL_CNTRL2_update = true; - } - else if (l_def_IS_HW) - { - l_PLLMEM_PLL_CNTRL2.insertFromRight<uint64_t>(literal_0x00, 0, 8); - l_PLLMEM_PLL_CNTRL2_CARE.insertFromRight<uint64_t>(0xff, 0, 8); - l_PLLMEM_PLL_CNTRL2_update = true; - } - - if ( l_PLLMEM_PLL_CNTRL2_update) - { - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "PLLMEM.PLL_CNTRL2", l_PLLMEM_PLL_CNTRL2, l_PLLMEM_PLL_CNTRL2_CARE)); - } - - }; -fapi_try_exit: - return fapi2::current_err; -} diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mem_pll_scan.H b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mem_pll_scan.H deleted file mode 100644 index 91ddf816f..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mem_pll_scan.H +++ /dev/null @@ -1,49 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_mem_pll_scan.H $ */ -/* */ -/* 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 */ -#ifndef _INIT_CENTAUR_MEM_PLL_SCAN_PROCEDURE_H_ -#define _INIT_CENTAUR_MEM_PLL_SCAN_PROCEDURE_H_ - - -#include <stddef.h> -#include <stdint.h> -#include <fapi2.H> - -#ifdef IFCOMPILER_PLAT -#define INITFILE_PROCEDURE \ - centaur_mem_pll_scan(TGT0, TGT1); -#endif - -typedef fapi2::ReturnCode (*centaur_mem_pll_scan_FP_t)(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>&, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>&); - -extern "C" -{ - - fapi2::ReturnCode centaur_mem_pll_scan(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& TGT0, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>& TGT1); - -} - -#endif diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mem_pll_scan.mk b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mem_pll_scan.mk deleted file mode 100644 index f4d335332..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_mem_pll_scan.mk +++ /dev/null @@ -1,36 +0,0 @@ -# IBM_PROLOG_BEGIN_TAG -# This is an automatically generated prolog. -# -# $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_mem_pll_scan.mk $ -# -# 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 -PROCEDURE=centaur_mem_pll_scan -lib$(PROCEDURE)_COMMONFLAGS+=-DFAPI_SUPPORT_SPY_AS_STRING=1 -$(call BUILD_PROCEDURE) - -PROCEDURE=centaur_mem_pll_scan_ifCompiler -lib$(PROCEDURE)_COMMONFLAGS+=-DFAPI_SUPPORT_SPY_AS_STRING=1 -lib$(PROCEDURE)_COMMONFLAGS+=-DIFCOMPILER_PLAT=1 -FAPI=2_IFCOMPILER -OBJS+=centaur_mem_pll_scan.o -lib$(PROCEDURE)_LIBPATH=$(LIBPATH)/ifCompiler -lib$(PROCEDURE)_COMMONFLAGS+=-fno-var-tracking-assignments -$(call BUILD_PROCEDURE)
\ No newline at end of file diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_nest_pll_scan.C b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_nest_pll_scan.C deleted file mode 100644 index ba6d68b28..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_nest_pll_scan.C +++ /dev/null @@ -1,148 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_nest_pll_scan.C $ */ -/* */ -/* OpenPOWER HostBoot Project */ -/* */ -/* Contributors Listed Below - COPYRIGHT 2016,2018 */ -/* [+] 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 */ -#include "centaur_nest_pll_scan.H" -#include <stdint.h> -#include <stddef.h> -#include <fapi2.H> - -using namespace fapi2; - -constexpr uint64_t literal_1 = 1; -constexpr uint64_t literal_0x13CAB402001C0009 = 0x13CAB402001C0009; -constexpr uint64_t literal_2000 = 2000; -constexpr uint64_t literal_0 = 0; -constexpr uint64_t literal_0x18469406001C0048 = 0x18469406001C0048; -constexpr uint64_t literal_2400 = 2400; -constexpr uint64_t literal_0x184B1402000C0008 = 0x184B1402000C0008; -constexpr uint64_t literal_0x0000000000000000 = 0x0000000000000000; -constexpr uint64_t literal_0x0008000000000000 = 0x0008000000000000; -constexpr uint64_t literal_0x00 = 0x00; - -fapi2::ReturnCode centaur_nest_pll_scan(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& TGT0, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>& TGT1) -{ - { - fapi2::ATTR_EC_Type l_chip_ec; - fapi2::ATTR_NAME_Type l_chip_id; - FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_NAME, TGT0, l_chip_id)); - FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_EC, TGT0, l_chip_ec)); - fapi2::ATTR_IS_SIMULATION_Type l_TGT1_ATTR_IS_SIMULATION; - FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_IS_SIMULATION, TGT1, l_TGT1_ATTR_IS_SIMULATION)); - uint64_t l_def_IS_SIM = (l_TGT1_ATTR_IS_SIMULATION == literal_1); - fapi2::ATTR_FREQ_MCA_MHZ_Type l_TGT1_ATTR_FREQ_MCA_MHZ; - FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_FREQ_MCA_MHZ, TGT1, l_TGT1_ATTR_FREQ_MCA_MHZ)); - uint64_t l_def_NEST_FREQ = l_TGT1_ATTR_FREQ_MCA_MHZ; - uint64_t l_def_IS_HW = (l_TGT1_ATTR_IS_SIMULATION == literal_0); - bool l_DMI_DMIPLL_CWRAP_PLL_CNTRL0_update = false; - fapi2::variable_buffer l_DMI_DMIPLL_CWRAP_PLL_CNTRL0(64); - fapi2::variable_buffer l_DMI_DMIPLL_CWRAP_PLL_CNTRL0_CARE(64); - - if (l_def_IS_SIM) - { - l_DMI_DMIPLL_CWRAP_PLL_CNTRL0.insertFromRight<uint64_t>(literal_0x13CAB402001C0009, 0, 64); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL0_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL0_update = true; - } - else if ((l_def_IS_HW && (l_def_NEST_FREQ == literal_2000))) - { - l_DMI_DMIPLL_CWRAP_PLL_CNTRL0.insertFromRight<uint64_t>(literal_0x18469406001C0048, 0, 64); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL0_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL0_update = true; - } - else if ((l_def_IS_HW && (l_def_NEST_FREQ == literal_2400))) - { - l_DMI_DMIPLL_CWRAP_PLL_CNTRL0.insertFromRight<uint64_t>(literal_0x184B1402000C0008, 0, 64); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL0_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL0_update = true; - } - - if ( l_DMI_DMIPLL_CWRAP_PLL_CNTRL0_update) - { - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "DMI.DMIPLL.CWRAP.PLL_CNTRL0", l_DMI_DMIPLL_CWRAP_PLL_CNTRL0, - l_DMI_DMIPLL_CWRAP_PLL_CNTRL0_CARE)); - } - - bool l_DMI_DMIPLL_CWRAP_PLL_CNTRL1_update = false; - fapi2::variable_buffer l_DMI_DMIPLL_CWRAP_PLL_CNTRL1(64); - fapi2::variable_buffer l_DMI_DMIPLL_CWRAP_PLL_CNTRL1_CARE(64); - - if (l_def_IS_SIM) - { - l_DMI_DMIPLL_CWRAP_PLL_CNTRL1.insertFromRight<uint64_t>(literal_0x0000000000000000, 0, 64); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL1_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL1_update = true; - } - else if ((l_def_IS_HW && (l_def_NEST_FREQ == literal_2000))) - { - l_DMI_DMIPLL_CWRAP_PLL_CNTRL1.insertFromRight<uint64_t>(literal_0x0008000000000000, 0, 64); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL1_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL1_update = true; - } - else if ((l_def_IS_HW && (l_def_NEST_FREQ == literal_2400))) - { - l_DMI_DMIPLL_CWRAP_PLL_CNTRL1.insertFromRight<uint64_t>(literal_0x0008000000000000, 0, 64); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL1_CARE.insertFromRight<uint64_t>(0xffffffffffffffff, 0, 64); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL1_update = true; - } - - if ( l_DMI_DMIPLL_CWRAP_PLL_CNTRL1_update) - { - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "DMI.DMIPLL.CWRAP.PLL_CNTRL1", l_DMI_DMIPLL_CWRAP_PLL_CNTRL1, - l_DMI_DMIPLL_CWRAP_PLL_CNTRL1_CARE)); - } - - bool l_DMI_DMIPLL_CWRAP_PLL_CNTRL2_update = false; - fapi2::variable_buffer l_DMI_DMIPLL_CWRAP_PLL_CNTRL2(8); - fapi2::variable_buffer l_DMI_DMIPLL_CWRAP_PLL_CNTRL2_CARE(8); - - if (l_def_IS_SIM) - { - l_DMI_DMIPLL_CWRAP_PLL_CNTRL2.insertFromRight<uint64_t>(literal_0x00, 0, 8); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL2_CARE.insertFromRight<uint64_t>(0xff, 0, 8); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL2_update = true; - } - else if ((l_def_IS_HW && (l_def_NEST_FREQ == literal_2000))) - { - l_DMI_DMIPLL_CWRAP_PLL_CNTRL2.insertFromRight<uint64_t>(literal_0x00, 0, 8); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL2_CARE.insertFromRight<uint64_t>(0xff, 0, 8); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL2_update = true; - } - else if ((l_def_IS_HW && (l_def_NEST_FREQ == literal_2400))) - { - l_DMI_DMIPLL_CWRAP_PLL_CNTRL2.insertFromRight<uint64_t>(literal_0x00, 0, 8); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL2_CARE.insertFromRight<uint64_t>(0xff, 0, 8); - l_DMI_DMIPLL_CWRAP_PLL_CNTRL2_update = true; - } - - if ( l_DMI_DMIPLL_CWRAP_PLL_CNTRL2_update) - { - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "DMI.DMIPLL.CWRAP.PLL_CNTRL2", l_DMI_DMIPLL_CWRAP_PLL_CNTRL2, - l_DMI_DMIPLL_CWRAP_PLL_CNTRL2_CARE)); - } - - }; -fapi_try_exit: - return fapi2::current_err; -} diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_nest_pll_scan.H b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_nest_pll_scan.H deleted file mode 100644 index b72fac027..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_nest_pll_scan.H +++ /dev/null @@ -1,49 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_nest_pll_scan.H $ */ -/* */ -/* 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 */ -#ifndef _INIT_CENTAUR_NEST_PLL_SCAN_PROCEDURE_H_ -#define _INIT_CENTAUR_NEST_PLL_SCAN_PROCEDURE_H_ - - -#include <stddef.h> -#include <stdint.h> -#include <fapi2.H> - -#ifdef IFCOMPILER_PLAT -#define INITFILE_PROCEDURE \ - centaur_nest_pll_scan(TGT0, TGT1); -#endif - -typedef fapi2::ReturnCode (*centaur_nest_pll_scan_FP_t)(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>&, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>&); - -extern "C" -{ - - fapi2::ReturnCode centaur_nest_pll_scan(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& TGT0, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>& TGT1); - -} - -#endif diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_nest_pll_scan.mk b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_nest_pll_scan.mk deleted file mode 100644 index 0a4b1e405..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_nest_pll_scan.mk +++ /dev/null @@ -1,36 +0,0 @@ -# IBM_PROLOG_BEGIN_TAG -# This is an automatically generated prolog. -# -# $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_nest_pll_scan.mk $ -# -# 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 -PROCEDURE=centaur_nest_pll_scan -lib$(PROCEDURE)_COMMONFLAGS+=-DFAPI_SUPPORT_SPY_AS_STRING=1 -$(call BUILD_PROCEDURE) - -PROCEDURE=centaur_nest_pll_scan_ifCompiler -lib$(PROCEDURE)_COMMONFLAGS+=-DFAPI_SUPPORT_SPY_AS_STRING=1 -lib$(PROCEDURE)_COMMONFLAGS+=-DIFCOMPILER_PLAT=1 -FAPI=2_IFCOMPILER -OBJS+=centaur_nest_pll_scan.o -lib$(PROCEDURE)_LIBPATH=$(LIBPATH)/ifCompiler -lib$(PROCEDURE)_COMMONFLAGS+=-fno-var-tracking-assignments -$(call BUILD_PROCEDURE)
\ No newline at end of file diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_thermal_scan.C b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_thermal_scan.C deleted file mode 100644 index 304229813..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_thermal_scan.C +++ /dev/null @@ -1,52 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_thermal_scan.C $ */ -/* */ -/* OpenPOWER HostBoot Project */ -/* */ -/* Contributors Listed Below - COPYRIGHT 2016,2018 */ -/* [+] 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 */ -#include "centaur_thermal_scan.H" -#include <stdint.h> -#include <stddef.h> -#include <fapi2.H> - -using namespace fapi2; - - -fapi2::ReturnCode centaur_thermal_scan(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& TGT0, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>& TGT1) -{ - { - fapi2::ATTR_EC_Type l_chip_ec; - fapi2::ATTR_NAME_Type l_chip_id; - FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_NAME, TGT0, l_chip_id)); - FAPI_TRY(FAPI_ATTR_GET_PRIVILEGED(fapi2::ATTR_EC, TGT0, l_chip_ec)); - fapi2::variable_buffer l_TCN_EPS_THERM_OVERFLOW_ERR_MASK(1); - fapi2::variable_buffer l_TCN_EPS_THERM_OVERFLOW_ERR_MASK_CARE(1); - constexpr auto l_TCN_EPS_THERM_OVERFLOW_ERR_MASK_ON = 0x1; - l_TCN_EPS_THERM_OVERFLOW_ERR_MASK.insertFromRight<uint64_t>(l_TCN_EPS_THERM_OVERFLOW_ERR_MASK_ON, 0, 1); - l_TCN_EPS_THERM_OVERFLOW_ERR_MASK_CARE.insertFromRight<uint64_t>(0x1, 0, 1); - FAPI_TRY(fapi2::putSpyWithCare(TGT0, "TCN.EPS.THERM.OVERFLOW_ERR_MASK", l_TCN_EPS_THERM_OVERFLOW_ERR_MASK, - l_TCN_EPS_THERM_OVERFLOW_ERR_MASK_CARE)); - - }; -fapi_try_exit: - return fapi2::current_err; -} diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_thermal_scan.H b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_thermal_scan.H deleted file mode 100644 index 9b2e1cb15..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_thermal_scan.H +++ /dev/null @@ -1,49 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_thermal_scan.H $ */ -/* */ -/* 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 */ -#ifndef _INIT_CENTAUR_THERMAL_SCAN_PROCEDURE_H_ -#define _INIT_CENTAUR_THERMAL_SCAN_PROCEDURE_H_ - - -#include <stddef.h> -#include <stdint.h> -#include <fapi2.H> - -#ifdef IFCOMPILER_PLAT -#define INITFILE_PROCEDURE \ - centaur_thermal_scan(TGT0, TGT1); -#endif - -typedef fapi2::ReturnCode (*centaur_thermal_scan_FP_t)(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>&, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>&); - -extern "C" -{ - - fapi2::ReturnCode centaur_thermal_scan(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& TGT0, - const fapi2::Target<fapi2::TARGET_TYPE_SYSTEM>& TGT1); - -} - -#endif diff --git a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_thermal_scan.mk b/src/import/chips/centaur/procedures/hwp/initfiles/centaur_thermal_scan.mk deleted file mode 100644 index 002866ed6..000000000 --- a/src/import/chips/centaur/procedures/hwp/initfiles/centaur_thermal_scan.mk +++ /dev/null @@ -1,36 +0,0 @@ -# IBM_PROLOG_BEGIN_TAG -# This is an automatically generated prolog. -# -# $Source: src/import/chips/centaur/procedures/hwp/initfiles/centaur_thermal_scan.mk $ -# -# 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 -PROCEDURE=centaur_thermal_scan -lib$(PROCEDURE)_COMMONFLAGS+=-DFAPI_SUPPORT_SPY_AS_STRING=1 -$(call BUILD_PROCEDURE) - -PROCEDURE=centaur_thermal_scan_ifCompiler -lib$(PROCEDURE)_COMMONFLAGS+=-DFAPI_SUPPORT_SPY_AS_STRING=1 -lib$(PROCEDURE)_COMMONFLAGS+=-DIFCOMPILER_PLAT=1 -FAPI=2_IFCOMPILER -OBJS+=centaur_thermal_scan.o -lib$(PROCEDURE)_LIBPATH=$(LIBPATH)/ifCompiler -lib$(PROCEDURE)_COMMONFLAGS+=-fno-var-tracking-assignments -$(call BUILD_PROCEDURE)
\ No newline at end of file |