diff options
Diffstat (limited to 'src/import')
-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: |