Add option to use PLT_RST for warm reset detection

To support platforms that provide a PLT_RST eSPI signal,
this change adds an option to detect warm resets from the
eSPI PLT_RST signal instead of POST Complete.

The eSPI PLT_RST signal is provided by the
xyz.openbmc_project.Host.Misc.Manager service.

Tested:
Confirmed that warm reset can be detected based on PLT_RST
changes.

Change-Id: I8ac2c260280cf4edec8800e8e2ee12159748f24e
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/power-control-x86/CMakeLists.txt b/power-control-x86/CMakeLists.txt
index 2a94f78..ba06ed4 100644
--- a/power-control-x86/CMakeLists.txt
+++ b/power-control-x86/CMakeLists.txt
@@ -9,6 +9,12 @@
      power and restoring back"
     OFF
 )
+option (
+    USE_PLT_RST
+    "Use the PLT_RST eSPI signal to detect warm reset
+     instead of POST Complete"
+    OFF
+)
 
 add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY)
 add_definitions(-DBOOST_SYSTEM_NO_DEPRECATED)
@@ -30,6 +36,8 @@
 target_compile_definitions (
     ${PROJECT_NAME} PRIVATE $<$<BOOL:${CHASSIS_SYSTEM_RESET}>:
     -DCHASSIS_SYSTEM_RESET>
+    ${PROJECT_NAME} PRIVATE $<$<BOOL:${USE_PLT_RST}>:
+    -DUSE_PLT_RST>
 )
 
 install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})