diff options
author | David Young <davidy@us.ibm.com> | 2015-04-15 15:48:34 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2015-11-17 22:53:31 -0600 |
commit | d43f8539f0617d428ed2979ced41c7100373e7a7 (patch) | |
tree | 594a7a8f0a96b3f1e26aa1e444b395fc74a93a1d /import/chips/p9/procedures/hwp/cache | |
parent | aa48069ed784c474e87ffbfbfce12c32b78e0698 (diff) | |
download | talos-sbe-d43f8539f0617d428ed2979ced41c7100373e7a7.tar.gz talos-sbe-d43f8539f0617d428ed2979ced41c7100373e7a7.zip |
PPE-HWP: [Level 2] Poweronoff Hcode Procedures using API
Poweronoff, core_poweron, cache_poweron run on cronus. Wrapper functions included.
Multiple targets enabled and tested. Poweron core only turns on Vdd.
XML error file added.
Change-Id: I50feaea15b6f20a4f69de9f0c92a2d15572800af
Original-Change-Id: I0b334b5f3f2c36bc4499bd6e16acf472dd3c6c41
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/17846
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>
Tested-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22090
Tested-by: Jenkins Server
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'import/chips/p9/procedures/hwp/cache')
-rw-r--r-- | import/chips/p9/procedures/hwp/cache/p9_hcd_cache_poweron.C | 78 | ||||
-rw-r--r-- | import/chips/p9/procedures/hwp/cache/p9_hcd_cache_poweron.H | 60 |
2 files changed, 0 insertions, 138 deletions
diff --git a/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_poweron.C b/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_poweron.C deleted file mode 100644 index 57462b53..00000000 --- a/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_poweron.C +++ /dev/null @@ -1,78 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: chips/p9/procedures/hwp/cache/p9_hcd_cache_poweron.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 p9_hcd_cache_poweron.C -/// @brief Cache Chiplet Power-on -/// -/// *HWP HWP Owner : David Du <daviddu@us.ibm.com> -/// *HWP FW Owner : Sangeetha T S <sangeet2@in.ibm.com> -/// *HWP Team : PM -/// *HWP Consumed by : SBE:SGPE -/// *HWP Level : 1 -/// -/// Procedure Summary: -/// Command the cache PFET controller to power-on -/// Check for valid power on completion -/// Polled Timeout: 100us -/// - -//------------------------------------------------------------------------------ -// Includes -//------------------------------------------------------------------------------ -#include <fapi2.H> -//#include <common_scom_addresses.H> -//will be replaced with real scom address header file -#include "p9_hcd_cache_poweron.H" - -//------------------------------------------------------------------------------ -// Constant Definitions -//------------------------------------------------------------------------------ - -//------------------------------------------------------------------------------ -// Procedure: Cache Chiplet Power-on -//------------------------------------------------------------------------------ - -extern "C" -{ - - fapi2::ReturnCode - p9_hcd_cache_poweron( - const fapi2::Target<fapi2::TARGET_TYPE_EQ>& i_target, - const uint32_t i_operation) - { - -#if 0 - fapi2::buffer<uint64_t> data; - - return fapi2::FAPI2_RC_SUCCESS; - - FAPI_CLEANUP(); - return fapi2::FAPI2_RC_PLAT_ERR_SEE_DATA; - -#endif - - return fapi2::FAPI2_RC_SUCCESS; - - } // Procedure - - -} // extern C - - - diff --git a/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_poweron.H b/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_poweron.H deleted file mode 100644 index a103836c..00000000 --- a/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_poweron.H +++ /dev/null @@ -1,60 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: chips/p9/procedures/hwp/cache/p9_hcd_cache_poweron.H $ */ -/* */ -/* 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 p9_hcd_cache_poweron.H -/// @brief Cache Chiplet Power-on -/// -/// *HWP HWP Owner : David Du <daviddu@us.ibm.com> -/// *HWP FW Owner : Sangeetha T S <sangeet2@in.ibm.com> -/// *HWP Team : PM -/// *HWP Consumed by : SBE:SGPE -/// *HWP Level : 1 -/// - -#ifndef __P9_HCD_CACHE_POWERON_H__ -#define __P9_HCD_CACHE_POWERON_H__ - -extern "C" -{ - -/// @typedef p9_hcd_cache_poweron_FP_t -/// function pointer typedef definition for HWP call support - typedef fapi2::ReturnCode (*p9_hcd_cache_poweron_FP_t) ( - const fapi2::Target<fapi2::TARGET_TYPE_EQ>&, - const uint32_t); - - -/// @brief Cache Chiplet Power-on -/// -/// @param [in] i_target TARGET_TYPE_EQ target -/// @param [in] i_operation ENUM(ON,OFF) -/// -/// @attr -/// @attritem ATTR_PFET_* -/// -/// @retval FAPI_RC_SUCCESS - fapi2::ReturnCode - p9_hcd_cache_poweron( - const fapi2::Target<fapi2::TARGET_TYPE_EQ>& i_target, - const uint32_t i_operation); - - -} // extern C - -#endif // __P9_HCD_CACHE_POWERON_H__ |