summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/fapi
diff options
context:
space:
mode:
authorBrian Silver <bsilver@us.ibm.com>2014-06-02 15:14:43 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-06-27 17:10:16 -0500
commit9c4aa90f178a4f9ed68bdb0d17eec52785c5ea47 (patch)
treef6effbb3402b63985b434f85cb62815bea6b3666 /src/usr/hwpf/fapi
parenta07b3a334abf5c5349a31c80ed456847efdb31bb (diff)
downloadtalos-hostboot-9c4aa90f178a4f9ed68bdb0d17eec52785c5ea47.tar.gz
talos-hostboot-9c4aa90f178a4f9ed68bdb0d17eec52785c5ea47.zip
Add basic fapi support for Naples
Change-Id: Ie0d9c6fcc3a51e01f5ecec9ac52b4933c267e80c RTC: 107939 Depends-On: I421e5a456a8d84a844f341e8c6fd462ad557e728 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11373 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/fapi')
-rwxr-xr-xsrc/usr/hwpf/fapi/fapiCreateL3DeltaVals.pl14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/usr/hwpf/fapi/fapiCreateL3DeltaVals.pl b/src/usr/hwpf/fapi/fapiCreateL3DeltaVals.pl
index 2ecf26286..91fca0986 100755
--- a/src/usr/hwpf/fapi/fapiCreateL3DeltaVals.pl
+++ b/src/usr/hwpf/fapi/fapiCreateL3DeltaVals.pl
@@ -36,7 +36,7 @@
# Flag Track# Userid Date Description
# ---- -------- -------- -------- -----------
# 873826 dpeterso 09/16/13 Based on fapiCreatePllRingAttrVals.pl
-#
+#
#
# End Change Log ******************************************************
@@ -144,7 +144,7 @@ foreach $ringAttrFile (@fileList)
print OUTFILE "*/\n";
while (<FILE>)
- {
+ {
# Each section we are interested in begins with ===BEGIN and ends with ===END
if (/\===BEGIN/../\===END/) {
# Keep track of how many instances we have in the file and reset some sub-counters.
@@ -152,7 +152,7 @@ foreach $ringAttrFile (@fileList)
{
$count++;
$dataCount = 0;
- }
+ }
# Store select value in array
if ($_ =~ m"^#SELECT=(\d)")
@@ -178,7 +178,11 @@ foreach $ringAttrFile (@fileList)
{
$chipEnum = "fapi::ENUM_ATTR_NAME_VENICE";
}
- else
+ elsif ($chip eq "n1")
+ {
+ $chipEnum = "fapi::ENUM_ATTR_NAME_NAPLES";
+ }
+ else
{
die "$ProgName ERROR: Chip type $chip not supported by this script. Either the ring attribute file is in error or support for the new chip type needs to be added.\n";
}
@@ -201,7 +205,7 @@ foreach $ringAttrFile (@fileList)
$dataArrayString = $dataArrayString . $2 . ", ";
# If this is the last entry in the array (delta data size = 64
if ($dataCount eq 64)
- {
+ {
print OUTFILE " $dataArrayString\n";
print OUTFILE " }, // ATTR_PROC_EX_FUNC_L3_DELTA_DATA\n";
print OUTFILE "},\n";
OpenPOWER on IntegriCloud