diff options
author | Chris Cain <cjcain@us.ibm.com> | 2016-10-27 15:08:34 -0500 |
---|---|---|
committer | Christopher J. Cain <cjcain@us.ibm.com> | 2016-11-09 09:13:28 -0500 |
commit | a57eba09d85bfac41ccb9ec919b4bf37706592cc (patch) | |
tree | acf4431d44a4df6a22089f33ba153b5c8a3b9548 /src/occ_405/occ_sys_config.h | |
parent | 45ceb3d13361ac099c7b0b9f2ff51a731e296ed1 (diff) | |
download | talos-occ-a57eba09d85bfac41ccb9ec919b4bf37706592cc.tar.gz talos-occ-a57eba09d85bfac41ccb9ec919b4bf37706592cc.zip |
Code updates for AVS Bus data collection
- add support for reading voltage/current from AVS Bus
on Vdd and Vdn rails (on alternating ticks)
- remove overcurrent code
- remove voltage uplift code
- other minor cleanup
RTC: 137620
Change-Id: I774a2421059ab3684e3b790938429e9e77ae2b76
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31923
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
Diffstat (limited to 'src/occ_405/occ_sys_config.h')
-rwxr-xr-x | src/occ_405/occ_sys_config.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/occ_405/occ_sys_config.h b/src/occ_405/occ_sys_config.h index 6044227..9380cfb 100755 --- a/src/occ_405/occ_sys_config.h +++ b/src/occ_405/occ_sys_config.h @@ -209,6 +209,13 @@ typedef struct uint8_t gpu[MAX_GPU_DOMAINS][MAX_NUM_GPU_PER_DOMAIN]; } apssAdcChannelData_t; +typedef struct +{ + uint8_t bus; + uint8_t rail; + uint16_t loadline; +} avsbusData_t; + // Master/Slave Configuration typedef struct { @@ -344,6 +351,10 @@ typedef struct // GPIO Port Mode uint8_t apssGpioPortsMode[MAX_APSS_GPIO_PORTS]; + // AVS Bus config + avsbusData_t avsbus_vdd; + avsbusData_t avsbus_vdn; + // ------------------------------------ // Power Cap Configuration Data updated by Slaves // ------------------------------------ @@ -397,18 +408,6 @@ typedef struct // (only first two columns populated) mem_throt_config_data_t mem_throt_limits[MAX_NUM_MEM_CONTROLLERS][MAX_NUM_MCU_PORTS]; - // -------------------------------------- - // Vdd/Vcs Uplift vid codes - // -------------------------------------- - // Current Vdd VID Uplift - int8_t vdd_vid_uplift_cur; - // Vdd VID delta to be applied to Pstate table - int8_t vdd_vid_delta; - // Current VCS VID Uplift request - int8_t vcs_vid_uplift_cur; - // Vcs VID delta to be applied to Pstate table - int8_t vcs_vid_delta; - } occSysConfigData_t; __attribute__ ((__aligned__ (128))) extern occSysConfigData_t G_sysConfigData; @@ -435,8 +434,6 @@ typedef struct extern pcap_config_data_t G_master_pcap_data; -extern uint16_t G_conn_oc_pins_bitmap; - #ifdef FSPLESS_SIMICS void sysConfigFspLess(void); #endif |