summaryrefslogtreecommitdiffstats
path: root/src/occ_405/amec/amec_freq.c
diff options
context:
space:
mode:
authorWael El-Essawy <welessa@us.ibm.com>2015-11-05 17:44:54 -0600
committerWael Elessawy <welessa@us.ibm.com>2015-11-11 10:36:53 -0600
commit604c81c85e85651a482243998487faeb0da0d63b (patch)
treec95ce75aeaa6c82c7b3c64dc29cfbfbe5274a3a9 /src/occ_405/amec/amec_freq.c
parent86d4c8b7e8bda9cd7eb2b59491fb712aeac0235a (diff)
downloadtalos-occ-604c81c85e85651a482243998487faeb0da0d63b.tar.gz
talos-occ-604c81c85e85651a482243998487faeb0da0d63b.zip
Enable Sensor support
add necessary sensor, amec, and other files to the build list. add the task_amec_slave to the rtls tick tables modify the gpe request structures to reflect the new P9 design enrich the .dis files contects for better debugging Change-Id: Iae39bb1c430da56310478c24a28aad6dfbc6d6d9 RTC: 133865 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21789 Tested-by: FSP CI Jenkins Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Diffstat (limited to 'src/occ_405/amec/amec_freq.c')
-rwxr-xr-xsrc/occ_405/amec/amec_freq.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/occ_405/amec/amec_freq.c b/src/occ_405/amec/amec_freq.c
index ee05d00..9ae4c03 100755
--- a/src/occ_405/amec/amec_freq.c
+++ b/src/occ_405/amec/amec_freq.c
@@ -47,6 +47,7 @@
#include <amec_sensors_fw.h>
#include <amec_data.h>
#include <amec_freq.h>
+#include "pss_constants.h"
//*************************************************************************
// Externs
@@ -77,7 +78,7 @@ const uint32_t G_pmc_ffdc_scom_addrs[PMC_FFDC_SCOM_ADDRS_SIZE] =
PMC_LFIR_ERR_MASK_REG,
OCB_OCCLFIR,
PBA_FIR,
- TOD_VALUE_REG
+ TOD_VALUE_REG
};
//FFDC OCI addresses as requested by Greg Still in defect SW247927
@@ -212,6 +213,9 @@ errlHndl_t amec_set_freq_range(const OCC_MODE i_mode)
return l_err;
}
+// @TODO - TEMP - Code not ready yet
+#if 0
+
// Function Specification
//
// Name: amec_slv_voting_box
@@ -546,6 +550,8 @@ void amec_slv_freq_smh(void)
}
}
+#endif // @TODO - TEMP - Code not ready yet
+
// Function Specification
//
// Name: amec_slv_freq_smh
@@ -621,11 +627,14 @@ void amec_slv_mem_voting_box(void)
if(!L_throttle_traced)
{
L_throttle_traced = TRUE;
+// @TODO - TEMP - No dimm temp Colection yet
+/*
TRAC_INFO("Memory is being throttled. reason[%d] vote[%d] cent_expired[0x%02x] dimm_expired[0x%02x]",
l_reason,
l_vote,
G_cent_temp_expired_bitmap,
G_dimm_temp_expired_bitmap);
+*/
}
}
else
@@ -865,6 +874,8 @@ void amec_slv_check_perf(void)
// time to stabilize
void amec_verify_pstate()
{
+// @TODO - TEMP Pstate functions not defined yet
+#if 0
uint8_t l_core = 0;
int8_t l_pstate_from_fmax = 0;
gpe_bulk_core_data_t * l_core_data_ptr;
@@ -956,6 +967,7 @@ void amec_verify_pstate()
REQUEST_RESET(l_err);
}
}
+#endif // #if 0: @TODO - TEMP Pstate functions not defined yet
}
// Fills in a pmc ffdc buffer with lots of PMC related OCI and SCOM registers
OpenPOWER on IntegriCloud