diff options
author | Bilicon Patil <bilpatil@in.ibm.com> | 2015-10-28 04:10:57 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-05-13 01:47:26 -0400 |
commit | ad9c2045fe267d8fcb6ccd3f3c6625c2e26cce71 (patch) | |
tree | d138bd72853d0b875f3c3f49eea247daa2c0e1b7 | |
parent | 9dbfd86625731214044f2d8869442aab90020f5e (diff) | |
download | talos-sbe-ad9c2045fe267d8fcb6ccd3f3c6625c2e26cce71.tar.gz talos-sbe-ad9c2045fe267d8fcb6ccd3f3c6625c2e26cce71.zip |
p9_block_wakeup_intr Level 1
Change-Id: I2ceae5f7ea4b6a6771bf1943552359e644d07150
Original-Change-Id: I0326e34e77951042660f16292d2ec01f3a23e8ae
RTC: 138607
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/18178
Tested-by: Jenkins Server
Reviewed-by: Bilicon Patil <bilpatil@in.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24366
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
-rw-r--r-- | import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.C | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.C b/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.C new file mode 100644 index 00000000..9defe99f --- /dev/null +++ b/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.C @@ -0,0 +1,107 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/p9/procedures/ipl/hwp/p9_block_wakeup_intr.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* The source code for this program is not published or otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* IBM_PROLOG_END_TAG */ +/// +/// @file p8_block_wakeup_intr.C +/// @brief Set/reset the BLOCK_REG_WKUP_SOURCES bit in the PCBS-PM associated +/// with an EX chiplet +/// +// *HWP HWP Owner: Amit Kumar <akumar3@us.ibm.com> +// *HWP FW Owner: Bilicon Patil <bilpatil@in.ibm.com> +// *HWP Team: PM +// *HWP Level: 1 +// *HWP Consumed by: FSP:HS +/// +/// @verbatim +/// High-level procedure flow: +/// +/// With set/reset enum parameter, either set or clear PMGP0(53) +/// +/// Procedure Prereq: +/// - System clocks are running +/// @endverbatim +/// +//------------------------------------------------------------------------------ + + +// ---------------------------------------------------------------------- +// Includes +// ---------------------------------------------------------------------- + +#include "p9_block_wakeup_intr.H" + +// ---------------------------------------------------------------------- +// Procedure Function +// ---------------------------------------------------------------------- + +/// @brief @brief Set/reset the BLOCK_INTR_INPUTS bit in the Core PPM +/// associated with an EX chiplet +fapi2::ReturnCode p9_block_wakeup_intr( + const fapi2::Target<fapi2::TARGET_TYPE_CORE>& i_core_target, + const p9pmblockwkup::OP_TYPE i_operation ) + +{ + FAPI_IMP("p9_block_wakeup_intr start"); + +#if 0 + ecmdDataBufferBase data(64); + + uint8_t attr_chip_unit_pos = 0; + + // CPMMR Bit definitions + const uint32_t BLOCK_INTR_INPUTS = 11; + + FAPI_DBG("Executing with operation %s to Core %s...", + p9pmblockwkup::P9_BLKWKUP_OP_STRING[i_operation], + i_core_target.toEcmdString()); + + + // Get the core number + FAPI_TRY(FAPI_ATTR_GET( ATTR_CHIP_UNIT_POS, + &i_core_target, + attr_chip_unit_pos), + "fapiGetAttribute of ATTR_CHIP_UNIT_POS failed"); + + FAPI_DBG("Core number = %d", attr_chip_unit_pos); + + if (i_operation == p9pmblockwkup::SET) + { + FAPI_INF("Setting Block Interrupt Sources..."); + + + } + else if (i_operation == p9pmblockwkup::CLEAR) + { + + FAPI_INF("Clearing Block Interrupt Sources..."); + + + } + else + { + FAPI_ASSERT(false, + BLOCK_WAKEUP_INTR_OP() + .set_OPERATION(i_operation), + "Invalid operation specified."); + } + + +#endif + FAPI_INF("p9_block_wakeup_intr end"); + return fapi2::current_err; +} |