diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2011-07-07 17:11:24 -0500 |
---|---|---|
committer | MIKE J. JONES <mjjones@us.ibm.com> | 2011-07-14 10:18:09 -0500 |
commit | b9558dcb65612b60a20719ea489dadda4776e1e4 (patch) | |
tree | d0f074f95d473fdaa5ebc29dfae27b21770a9f32 /src/usr/hwpf/hwp/fapiTestHwp.C | |
parent | 038a9a46895333b86da8ca83c8effd29ff3e76e9 (diff) | |
download | talos-hostboot-b9558dcb65612b60a20719ea489dadda4776e1e4.tar.gz talos-hostboot-b9558dcb65612b60a20719ea489dadda4776e1e4.zip |
HW Procedure Compile Support
- New .tcl scripts to be used to do the compiling
- New hw procedure function for hw procedure writers to overload for their testing
Change-Id: I90af3f4d7aea07f63ec7f52daf224070c944ccee
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/190
Tested-by: Jenkins Server
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/fapiTestHwp.C')
-rw-r--r-- | src/usr/hwpf/hwp/fapiTestHwp.C | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/usr/hwpf/hwp/fapiTestHwp.C b/src/usr/hwpf/hwp/fapiTestHwp.C index 14292864f..2a7e2fae7 100644 --- a/src/usr/hwpf/hwp/fapiTestHwp.C +++ b/src/usr/hwpf/hwp/fapiTestHwp.C @@ -11,6 +11,7 @@ * mjjones 04/21/2011 Created. * mjjones 06/02/2011 Use ecmdDataBufferBase * mjjones 06/28/2011 Removed attribute tests + * andrewg 07/07/2011 Added test for hw team to fill in * */ @@ -67,4 +68,32 @@ fapi::ReturnCode hwpIsP7EM0ChipletClockOn(const fapi::Target & i_chip, return l_rc; } +//****************************************************************************** +// hwpInitialTest function - Override with whatever you want here +//****************************************************************************** +fapi::ReturnCode hwpInitialTest(const fapi::Target & i_chip) +{ + fapi::ReturnCode l_rc; + + // Figure out the scom address and create a 64 bit data buffer + ecmdDataBufferBase l_data(64); + + const uint64_t l_addr = 0x0201240B; + + // Perform a GetScom operation on the chip + l_rc = GetScom(i_chip, l_addr, l_data); + + if (l_rc != fapi::FAPI_RC_SUCCESS) + { + FAPI_ERR("hwpInitialTest: Error from GetScomChip"); + } + else + { + FAPI_INF("hwpInitialTest: Data from SCOM:0x%X 0x%16X",l_data.getDoubleWord(0)); + + } + + return l_rc; +} + } // extern "C" |