diff options
author | Chris Cain <cjcain@us.ibm.com> | 2015-01-14 09:23:57 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-01-22 17:40:08 -0600 |
commit | d84c27a1ba1c915e0fdcb2b638d729fe1bdff4fe (patch) | |
tree | 2135aa332fc89e1275934d8e2948cb2168a35dff /src/usr/htmgt/htmgt_cfgdata.C | |
parent | 38cfbf78f1b0393131bb6d7772d7e9948b03096e (diff) | |
download | talos-hostboot-d84c27a1ba1c915e0fdcb2b638d729fe1bdff4fe.tar.gz talos-hostboot-d84c27a1ba1c915e0fdcb2b638d729fe1bdff4fe.zip |
Add support for linux command to set OCC state.
Change-Id: I1ac4d810e0f4509dc89c645bef183f5cb2179b1c
RTC: 115213
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15154
Tested-by: Jenkins Server
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Reviewed-by: Matt Spinler <spinler@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/htmgt/htmgt_cfgdata.C')
-rw-r--r-- | src/usr/htmgt/htmgt_cfgdata.C | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/usr/htmgt/htmgt_cfgdata.C b/src/usr/htmgt/htmgt_cfgdata.C index baf4f5819..5a9dae4ef 100644 --- a/src/usr/htmgt/htmgt_cfgdata.C +++ b/src/usr/htmgt/htmgt_cfgdata.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2014 */ +/* Contributors Listed Below - COPYRIGHT 2014,2015 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -286,6 +286,7 @@ void getMemConfigMessageData(const TargetHandle_t i_occ, numSets++; centPos = (*centaur)->getAttr<ATTR_POSITION>(); + sensor = 0xC000 + centPos; //TODO RTC 115294 //Do the entry for the Centaur itself @@ -294,12 +295,10 @@ void getMemConfigMessageData(const TargetHandle_t i_occ, index += 4; //Hardware Sensor ID - sensor = 0; //TODO RTC 115294 memcpy(&o_data[index], &sensor, 2); index += 2; //Temperature Sensor ID - sensor = 0; //TODO RTC 115294 memcpy(&o_data[index], &sensor, 2); index += 2; @@ -339,12 +338,12 @@ void getMemConfigMessageData(const TargetHandle_t i_occ, index += 4; //Hardware Sensor ID - sensor = 0; //TODO RTC 115294 + sensor = 0xD000 + (centPos<<8) + dimmPos; //TODO RTC 115294 memcpy(&o_data[index], &sensor, 2); index += 2; //Temperature Sensor ID - sensor = 0; //TODO RTC 115294 + sensor = 0xD000 + (centPos<<8) + dimmPos; //TODO RTC 115294 memcpy(&o_data[index], &sensor, 2); index += 2; @@ -541,7 +540,7 @@ void getSystemConfigMessageData(uint8_t* o_data, uint64_t & o_size) o_data[index++] = OCC_CFGDATA_OPENPOWER_SYSTEMTYPE; //processor sensor ID - sensor = 0; //TODO all sensors - RTC 115294 + sensor = 0x1000; //TODO all sensors - RTC 115294 memcpy(&o_data[index], &sensor, 2); index += 2; @@ -549,23 +548,23 @@ void getSystemConfigMessageData(uint8_t* o_data, uint64_t & o_size) for (uint64_t core=0; core<CFGDATA_CORES; core++) { //Core Temp Sensor ID - sensor = 0; + sensor = 0x2000 + core; //TODO all sensors - RTC 115294 memcpy(&o_data[index], &sensor, 2); index += 2; //Core Frequency Sensor ID - sensor = 0; + sensor = 0x3000 + core; //TODO all sensors - RTC 115294 memcpy(&o_data[index], &sensor, 2); index += 2; } //Backplane sensor ID - sensor = 0; + sensor = 0xB000; memcpy(&o_data[index], &sensor, 2); index += 2; //APSS sensor ID - sensor = 0; + sensor = 0xA000; memcpy(&o_data[index], &sensor, 2); index += 2; @@ -724,7 +723,7 @@ void getApssMessageData(uint8_t* o_data, o_data[idx] = function[channel]; // ADC Channel assignement idx += sizeof(uint8_t); - uint16_t sensorId = 0; + uint16_t sensorId = 0xA100 + channel; //TODO all sensors - RTC 115294 memcpy(o_data+idx,&sensorId,sizeof(uint16_t)); // Sensor ID idx += sizeof(uint16_t); |