diff options
author | nagurram-in <nagendra.g@in.ibm.com> | 2016-12-08 08:55:48 -0600 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2017-02-03 03:52:21 -0500 |
commit | 0bb52942b1346fecc76e7fe9c8857dfb196d1d43 (patch) | |
tree | 7243112f38096528713f81cb60326bfa07ce4e77 /src/import | |
parent | f17fc5d29a53aa4d519264459671507df73d67ea (diff) | |
download | talos-sbe-0bb52942b1346fecc76e7fe9c8857dfb196d1d43.tar.gz talos-sbe-0bb52942b1346fecc76e7fe9c8857dfb196d1d43.zip |
L2 fast array procedure
Change-Id: I1789482f564a72cf948052fe7283364f5c42a3ee
Original-Change-Id: Ibce0d60d85f8d26a42fef85c8f3b71b42f252363
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33589
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com>
Reviewed-by: Johannes Koesters <koesters@de.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35875
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/perv/p9_sbe_fastarray_cleanup.C | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/import/chips/p9/procedures/hwp/perv/p9_sbe_fastarray_cleanup.C b/src/import/chips/p9/procedures/hwp/perv/p9_sbe_fastarray_cleanup.C index 3d549585..a7d37c7c 100644 --- a/src/import/chips/p9/procedures/hwp/perv/p9_sbe_fastarray_cleanup.C +++ b/src/import/chips/p9/procedures/hwp/perv/p9_sbe_fastarray_cleanup.C @@ -39,6 +39,8 @@ // Includes //----------------------------------------------------------------------------------- #include <p9_sbe_fastarray_cleanup.H> +#include <p9_perv_scom_addresses.H> +#include <p9_perv_scom_addresses_fld.H> /** * @brief Cleanup sub-procedure for p9_fastarray procedure @@ -48,8 +50,15 @@ fapi2::ReturnCode p9_sbe_fastarray_cleanup( const fapi2::Target<fapi2::TARGET_TYPE_PERV>& i_target_chiplet) { - FAPI_INF("Start"); - FAPI_INF("End"); + /* Clean up clock controller */ + fapi2::buffer<uint64_t> buf = 0; + FAPI_TRY(fapi2::putScom(i_target_chiplet, PERV_CLK_REGION, buf), "Failed to clear clock regions"); + FAPI_TRY(fapi2::putScom(i_target_chiplet, PERV_OPCG_CAPT1, buf), "Failed to clear OPCG_CAPT1"); + FAPI_TRY(fapi2::putScom(i_target_chiplet, PERV_OPCG_CAPT2, buf), "Failed to clear OPCG_CAPT2"); + + return fapi2::FAPI2_RC_SUCCESS; + +fapi_try_exit: return fapi2::current_err; } |