diff options
author | Dean Sanner <dsanner@us.ibm.com> | 2017-07-19 06:47:47 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-07-20 09:44:50 -0400 |
commit | 76aa4662e398b137b5d775d9343d36db91622b75 (patch) | |
tree | acc3e794c44b2e3b5ecc6e8ae39bc1f612516798 /src/include/usr/util | |
parent | 5b3adbd548c7c1824145d2e890e2e8b31c24189a (diff) | |
download | talos-hostboot-76aa4662e398b137b5d775d9343d36db91622b75.tar.gz talos-hostboot-76aa4662e398b137b5d775d9343d36db91622b75.zip |
Support dynamic determination of powerbus freq
- Original code used ATTR_ASYNC_NEST_FREQ_MHZ to determine
powerbus freq to a fixed value. This change allows the
processor #V to control the powerbus freq if the MRW
value for ATTR_ASYNC_NEST_FREQ_MHZ == 0xFFFF. Any other
nest value will still allow the MRW to control the powerbus
frequency
Change-Id: I918c65a22e294d51c323ddd938f9149822016e15
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43312
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/util')
-rw-r--r-- | src/include/usr/util/utilmbox_scratch.H | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/usr/util/utilmbox_scratch.H b/src/include/usr/util/utilmbox_scratch.H index 31d67b8ee..ce4fd363d 100644 --- a/src/include/usr/util/utilmbox_scratch.H +++ b/src/include/usr/util/utilmbox_scratch.H @@ -97,6 +97,16 @@ namespace Util * @return Data in mailbox scratch reg */ uint32_t readScratchReg(uint64_t i_addr); + + /** + * @brief This uses the stashed away mbox scratch regs to + * determine the frequency the SBE booted the nest + * at + * + * @return uint32_t -- Nest freq SBE booted with + */ + uint32_t getBootNestFreq( void); + }; #endif //UTILMEM_H |