summaryrefslogtreecommitdiffstats
path: root/import/chips/p9/procedures/hwp
diff options
context:
space:
mode:
authorJoe McGill <jmcgill@us.ibm.com>2016-05-15 23:48:17 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2016-05-20 05:12:52 -0400
commitdd7781ce7782bd64bfe45e9dfc8c4d883ae155fb (patch)
tree5239d1ea5190416c7caff01399a6d5ae788cd42e /import/chips/p9/procedures/hwp
parent288537a91eaec2b3fdb471e228f2cc61eda564de (diff)
downloadtalos-sbe-dd7781ce7782bd64bfe45e9dfc8c4d883ae155fb.tar.gz
talos-sbe-dd7781ce7782bd64bfe45e9dfc8c4d883ae155fb.zip
p9_sbe_tp_switch_gears -- skip i2c access outside of SBE platform
additional updates after review with Srinivas/Soma remove clearing of PERV_CTRL0_SET_TP_PLLBYP_DC (covered in p9_sbe_npll_setup) guard all i2c setup code to apply to SBE only will execute in Cronus platform (forthcoming p9_sbe_clock_test2 code) Change-Id: I1884128a074fbd5c587d7867f03c71ed719de80e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24572 Tested-by: Jenkins Server Tested-by: PPE CI Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Benjamin Gass <bgass@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24573 Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'import/chips/p9/procedures/hwp')
-rw-r--r--import/chips/p9/procedures/hwp/perv/p9_sbe_tp_switch_gears.C13
1 files changed, 3 insertions, 10 deletions
diff --git a/import/chips/p9/procedures/hwp/perv/p9_sbe_tp_switch_gears.C b/import/chips/p9/procedures/hwp/perv/p9_sbe_tp_switch_gears.C
index 5e76ed5c..f317298e 100644
--- a/import/chips/p9/procedures/hwp/perv/p9_sbe_tp_switch_gears.C
+++ b/import/chips/p9/procedures/hwp/perv/p9_sbe_tp_switch_gears.C
@@ -53,13 +53,7 @@ fapi2::ReturnCode p9_sbe_tp_switch_gears(const
fapi2::buffer<uint64_t> l_data64;
FAPI_INF("Entering ...");
- FAPI_DBG("switch from refclock to PLL speed");
- //Setting PERV_CTRL0 register value
- FAPI_TRY(fapi2::getScom(i_target_chip, PERV_PERV_CTRL0_SCOM, l_data64));
- //PIB.PERV_CTRL0.TP_PLLBYP_DC = 0
- l_data64.clearBit<PERV_PERV_CTRL0_SET_TP_PLLBYP_DC>();
- FAPI_TRY(fapi2::putScom(i_target_chip, PERV_PERV_CTRL0_SCOM, l_data64));
-
+#ifdef __PPE__
FAPI_TRY(p9_sbe_gear_switcher_apply_i2c_bit_rate_divisor_setting(
i_target_chip));
@@ -67,12 +61,11 @@ fapi2::ReturnCode p9_sbe_tp_switch_gears(const
FAPI_DBG("Checking Magic number");
FAPI_TRY(p9_sbe_tp_switch_gears_check_magicnumber(i_target_chip));
+fapi_try_exit:
+#endif
FAPI_INF("Exiting ...");
-
-fapi_try_exit:
return fapi2::current_err;
-
}
/// @brief check for magic number
OpenPOWER on IntegriCloud