diff options
author | Ilya Smirnov <ismirno@us.ibm.com> | 2017-07-31 10:35:00 -0500 |
---|---|---|
committer | William A. Bryan <wilbryan@us.ibm.com> | 2017-08-21 15:09:44 -0400 |
commit | 7efcfd6eaba07fbdd3eeed455c81c34e75735dc1 (patch) | |
tree | e4118313c1ba75cc5491345cc0d9d9005d23ce67 /src/occ_gpe0/firdata/fsi.c | |
parent | 3b72373a3bfd5716902b48515f96faac683ef8dd (diff) | |
download | talos-occ-7efcfd6eaba07fbdd3eeed455c81c34e75735dc1.tar.gz talos-occ-7efcfd6eaba07fbdd3eeed455c81c34e75735dc1.zip |
IPL Time Checkstop Analysis Part 3: OCC bootloader and main
Change-Id: Id4d050f1d78a1921afc839c8b2b382961def64f0
RTC:155065
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43938
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Diffstat (limited to 'src/occ_gpe0/firdata/fsi.c')
-rw-r--r-- | src/occ_gpe0/firdata/fsi.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/occ_gpe0/firdata/fsi.c b/src/occ_gpe0/firdata/fsi.c index fc5ec3c..767bcf4 100644 --- a/src/occ_gpe0/firdata/fsi.c +++ b/src/occ_gpe0/firdata/fsi.c @@ -1,11 +1,11 @@ /* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ -/* $Source: src/occ/firdata/fsi.C $ */ +/* $Source: src/occ_gpe0/firdata/fsi.c $ */ /* */ /* OpenPOWER OnChipController Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015 */ +/* Contributors Listed Below - COPYRIGHT 2015,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -26,6 +26,7 @@ #include <fsi.h> #include <scom_util.h> #include <native.h> +#include <gpe_util.h> #define OPB_REG_CMD 0x00020010 #define OPB_REG_STAT 0x00020011 @@ -76,7 +77,7 @@ int32_t poll_for_complete( uint32_t * o_val ) /* Check for completion. Note: not checking for FSI errors. */ if ( (read_data & OPB_STAT_BUSY) == 0 ) break; /* Not busy */ - sleep( 10000 ); /* sleep for 10,000 ns */ + busy_wait( 10 ); /* sleep for 10,000 ns */ elapsed_time_ns += 10000; } while ( elapsed_time_ns <= MAX_OPB_TIMEOUT_NS ); |