diff options
author | Yue Du <daviddu@us.ibm.com> | 2016-07-05 11:41:50 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-08-16 11:57:56 -0400 |
commit | e2e36e35d07154797c06783cec84db69a3192725 (patch) | |
tree | 05e2fc6182bda2a61aa0278646eba22d57e0d991 /import/chips | |
parent | a299882b32f996e9cc84c010d466e7a23ef14e8c (diff) | |
download | talos-sbe-e2e36e35d07154797c06783cec84db69a3192725.tar.gz talos-sbe-e2e36e35d07154797c06783cec84db69a3192725.zip |
PK/Kernel: allow user to override PK_BASE_FREQ_HZ
Change-Id: I6f38505a8cac2a2cbc17bd2a17b7ecee40e35449
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26646
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28291
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'import/chips')
-rw-r--r-- | import/chips/p9/procedures/ppe/pk/kernel/pk_api.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/import/chips/p9/procedures/ppe/pk/kernel/pk_api.h b/import/chips/p9/procedures/ppe/pk/kernel/pk_api.h index fdee0eef..c3308da9 100644 --- a/import/chips/p9/procedures/ppe/pk/kernel/pk_api.h +++ b/import/chips/p9/procedures/ppe/pk/kernel/pk_api.h @@ -335,11 +335,13 @@ #define PK_TIMEBASE_FREQUENCY_HZ __pk_timebase_frequency_hz /// This is the unscaled timebase frequency in Hz. -#ifdef APPCFG_USE_EXT_TIMEBASE - #define PK_BASE_FREQ_HZ (uint32_t)25000000 -#else - #define PK_BASE_FREQ_HZ (uint32_t)400000000 -#endif /* APPCFG_USE_EXT_TIMEBASE */ +#ifndef PK_BASE_FREQ_HZ + #ifdef APPCFG_USE_EXT_TIMEBASE + #define PK_BASE_FREQ_HZ (uint32_t)25000000 + #else + #define PK_BASE_FREQ_HZ (uint32_t)400000000 + #endif /* APPCFG_USE_EXT_TIMEBASE */ +#endif #define PK_BASE_FREQ_KHZ (PK_BASE_FREQ_HZ / 1000) #define PK_BASE_FREQ_MHZ (PK_BASE_FREQ_HZ / 1000000) |