diff options
author | Chris Cain <cjcain@us.ibm.com> | 2017-11-01 12:07:10 -0500 |
---|---|---|
committer | Christopher J. Cain <cjcain@us.ibm.com> | 2017-11-02 18:49:11 -0400 |
commit | d90b1dcc95523b0ed98ca4fdf4cc6bc84ba40102 (patch) | |
tree | f83c7b467354bd91ddbecfe9152b529cef5dfe96 /src/occ_405/amec/amec_sensors_power.c | |
parent | 0b07301e60afae16acdf326e7f50367d7b41c7a1 (diff) | |
download | talos-occ-d90b1dcc95523b0ed98ca4fdf4cc6bc84ba40102.tar.gz talos-occ-d90b1dcc95523b0ed98ca4fdf4cc6bc84ba40102.zip |
AVSbus Re-sync Bus Error Recovery
Change-Id: I226c5a7e7b8b5db4a3dc60608494c8cf9cbbb212
RTC: 180106
CQ: SW396400
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49113
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com>
Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
Diffstat (limited to 'src/occ_405/amec/amec_sensors_power.c')
-rwxr-xr-x | src/occ_405/amec/amec_sensors_power.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/occ_405/amec/amec_sensors_power.c b/src/occ_405/amec/amec_sensors_power.c index 55429b1..30a8e3b 100755 --- a/src/occ_405/amec/amec_sensors_power.c +++ b/src/occ_405/amec/amec_sensors_power.c @@ -575,17 +575,23 @@ void update_avsbus_power_sensors(const avsbus_type_e i_type) // Name: amec_update_avsbus_sensors // // Description: Read AVS Bus data and update sensors (called every tick) -// The very first tick kicks off a read of the currents for both buses (Vdd/Vdn). -// The next tick will process the currents and then start a read of the voltages. -// The next tick will process the voltages and then start a read of the currents. -// (readings for each bus will essentially be updated every 2 ticks) +// Tick 0: start read current (for Vdd/Vdn) +// Tick 1: process current, start voltage read (Vdd/Vdn) +// Tick 2: process voltage, start Vdd temp read +// Tick 3: process Vdd temp, start current read (Vdd/Vdn) +// Tick 4: process current, start voltage read (Vdd/Vdn) +// Tick 5: process voltage, start status read (Vdd/Vdn) +// Tick 6: process status, start current read (Vdd/Vdn) +// (back to tick 1) +// +// Vdd/Vdn current and voltage are read every 3 ticks +// Vdd temperature and status is read every 6 ticks // // Thread: RealTime Loop // // End Function Specification void amec_update_avsbus_sensors(void) { - static enum { AVSBUS_STATE_DISABLED = 0, AVSBUS_STATE_INITIATE_READ = 1, |