summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Cprek <smcprek@us.ibm.com>2013-07-25 12:12:30 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-07-30 16:54:00 -0500
commit4ad0062bb79cf86a7c1ed1ef06ee5006a2db3f27 (patch)
tree82e235f894dfa93020a03344384bd71e911e4628 /src
parent398b9f5c43f0010cf81f862de03c3d6b5803cee1 (diff)
downloadtalos-hostboot-4ad0062bb79cf86a7c1ed1ef06ee5006a2db3f27.tar.gz
talos-hostboot-4ad0062bb79cf86a7c1ed1ef06ee5006a2db3f27.zip
Added FREQ_PROC_REFCLOCK_KHZ attribute
Change-Id: Iebc590a8c5986ffa50a51ad286248f9ad6056da5 RTC: 76587 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5572 Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: MATTHEW A. PLOETZ <maploetz@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/usr/hwpf/hwp/freq_attributes.xml11
-rwxr-xr-xsrc/usr/targeting/common/genHwsvMrwXml.pl6
-rw-r--r--src/usr/targeting/common/xmltohb/attribute_types.xml16
-rw-r--r--src/usr/targeting/common/xmltohb/target_types.xml1
4 files changed, 34 insertions, 0 deletions
diff --git a/src/usr/hwpf/hwp/freq_attributes.xml b/src/usr/hwpf/hwp/freq_attributes.xml
index 9774e1430..fe2e48a16 100644
--- a/src/usr/hwpf/hwp/freq_attributes.xml
+++ b/src/usr/hwpf/hwp/freq_attributes.xml
@@ -39,6 +39,17 @@
</attribute>
<!-- ********************************************************************* -->
<attribute>
+ <id>ATTR_FREQ_PROC_REFCLOCK_KHZ</id>
+ <targetType>TARGET_TYPE_SYSTEM</targetType>
+ <description>
+ The frequency of the processor refclock in KHz.
+ Provided by the MRW.
+ </description>
+ <valueType>uint32</valueType>
+ <platInit/>
+ </attribute>
+ <!-- ********************************************************************* -->
+ <attribute>
<id>ATTR_FREQ_MEM_REFCLOCK</id>
<targetType>TARGET_TYPE_SYSTEM</targetType>
<description>
diff --git a/src/usr/targeting/common/genHwsvMrwXml.pl b/src/usr/targeting/common/genHwsvMrwXml.pl
index eacd9e73f..908fe3e2f 100755
--- a/src/usr/targeting/common/genHwsvMrwXml.pl
+++ b/src/usr/targeting/common/genHwsvMrwXml.pl
@@ -1371,6 +1371,8 @@ sub generate_sys
my $proc_refclk = $policy->{'required-policy-settings'}->
{'processor-refclock-frequency'}->{content};
+ my $proc_refclk_khz = $policy->{'required-policy-settings'}->
+ {'processor-refclock-frequency-khz'}->{content};
my $mem_refclk = $policy->{'required-policy-settings'}->
{'memory-refclock-frequency'}->{content};
@@ -1393,6 +1395,10 @@ sub generate_sys
<default>$proc_refclk</default>
</attribute>
<attribute>
+ <id>FREQ_PROC_REFCLOCK_KHZ</id>
+ <default>$proc_refclk_khz</default>
+ </attribute>
+ <attribute>
<id>EXECUTION_PLATFORM</id>
<default>$plat</default>
</attribute>
diff --git a/src/usr/targeting/common/xmltohb/attribute_types.xml b/src/usr/targeting/common/xmltohb/attribute_types.xml
index ad4a0b240..83c37bbd0 100644
--- a/src/usr/targeting/common/xmltohb/attribute_types.xml
+++ b/src/usr/targeting/common/xmltohb/attribute_types.xml
@@ -1640,6 +1640,22 @@
</attribute>
<attribute>
+ <id>FREQ_PROC_REFCLOCK_KHZ</id>
+ <description>
+ System attribute.
+ The frequency of the processor refclock in KHz.
+ Provided by the MRW.
+ </description>
+ <simpleType><uint32_t></uint32_t></simpleType>
+ <persistency>non-volatile</persistency>
+ <readable/>
+ <hwpfToHbAttrMap>
+ <id>ATTR_FREQ_PROC_REFCLOCK_KHZ</id>
+ <macro>DIRECT</macro>
+ </hwpfToHbAttrMap>
+</attribute>
+
+<attribute>
<id>FREQ_MEM_REFCLOCK</id>
<description>
System attribute.
diff --git a/src/usr/targeting/common/xmltohb/target_types.xml b/src/usr/targeting/common/xmltohb/target_types.xml
index e5a580ee5..298b1d2af 100644
--- a/src/usr/targeting/common/xmltohb/target_types.xml
+++ b/src/usr/targeting/common/xmltohb/target_types.xml
@@ -87,6 +87,7 @@
<attribute><id>PROC_X_BUS_WIDTH</id></attribute>
<attribute><id>ALL_MCS_IN_INTERLEAVING_GROUP</id></attribute>
<attribute><id>FREQ_PROC_REFCLOCK</id></attribute>
+ <attribute><id>FREQ_PROC_REFCLOCK_KHZ</id></attribute>
<attribute><id>FREQ_MEM_REFCLOCK</id></attribute>
<attribute><id>FREQ_CORE_FLOOR</id></attribute>
<attribute><id>FREQ_PB</id></attribute>
OpenPOWER on IntegriCloud