From 722bf1861db9ae16c61291f2fb47deb7ddfe74aa Mon Sep 17 00:00:00 2001 From: Matt Derksen Date: Thu, 11 Jan 2018 09:28:55 -0600 Subject: Fix setting hbVolatile and RebootControl sensors Setting sensor to 2 equates to BMC setting of 1, Setting sensor to 1 equates to BMC setting of 0. Change-Id: Ib3c4b4a144a8fad5bd4f93be88bbe0ff7476ab64 RTC: 180772 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51787 Tested-by: Jenkins Server Reviewed-by: Adriana Kobylak Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes Reviewed-by: Daniel M. Crowell --- src/include/usr/ipmi/ipmisensor.H | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/include/usr/ipmi') diff --git a/src/include/usr/ipmi/ipmisensor.H b/src/include/usr/ipmi/ipmisensor.H index 676833309..4da69dc0c 100644 --- a/src/include/usr/ipmi/ipmisensor.H +++ b/src/include/usr/ipmi/ipmisensor.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2014,2017 */ +/* Contributors Listed Below - COPYRIGHT 2014,2018 */ /* [+] Google Inc. */ /* [+] International Business Machines Corp. */ /* */ @@ -655,12 +655,14 @@ namespace SENSOR public: /** * @enum autoRebootSetting - * enum to define the contr + * enum to define the control sensor state + * Note: bit based setting: 0 -> 0x01 + * 1 -> 0x02 */ enum autoRebootSetting { - DISABLE_REBOOTS = 0x00, // keep current state - ENABLE_REBOOTS = 0x01, // allow reboot for FIRDATA analysis + DISABLE_REBOOTS = 0x01, // keep current state + ENABLE_REBOOTS = 0x02, // allow reboot for FIRDATA analysis }; /** @@ -931,12 +933,14 @@ namespace SENSOR /** * @enum hbVolatileSetting - * enum to define the contr + * enum to define the HB volatile sensor setting + * Note: bit based setting: BMC 0 -> 0x01 (off) + * BMC 1 -> 0x02 (on) */ enum hbVolatileSetting { - DISABLE_VOLATILE = 0x00, // (default) - ENABLE_VOLATILE = 0x01, // allow volatile memory to be cleared + DISABLE_VOLATILE = 0x01, // (default) + ENABLE_VOLATILE = 0x02, // allow volatile memory to be cleared }; /** -- cgit v1.2.3