diff options
author | Andres Lugo-Reyes <aalugore@us.ibm.com> | 2018-02-28 13:13:20 -0600 |
---|---|---|
committer | Andres A. Lugo-Reyes <aalugore@us.ibm.com> | 2018-03-01 15:59:28 -0500 |
commit | cb3f5cf6a5b9efb58e9227004a8beb6a4543b962 (patch) | |
tree | 99bf830e18a0b782f6d11f3983fe2b345b3ec6eb | |
parent | c44bd0f660c708c3e2b2cd7588c56e7c9c92e50c (diff) | |
download | talos-occ-cb3f5cf6a5b9efb58e9227004a8beb6a4543b962.tar.gz talos-occ-cb3f5cf6a5b9efb58e9227004a8beb6a4543b962.zip |
WOF: Phase 2 Vratio calculation correction
Change-Id: I5291560e7aee0afafaddd9742d844d391726e73e
CQ:SW419296
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54851
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com>
-rwxr-xr-x | src/occ_405/occbuildname.c | 2 | ||||
-rw-r--r-- | src/occ_405/wof/wof.c | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/occ_405/occbuildname.c b/src/occ_405/occbuildname.c index 73140ee..1cc8a7d 100755 --- a/src/occ_405/occbuildname.c +++ b/src/occ_405/occbuildname.c @@ -34,6 +34,6 @@ volatile const char G_occ_buildname[16] __attribute__((section(".buildname"))) = #else -volatile const char G_occ_buildname[16] __attribute__((section(".buildname"))) = /*<BuildName>*/ "op910_180207a\0" /*</BuildName>*/ ; +volatile const char G_occ_buildname[16] __attribute__((section(".buildname"))) = /*<BuildName>*/ "op910_180228\0" /*</BuildName>*/ ; #endif diff --git a/src/occ_405/wof/wof.c b/src/occ_405/wof/wof.c index 7565641..76e3377 100644 --- a/src/occ_405/wof/wof.c +++ b/src/occ_405/wof/wof.c @@ -1116,13 +1116,14 @@ void calculate_ceff_ratio_vdn( void ) void calculate_ceff_ratio_vdd( void ) { // Read iac_tdp_vdd from OCCPstateParmBlock struct - g_wof->iac_tdp_vdd = G_oppb.lac_tdp_vdd_turbo_10ma; + g_wof->iac_tdp_vdd = + multiply_ratio( G_oppb.lac_tdp_vdd_turbo_10ma, + g_wof->v_ratio ); + // Get Vturbo and convert to 100uV (mV -> 100uV) = mV*10 // Multiply by Vratio - g_wof->c_ratio_vdd_volt = - multiply_ratio( (G_oppb.operating_points[TURBO].vdd_mv*10), - g_wof->v_ratio ); + g_wof->c_ratio_vdd_volt = G_oppb.operating_points[TURBO].vdd_mv * 10; // Get Fturbo and multiply by Fratio g_wof->c_ratio_vdd_freq = |