diff options
author | Doug Gilbert <dgilbert@us.ibm.com> | 2017-09-29 10:00:59 -0500 |
---|---|---|
committer | Martha Broyles <mbroyles@us.ibm.com> | 2017-10-03 17:05:58 -0400 |
commit | 119f37bc1c1b9da19f80c4a8fbc04cb0120e1bdf (patch) | |
tree | b6633108c81c62203292349730b0094ce026459b /src/occ_405/main.c | |
parent | 28ba8e805cab998dc8ca15c0a3c362d18a189c04 (diff) | |
download | talos-occ-119f37bc1c1b9da19f80c4a8fbc04cb0120e1bdf.tar.gz talos-occ-119f37bc1c1b9da19f80c4a8fbc04cb0120e1bdf.zip |
Correct gpe timebase
Change-Id: I47524f8400d1b5f2ed5423c2bea105a22a099205
CQ: SW402715
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46917
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Diffstat (limited to 'src/occ_405/main.c')
-rwxr-xr-x | src/occ_405/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/occ_405/main.c b/src/occ_405/main.c index 35267b7..ad09280 100755 --- a/src/occ_405/main.c +++ b/src/occ_405/main.c @@ -2071,9 +2071,10 @@ int main(int argc, char **argv) 0, l_tb_freq_hz); - // Store the nest / 4 frequency in shared SRAM so the GPEs - // can be initialized with the correct timebase as well. - G_shared_gpe_data.nest_freq_div = l_tb_freq_hz; + // The GPEs are configured to use the OCB_OTBR as a timebase. + // This counter runs at (nest freq)/64. The 405 timebase frequency runs at + // (nest freq)/4, so divide this by 16 to get the gpe timebase frequency. + G_shared_gpe_data.nest_freq_div = l_tb_freq_hz/16; CHECKPOINT(SSX_INITIALIZED); // TRAC_XXX needs ssx services, traces can only be done after ssx_initialize |