diff options
| author | Dean Sanner <dsanner@us.ibm.com> | 2013-09-23 12:46:48 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-10-03 10:58:50 -0500 |
| commit | 2005f2b4c6d477e5dafa16c447c8d7f43ae16c19 (patch) | |
| tree | ac98b6848b010f42e6daa625826c3d37b97ffab5 /src/usr/hwpf/plat/fapiPlatAttributeService.C | |
| parent | 591ccab48c225369a23fa231472ceebb4f31e6ce (diff) | |
| download | blackbird-hostboot-2005f2b4c6d477e5dafa16c447c8d7f43ae16c19.tar.gz blackbird-hostboot-2005f2b4c6d477e5dafa16c447c8d7f43ae16c19.zip | |
Dynamically determine PLL ATTR based on freq and chip IDEC
Change-Id: I733760ecbc995d429de862fe56ad44fcc3aae228
RTC: 69918
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6305
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/plat/fapiPlatAttributeService.C')
| -rw-r--r-- | src/usr/hwpf/plat/fapiPlatAttributeService.C | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/usr/hwpf/plat/fapiPlatAttributeService.C b/src/usr/hwpf/plat/fapiPlatAttributeService.C index 71fefb5a8..92a2dfd65 100644 --- a/src/usr/hwpf/plat/fapiPlatAttributeService.C +++ b/src/usr/hwpf/plat/fapiPlatAttributeService.C @@ -47,6 +47,8 @@ #include <hwpf/hwp/mvpd_accessors/getMBvpdTermData.H> #include <hwpf/hwp/mvpd_accessors/getMBvpdSlopeInterceptData.H> #include <hwpf/hwp/mvpd_accessors/getMBvpdSpareDramData.H> +#include <fapiPllRingAttr.H> +#include <getPllRingAttr.H> // The following file checks at compile time that all HWPF attributes are // handled by Hostboot. This is done to ensure that the HTML file listing @@ -1475,6 +1477,34 @@ fapi::ReturnCode fapiPlatDimmGetSpareDram ( return l_rc; } +//****************************************************************************** +// fapi::platAttrSvc::fapiPlatGetPllAttr function +//****************************************************************************** +fapi::ReturnCode fapiPlatGetPllAttr(const fapi::AttributeId i_targAttrId, + const fapi::Target * const i_pChipTarget, + uint8_t * o_data ) +{ + // Call a PLL Ring Attribute HWP to get the data + fapi::ReturnCode l_rc; + uint32_t l_ringLength = 0; + FAPI_EXEC_HWP(l_rc, getPllRingAttr, i_targAttrId, *i_pChipTarget, + l_ringLength, o_data); + return l_rc; +} + +fapi::ReturnCode fapiPlatGetPllAttr(const fapi::AttributeId i_targAttrId, + const fapi::Target * const i_pChipTarget, + uint32_t (&o_pllRingLength)) +{ + // Call a PLL Ring Attribute HWP to get the data + fapi::ReturnCode l_rc; + uint8_t l_data[MAX_PLL_RING_SIZE_BYTES] = {}; + FAPI_EXEC_HWP(l_rc, getPllRingAttr, i_targAttrId, *i_pChipTarget, + o_pllRingLength, l_data); + return l_rc; +} + + } // End platAttrSvc namespace } // End fapi namespace |

