diff options
author | Soma BhanuTej <soma.bhanu@in.ibm.com> | 2016-08-19 05:50:35 -0400 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2017-01-16 04:49:15 -0500 |
commit | f6825346bdf10d6db1d881e4195d58d14bae2b5f (patch) | |
tree | 8752d2fc312878fd442b4f9147b26fd4b346b93f /src/import/chips/p9/procedures/hwp/perv/p9_stopclocks.H | |
parent | df0b52ee4db7216e061aabe6e730ed89403fb3ba (diff) | |
download | talos-sbe-f6825346bdf10d6db1d881e4195d58d14bae2b5f.tar.gz talos-sbe-f6825346bdf10d6db1d881e4195d58d14bae2b5f.zip |
Fapi Implementation of Level2 HWP p9_stopclocks
Change-Id: Ida6d06f87b384234aa55e98e1dbc995a90f0c3f2
Original-Change-Id: Ic9138a0734201ac936b870a5ae6bc3e0b124d47e
RTC:159632
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28578
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Soma Bhanutej <soma.bhanu@in.ibm.com>
Reviewed-by: PARVATHI RACHAKONDA <prachako@in.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34913
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/perv/p9_stopclocks.H')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/perv/p9_stopclocks.H | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/src/import/chips/p9/procedures/hwp/perv/p9_stopclocks.H b/src/import/chips/p9/procedures/hwp/perv/p9_stopclocks.H index 067c87c5..45efb63d 100644 --- a/src/import/chips/p9/procedures/hwp/perv/p9_stopclocks.H +++ b/src/import/chips/p9/procedures/hwp/perv/p9_stopclocks.H @@ -31,17 +31,17 @@ // *HWP HW Backup Owner : Srinivas V Naga <srinivan@in.ibm.com> // *HWP FW Owner : Sunil Kumar <skumar8j@in.ibm.com> // *HWP Team : Perv -// *HWP Level : 1 +// *HWP Level : 2 // *HWP Consumed by : FSP:HB //------------------------------------------------------------------------------ #ifndef _P9_STOPCLOCKS_H_ #define _P9_STOPCLOCKS_H_ - +#define btos(x) ((x)?"TRUE":"FALSE") #include <fapi2.H> - +#include <p9_hcd_common.H> typedef fapi2::ReturnCode (*p9_stopclocks_FP_t)(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&, const bool, @@ -50,12 +50,14 @@ typedef fapi2::ReturnCode (*p9_stopclocks_FP_t)(const fapi2::Target<fapi2::TARGE const bool, const bool, const bool, - const bool); + const bool, + const p9hcd::P9_HCD_CLK_CTRL_CONSTANTS, + const p9hcd::P9_HCD_EX_CTRL_CONSTANTS ); extern "C" { /** - * @brief proc_stopclocks procedure: The purpose of this procedure is to stop the clocks in the non-core chiplets of the P9 processor chip + * @brief p9_stopclocks procedure: The purpose of this procedure is to stop the clocks of the P9 processor chip * * @param[in] i_target Reference to processor chip target * @param[in] i_stop_nest_clks True if NEST chiplet clocks should be stopped, else false @@ -65,17 +67,21 @@ extern "C" * @param[in] i_stop_pcie_clks True if PCIE chiplet 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 + * @param[in] i_eq_clk_regions EQ chiplet clock regions of which clocks should be stopped + * @param[in] i_ex_select EX chiplet selected for clocks stop * * @return ReturnCode */ - fapi2::ReturnCode p9_stopclocks(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target_chiplet, - const bool i_stop_nest_clks, - const bool i_stop_mc_clks, - const bool i_stop_xbus_clks, - const bool i_stop_obus_clks, - const bool i_stop_pcie_clks, - const bool i_stop_tp_clks, - const bool i_stop_vitl_clks); + fapi2::ReturnCode p9_stopclocks(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target_chip, + const bool i_stop_nest_clks = true, + const bool i_stop_mc_clks = true, + const bool i_stop_xbus_clks = true, + const bool i_stop_obus_clks = true, + const bool i_stop_pcie_clks = true, + const bool i_stop_tp_clks = false, + const bool i_stop_vitl_clks = false, + const p9hcd::P9_HCD_CLK_CTRL_CONSTANTS i_eq_clk_regions = p9hcd::CLK_REGION_ALL_BUT_PLL_REFR, + const p9hcd::P9_HCD_EX_CTRL_CONSTANTS i_ex_select = p9hcd::BOTH_EX); } #endif |