summaryrefslogtreecommitdiffstats
path: root/src/occ_405/ssx_app_cfg.h
diff options
context:
space:
mode:
authorWael El-Essawy <welessa@us.ibm.com>2015-12-08 18:33:52 -0600
committerWael Elessawy <welessa@us.ibm.com>2015-12-09 17:03:59 -0600
commitad2715410617a26a291d9b9518ac3c6f3c3c2515 (patch)
tree4c281a687759dae17a48874ad035897a1179e917 /src/occ_405/ssx_app_cfg.h
parent05347b8a0400f9b06d9d76de723bff7bf8345721 (diff)
downloadtalos-occ-ad2715410617a26a291d9b9518ac3c6f3c3c2515.tar.gz
talos-occ-ad2715410617a26a291d9b9518ac3c6f3c3c2515.zip
Fix Timing Discrepancy between OCC and PPEs
Fix the code so that The whole OCC complex runs at the same (nest) frequency. This is the POR, which also solves the timing bug. Change-Id: Ib33c1951384b552fc4a44e07be09e9261a4b133d RTC: 139478 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22554 Tested-by: FSP CI Jenkins Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Wael Elessawy <welessa@us.ibm.com>
Diffstat (limited to 'src/occ_405/ssx_app_cfg.h')
-rwxr-xr-xsrc/occ_405/ssx_app_cfg.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/occ_405/ssx_app_cfg.h b/src/occ_405/ssx_app_cfg.h
index 980373c..5ba98d5 100755
--- a/src/occ_405/ssx_app_cfg.h
+++ b/src/occ_405/ssx_app_cfg.h
@@ -197,15 +197,15 @@ do { \
#endif
#ifndef PPC405_TIMEBASE_HZ
-#define PPC405_TIMEBASE_HZ 600000000
+#define PPC405_TIMEBASE_HZ DEFAULT_NEST_FREQ_HZ
#endif
//If we are using the external timebase for traces, assume it is 37500000 Hz.
//Otherwise, it will use the PPC405 timebase.
#if APPCFG_USE_EXT_TIMEBASE_FOR_TRACE
-#define SSX_TRACE_TIMEBASE_HZ 37500000
+#define SSX_TRACE_TIMEBASE_HZ DEFAULT_EXT_CLK_FREQ_HZ
#else
-#define SSX_TRACE_TIMEBASE_HZ PPC405_TIMEBASE_HZ
+#define SSX_TRACE_TIMEBASE_HZ __ssx_timebase_frequency_hz
#endif /* APPCFG_USE_EXT_TIMEBASE_FOR_TRACE */
#if SSX_USE_INIT_SECTION
OpenPOWER on IntegriCloud