PHAL: Modify sbe error pel interface to pass in error type

At present all sbe related pels are created with severity
as Error(unrecoverable), modifying the API to specify the
severity type by the caller.

Some of the chip-op is expected to fail in power-off/error path.
This commit will help to set custom priority of the failure.

Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
Change-Id: If072061bf995b2db58259eba64e7e8f7ace20f6c
diff --git a/extensions/phal/create_pel.hpp b/extensions/phal/create_pel.hpp
index 481417b..53b8751 100644
--- a/extensions/phal/create_pel.hpp
+++ b/extensions/phal/create_pel.hpp
@@ -1,5 +1,7 @@
 #pragma once
 
+#include "xyz/openbmc_project/Logging/Entry/server.hpp"
+
 #include <phal_exception.H>
 
 #include <nlohmann/json.hpp>
@@ -15,7 +17,7 @@
 using json = nlohmann::json;
 
 using namespace openpower::phal;
-
+using Severity = sdbusplus::xyz::openbmc_project::Logging::server::Entry::Level;
 /**
  * @brief Create PEL with additional parameters and callout
  *
@@ -32,10 +34,12 @@
  * @param[in] event - the event type
  * @param[in] sbeError - SBE error object
  * @param[in] ffdcData - failure data to append to PEL
+ * @param[in] severity - severity of the log
  * @return Platform log id
  */
 uint32_t createSbeErrorPEL(const std::string& event, const sbeError_t& sbeError,
-                           const FFDCData& ffdcData);
+                           const FFDCData& ffdcData,
+                           const Severity severity = Severity::Error);
 
 /**
  * @brief Create a PEL for the specified event type and additional data