Skip to content

Commit

Permalink
Power Cleanup + stopclocks
Browse files Browse the repository at this point in the history
Change-Id: I909c4c188658c74151f542c08a708417b45460e6
Original-Change-Id: I4857b6e1264530a919afe8e75abe170ca0699d55
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42571
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46018
Reviewed-by: Thomas R. Sand <trsand@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-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: Christian R. Geddes <crgeddes@us.ibm.com>
  • Loading branch information
Luke Mulkey authored and crgeddes committed Sep 12, 2017
1 parent 37ce374 commit bbefd43
Show file tree
Hide file tree
Showing 8 changed files with 1,546 additions and 0 deletions.
678 changes: 678 additions & 0 deletions src/import/chips/centaur/procedures/hwp/memory/p9c_cen_stopclocks.C

Large diffs are not rendered by default.

@@ -0,0 +1,72 @@
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/centaur/procedures/hwp/memory/p9c_cen_stopclocks.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 */
/// @file p9c_cen_stopclocks.H
/// @brief Assert the tholds (stop the clocks) in the Centaur chip
///
/// *HWP HWP Owner: Luke Mulkey <lwmulkey@us.ibm.com>
/// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com>
/// *HWP Team: Memory
/// *HWP Level: 2
/// *HWP Consumed by: HB
///

#ifndef CEN_STOPCLOCKSHWPB_H_
#define CEN_STOPCLOCKSHWPB_H_

#include <fapi2.H>


// function pointer typedef definition for HWP call support
typedef fapi2::ReturnCode (*p9c_cen_stopclocks_FP_t)(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>&,
const bool,
const bool,
const bool,
const bool,
const bool);


//------------------------------------------------------------------------------
// Function prototypes
//------------------------------------------------------------------------------

extern "C"
{
/// @brief cen_stopclocks procedure: The purpose of this procedure is to assert the tholds (stop the clocks) in the Centaur chip.
/// @param[in] i_target Reference to centaur target
/// @param[in] i_stop_mem_clks True if MEM chiplet clocks should be stopped, else false
/// @param[in] i_stop_nest_clks True if NEST chiplet clocks (except for refresh clks) should be stopped, else false
/// @param[in] i_stop_dram_rfrsh_clks If (i_stop_nest_clks==true) then true if NEST chiplet refresh clocks should be stopped, else false
/// @param[in] i_stop_tp_clks True if PERV (TP) chiplet clocks should be stopped, else false
/// @param[in] i_stop_vitl_clks True if PERV VITL clocks should be stopped, else false
/// @return ReturnCode
fapi2::ReturnCode p9c_cen_stopclocks(const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& i_target,
const bool i_stop_mem_clks,
const bool i_stop_nest_clks,
const bool i_stop_dram_rfrsh_clks,
const bool i_stop_tp_clks,
const bool i_stop_vitl_clks);
} // extern "C"

#endif // CEN_STOPCLOCKSHWPB_H_
@@ -0,0 +1,31 @@
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/import/chips/centaur/procedures/hwp/memory/p9c_cen_stopclocks.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

# Include the macros and things for MSS procedures
-include 01common.mk

PROCEDURE=p9c_cen_stopclocks
$(eval $(call ADD_MEMORY_INCDIRS,$(PROCEDURE)))
$(call BUILD_PROCEDURE)

0 comments on commit bbefd43

Please sign in to comment.