diff options
author | Brian Horton <brianh@linux.ibm.com> | 2013-08-19 16:44:31 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-09-13 12:56:29 -0500 |
commit | 0b823dd9ef5579112cbbaae770028c75f7d19119 (patch) | |
tree | d15afcbcc31171c42b1915f45094f4101a0fb328 /src/usr/xscom | |
parent | 97e007ba1b3c283bb7dcbd35e692385bb91fb5e6 (diff) | |
download | talos-hostboot-0b823dd9ef5579112cbbaae770028c75f7d19119.tar.gz talos-hostboot-0b823dd9ef5579112cbbaae770028c75f7d19119.zip |
add clock callout functionality
Change-Id: Id864e2baa0b69d0dfdbe9c9cfe56f7b4246269ab
RTC: 73480
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5842
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/xscom')
-rw-r--r-- | src/usr/xscom/piberror.C | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/usr/xscom/piberror.C b/src/usr/xscom/piberror.C index fe6093396..e36a37f78 100644 --- a/src/usr/xscom/piberror.C +++ b/src/usr/xscom/piberror.C @@ -67,9 +67,26 @@ void addFruCallouts(TARGETING::Target* i_target, HWAS::GARD_NULL ); break; case PIB::PIB_CLOCK_ERROR: - // @todo: RTC: 73480 Add Clock callout support - // (likely will need a procedure callout and have HWserver add the fru - // add a procedure callout type to hwascallout.H) + if (i_target->getAttr<TARGETING::ATTR_TYPE>() == + TARGETING::TYPE_PROC) + { + io_errl->addClockCallout(i_target, + HWAS::OSCREFCLK_TYPE, + HWAS::SRCI_PRIORITY_LOW); + } + else if (i_target->getAttr<TARGETING::ATTR_TYPE>() == + TARGETING::TYPE_MEMBUF) + { + io_errl->addClockCallout(i_target, + HWAS::MEMCLK_TYPE, + HWAS::SRCI_PRIORITY_LOW); + } + else // for anything else, just blame the refclock + { + io_errl->addClockCallout(i_target, + HWAS::OSCREFCLK_TYPE, + HWAS::SRCI_PRIORITY_LOW); + } break; default: |