summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2018-05-21 11:04:03 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-06-07 16:56:11 -0400
commit2c5c60e23fad27a35d59a266b25abf657bdc17d8 (patch)
tree03a6ab7d3d6a0c7cbf46e2d54759590b335930ef
parentc6cbabf3d43585353f093304da6c0ddf45c2d6a0 (diff)
downloadtalos-hostboot-2c5c60e23fad27a35d59a266b25abf657bdc17d8.tar.gz
talos-hostboot-2c5c60e23fad27a35d59a266b25abf657bdc17d8.zip
Add clock callout enums for specific clock sources
PRD running up in the host needs to be able to point at a specific clock source when detecting some errors. Since the Hostboot targeting model doesn't include the clock targets, we will use the existing clock callout pathway to do this. This change adds a few new constants that specific which clock has the issue instead of using the 'currently active' clock that we have now. Change-Id: I6441ba3d1a082134cf2ada37cefca4cba1781924 RTC: 190666 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59133 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Manish K. Chowdhary <manichow@in.ibm.com> Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
-rw-r--r--src/include/usr/hwas/common/hwasCallout.H9
-rw-r--r--src/usr/errl/plugins/errludcallout.H2
2 files changed, 11 insertions, 0 deletions
diff --git a/src/include/usr/hwas/common/hwasCallout.H b/src/include/usr/hwas/common/hwasCallout.H
index 3b7d067ba..c9e3d5266 100644
--- a/src/include/usr/hwas/common/hwasCallout.H
+++ b/src/include/usr/hwas/common/hwasCallout.H
@@ -127,12 +127,21 @@ enum busTypeEnum
O_BUS_TYPE = 7
};
+// Used by Hostboot code where real clock targets do not exist
enum clockTypeEnum
{
+ // Specify a generic clock source in the event that the calling code is
+ // unable to determine which of the redundant sources are currently
+ // configured as active
TODCLK_TYPE = 1,
MEMCLK_TYPE = 2,
OSCREFCLK_TYPE = 3,
OSCPCICLK_TYPE = 4,
+
+ // Specify a specific clock source for the case where the code can determine
+ // which of the redundant sources is actually at fault
+ OSCPCICLK0_TYPE = 10, //Specifically clock 0
+ OSCPCICLK1_TYPE = 11, //Specifically clock 1
};
diff --git a/src/usr/errl/plugins/errludcallout.H b/src/usr/errl/plugins/errludcallout.H
index 3cd00fc89..aaae9299f 100644
--- a/src/usr/errl/plugins/errludcallout.H
+++ b/src/usr/errl/plugins/errludcallout.H
@@ -85,6 +85,8 @@ case HWAS::_type: i_parser.PrintString( "Clock Type", #_type); break;
case_CLOCK_TYPE(MEMCLK_TYPE)
case_CLOCK_TYPE(OSCREFCLK_TYPE)
case_CLOCK_TYPE(OSCPCICLK_TYPE)
+ case_CLOCK_TYPE(OSCPCICLK0_TYPE)
+ case_CLOCK_TYPE(OSCPCICLK1_TYPE)
default:
i_parser.PrintNumber( "Clock Type", "UNKNOWN: 0x%X",
ntohl(pData->clockType) );
OpenPOWER on IntegriCloud