Skip to content

Commit

Permalink
Variety of gen script fixes to get FSP compiling again
Browse files Browse the repository at this point in the history
Fix gen script to put TDP_RDP_CURRENT_FACTOR under the proc
targets instead of the system.
Fix SYSTEM_RESCLK_ENABLE generation (not an enum)
Remove STOPx_DISABLE generation

Change-Id: Id42cdb0793f330652257029e4c74b7d9c7e39ac0
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36136
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
dcrowell77 committed Feb 8, 2017
1 parent e3f7d63 commit 0050c99
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/usr/targeting/common/genHwsvMrwXml.pl
Expand Up @@ -353,20 +353,23 @@
"SYSTEM_RESCLK_STEP_DELAY", $reqPol->{'system_resclk_step_delay'},
#TODO RTC: 167921 Add MRW parsing code to perl scripts to populate ATTR_NEST_LEAKAGE_PERCENT
"NEST_LEAKAGE_PERCENT", 60,
"TDP_RDP_CURRENT_FACTOR", $reqPol->{'tdp_rdp_current_factor'},
"PM_SAFE_VOLTAGE_MV", $reqPol->{'pm_safe_voltage_mv'},
"IVRM_STRENGTH_LOOKUP", $reqPol->{'ivrm_strength_lookup'},
"IVRM_VIN_MULTIPLIER", $reqPol->{'ivrm_vin_multiplier'},
"IVRM_VIN_MAX_MV", $reqPol->{'ivrm_vin_max_mv'},
"IVRM_STEP_DELAY_NS", $reqPol->{'ivrm_step_delay_ns'},
"IVRM_STABILIZATION_DELAY_NS", $reqPol->{'ivrm_stabilization_delay_ns'},
"SYSTEM_RESCLK_ENABLE", $reqPol->{'system_resclk_enable'},
"STOP4_DISABLE", $reqPol->{'stop4_disable'},
"STOP5_DISABLE", $reqPol->{'stop5_disable'},
"STOP8_DISABLE", $reqPol->{'stop8_disable'},
"STOP11_DISABLE", $reqPol->{'stop11_disable'},
];

if ($reqPol->{'system_resclk_enable'} eq 'ON')
{
push @systemAttr, ['SYSTEM_RESCLK_ENABLE', 1];
}
elsif ($reqPol->{'system_resclk_enable'} eq 'OFF')
{
push @systemAttr, ['SYSTEM_RESCLK_ENABLE', 0];
}

if ($reqPol->{'mss_mrw_refresh_rate_request'} eq 'SINGLE')
{
push @systemAttr, ['MSS_MRW_REFRESH_RATE_REQUEST', 0];
Expand Down Expand Up @@ -4164,6 +4167,10 @@ sub generate_proc
print " <id>BOOT_FREQ_MHZ</id>\n";
print " <default>$reqPol->{'boot-frequency'}->{content}</default>\n";
print " </attribute>\n";
print " <attribute>\n";
print " <id>TDP_RDP_CURRENT_FACTOR</id>\n";
print " <default>$reqPol->{'tdp_rdp_current_factor'}</default>\n";
print " </attribute>\n";

print " <attribute>\n";
print " <id>MB_BIT_RATE_DIVISOR_REFCLK</id>\n";
Expand Down

0 comments on commit 0050c99

Please sign in to comment.