diff options
author | CHRISTINA L. GRAVES <clgraves@us.ibm.com> | 2016-12-12 12:58:49 -0600 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2017-02-01 04:06:37 -0500 |
commit | c2e880460e0b8099654d38f9f5884b6199487e05 (patch) | |
tree | 9a61f5e232c71fd7735d02d321d2581296d04095 /src/import/chips/p9/procedures/hwp/perv | |
parent | 4a221579a775f1f5bf0b0f68da9022a1ccaea6e9 (diff) | |
download | talos-sbe-c2e880460e0b8099654d38f9f5884b6199487e05.tar.gz talos-sbe-c2e880460e0b8099654d38f9f5884b6199487e05.zip |
Adding in LPC and OPB timeout values
Change-Id: I5a15d272d4fd5a5953a2057a02eb4c54f1438108
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33740
Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33744
Reviewed-by: Hostboot Team <hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/perv')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/perv/p9_sbe_lpc_init.C | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/import/chips/p9/procedures/hwp/perv/p9_sbe_lpc_init.C b/src/import/chips/p9/procedures/hwp/perv/p9_sbe_lpc_init.C index 2f30f195..7d917a16 100644 --- a/src/import/chips/p9/procedures/hwp/perv/p9_sbe_lpc_init.C +++ b/src/import/chips/p9/procedures/hwp/perv/p9_sbe_lpc_init.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER sbe Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2016 */ +/* Contributors Listed Below - COPYRIGHT 2015,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -47,7 +47,10 @@ fapi2::ReturnCode p9_sbe_lpc_init(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target_chip) { - + const uint64_t C_LPC_TIMEOUT_ADDR = 0x00400000C001202C; + const uint64_t C_LPC_TIMEOUT_DATA = 0x00000000FE000000; + const uint64_t C_OPB_TIMEOUT_ADDR = 0x00400000C0010040; + const uint64_t C_OPB_TIMEOUT_DATA = 0x00000000FFFFFFFE; fapi2::buffer<uint64_t> l_data64; uint8_t l_use_gpio = 0; uint8_t l_is_fsp = 0; @@ -102,6 +105,17 @@ fapi2::ReturnCode p9_sbe_lpc_init(const FAPI_TRY(fapi2::putScom(i_target_chip, PU_GPIO_OUTPUT_EN, l_data64)); } + //Set up the LPC timeout settings + l_data64 = C_LPC_TIMEOUT_ADDR; + FAPI_TRY(fapi2::putScom(i_target_chip, PU_LPC_CMD_REG, l_data64), "Error tring to set LPC timeout address"); + l_data64 = C_LPC_TIMEOUT_DATA; + FAPI_TRY(fapi2::putScom(i_target_chip, PU_LPC_DATA_REG, l_data64), "Error trying to set LPC timeout data"); + //Set up the OPB timeout settings + l_data64 = C_OPB_TIMEOUT_ADDR; + FAPI_TRY(fapi2::putScom(i_target_chip, PU_LPC_CMD_REG, l_data64), "Error trying to set OPB timeout address"); + l_data64 = C_OPB_TIMEOUT_DATA; + FAPI_TRY(fapi2::putScom(i_target_chip, PU_LPC_DATA_REG, l_data64), "Error trying to set OPB timeout data"); + FAPI_DBG("p9_sbe_lpc_init: Exiting ..."); fapi_try_exit: |