diff options
Diffstat (limited to 'src/import/chips/ocmb/explorer/procedures/hwp')
-rw-r--r-- | src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_check_for_ready.C | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_check_for_ready.C b/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_check_for_ready.C index 94a3a383e..d7f80d648 100644 --- a/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_check_for_ready.C +++ b/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_check_for_ready.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2018,2019 */ +/* Contributors Listed Below - COPYRIGHT 2018,2020 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -38,6 +38,8 @@ #include <exp_check_for_ready.H> #include <lib/i2c/exp_i2c.H> #include <generic/memory/mss_git_data_helper.H> +#include <generic/memory/lib/utils/shared/mss_generic_consts.H> +#include <mss_explorer_attribute_getters.H> extern "C" { @@ -50,7 +52,11 @@ extern "C" { mss::display_git_commit_info("exp_check_for_ready"); - FAPI_TRY(mss::exp::i2c::exp_check_for_ready_helper(i_target)); + fapi2::ATTR_MSS_CHECK_FOR_READY_TIMEOUT_Type l_poll_count = 0; + + FAPI_TRY(mss::attr::get_check_for_ready_timeout(i_target, l_poll_count)); + + FAPI_TRY(mss::exp::i2c::exp_check_for_ready_helper(i_target, l_poll_count, mss::DELAY_1MS)); fapi_try_exit: return fapi2::current_err; |