diff options
| author | Dzuy Nguyen <dzuy@us.ibm.com> | 2017-11-01 08:54:12 -0500 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-12-01 15:22:31 -0500 |
| commit | c71ed1c414501ce568f914e38b2ddbbc9c258cb6 (patch) | |
| tree | cb222fe6f89fc1905454576f0a75745cdc70282b /src/include/usr/util | |
| parent | 6bc72e2973d1868fcccf74f696bcb9bf08a62951 (diff) | |
| download | blackbird-hostboot-c71ed1c414501ce568f914e38b2ddbbc9c258cb6.tar.gz blackbird-hostboot-c71ed1c414501ce568f914e38b2ddbbc9c258cb6.zip | |
Add support for OBUS PLL buckets
Add MRW support for ATTR_FREQ_O_MHZ attribute
Add MACRO functions for ATTR_OB[0-3]_PLL_BUCKET attribute
Change-Id: I75d02192bc09c9814fccadadb6aed69606508a58
RTC: 176188
CMVC-Prereq: 1039767
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48890
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
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>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/util')
| -rw-r--r-- | src/include/usr/util/util_reasoncodes.H | 3 | ||||
| -rw-r--r-- | src/include/usr/util/utilcommonattr.H | 60 |
2 files changed, 63 insertions, 0 deletions
diff --git a/src/include/usr/util/util_reasoncodes.H b/src/include/usr/util/util_reasoncodes.H index 77fd1e628..8b1e90e8a 100644 --- a/src/include/usr/util/util_reasoncodes.H +++ b/src/include/usr/util/util_reasoncodes.H @@ -51,6 +51,7 @@ namespace Util UTIL_MCL_REL_MEM = 0x11, // MasterContainerLidMgr::releaseMem UTIL_MCL_PROCESS_COMP = 0x12, // MasterContainerLidMgr::processComponent UTIL_MCL_VERIFY_EXT = 0x13, // MasterContainerLidMgr::verifyExtend + UTIL_MOD_GET_OBUS_PLL_BUCKET = 0x14, // UtilCommonAttr::getObusPllBucket }; enum ReasonCode @@ -80,6 +81,8 @@ namespace Util UTIL_MM_BLOCK_UNMAP_FAILED = UTIL_COMP_ID | 0x17, UTIL_MCL_SIZE_MISMATCH = UTIL_COMP_ID | 0x18, UTIL_MCL_COMPID_MISMATCH = UTIL_COMP_ID | 0x19, + UTIL_ERC_NO_FREQ_LIST = UTIL_COMP_ID | 0x1A, + UTIL_ERC_NO_MATCHING_FREQ = UTIL_COMP_ID | 0x1B, }; }; diff --git a/src/include/usr/util/utilcommonattr.H b/src/include/usr/util/utilcommonattr.H new file mode 100644 index 000000000..24aa12df7 --- /dev/null +++ b/src/include/usr/util/utilcommonattr.H @@ -0,0 +1,60 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/include/usr/util/utilcommonattr.H $ */ +/* */ +/* OpenPOWER HostBoot Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 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 UTILCOMMONATTR_H +#define UTILCOMMONATTR_H + +/** + * @file utilcommonattr.H + * + * @brief Common attribute interfaces shared between components + * + */ + +/*****************************************************************************/ +// I n c l u d e s +/*****************************************************************************/ +#include <stdint.h> +#include <errl/errlentry.H> + +#include <targeting/common/target.H> + +namespace Util +{ + + /** + * @brief Get the OBUS PLL bucket that corresponds to index and target + * @param[in] i_chipTarget Target pointer to chip + * @param[out] i_o_bucket_val corresponding number in PLL frequency list + * @param[in] i_index The index number of the OBUS (0,1,2,3) + * + * @return errlHndl_t Error log if unable to get bucket value + */ + errlHndl_t getObusPllBucket(TARGETING::Target * i_chipTarget, + uint8_t &o_bucket_val, + const uint8_t i_index); + +}; // namespace Util + +#endif // UTILCOMMONATTR_H |

