diff options
author | Andres Lugo-Reyes <aalugore@us.ibm.com> | 2016-09-12 12:35:54 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-09-20 15:47:24 -0400 |
commit | d5de7972297a818670c0987b59a4f4cb398f1cd7 (patch) | |
tree | 0a669af7519ef8013b64274bb2623fadb34d2188 /src/include | |
parent | 1caeae646b0230b763a49555f1314a324a22493f (diff) | |
download | talos-hostboot-d5de7972297a818670c0987b59a4f4cb398f1cd7.tar.gz talos-hostboot-d5de7972297a818670c0987b59a4f4cb398f1cd7.zip |
Interface to determine what nest freq the system booted with
Change-Id: Idea9e3ae8d08052e960c00c225522bbe8da3ea5e
RTC:157890
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29505
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@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')
-rw-r--r-- | src/include/usr/initservice/mboxRegs.H | 33 | ||||
-rw-r--r-- | src/include/usr/sbe/sbeif.H | 10 |
2 files changed, 34 insertions, 9 deletions
diff --git a/src/include/usr/initservice/mboxRegs.H b/src/include/usr/initservice/mboxRegs.H index 737ab7bb4..e70e7a147 100644 --- a/src/include/usr/initservice/mboxRegs.H +++ b/src/include/usr/initservice/mboxRegs.H @@ -45,15 +45,34 @@ namespace SPLESS uint32_t data32; struct { - uint32_t istepMode:1; //0 - uint32_t goToRuntime:1; //1 - uint32_t isMpipl:1; //2 - uint32_t fspAttached:1; //3 - uint32_t sbeFFDC:1; //4 - uint32_t sbeInternalFFDC:1; //5 - uint32_t reserved:26; //6:31 + uint32_t istepMode :1; //0 + uint32_t goToRuntime :1; //1 + uint32_t isMpipl :1; //2 + uint32_t fspAttached :1; //3 + uint32_t sbeFFDC :1; //4 + uint32_t sbeInternalFFDC :1; //5 + uint32_t reserved :26; //6:31 } PACKED; }; + + // Mailbox Scratch Register 4 + union MboxScratch4_t + { + uint32_t data32; + struct + { + uint32_t bootFreqMult :16; //0:15 + uint32_t cpFilterBypass :1; //16 + uint32_t ssFilterBypass :1; //17 + uint32_t ioFilterBypass :1; //18 + uint32_t dpllBypass :1; //19 + uint32_t nestMemXoPcieBypass :1; //20 + uint32_t reserved :3; //21:23 + uint32_t nestPllBucket :8; //24:31 + } PACKED; + }; + + }; }; #endif diff --git a/src/include/usr/sbe/sbeif.H b/src/include/usr/sbe/sbeif.H index 27e99175b..033e94908 100644 --- a/src/include/usr/sbe/sbeif.H +++ b/src/include/usr/sbe/sbeif.H @@ -121,10 +121,16 @@ namespace SBE * at the Golden side of PNOR. * -Using master processor to make this determination. */ - errlHndl_t isGoldenSide( bool & o_isGolden ); - + /** + * @brief Determines what nest frequency we booted from + * + * @param[out] o_bootNestFreq - The nest frequency the system last booted on. + * + * @return errlHndl_t Error log handle on error. + */ + errlHndl_t getBootNestFreq( uint32_t & o_bootNestFreq ); } //end namespace SBE |