SioPowerGoodAssert check at boot for HPE Proliant

HPE Proliant server are loading the ROM image in memory.
During this operation power up sequencing is put on
hold to prevent host to start. sioPowerGood could
be asserted, if the restore power policy is set
to yes and the previous state was on. In parallel
the PowerOk is de-asserted while the ROM is setup.
This is breaking the logic of the daemon which needs
to be slightly changed on cold boot in such situation.
Proposed change is to consider that the server is on
when sioPowerGood is on which is the last step when
sio is supported on intel platform.

Change-Id: Ia70a700204ac7e4047b52ac4989d611ba4216470
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
diff --git a/power-control-x86/src/power_control.cpp b/power-control-x86/src/power_control.cpp
index baf4400..733cfb1 100644
--- a/power-control-x86/src/power_control.cpp
+++ b/power-control-x86/src/power_control.cpp
@@ -3413,7 +3413,8 @@
 
     if (powerOkConfig.type == ConfigType::GPIO)
     {
-        if (psPowerOKLine.get_value() > 0)
+        if (psPowerOKLine.get_value() > 0 ||
+            sioPowerGoodLine.get_value() == sioPwrGoodConfig.polarity)
         {
             powerState = PowerState::on;
         }