PHAL: added createErrorPEL wrapper function

Refactored createBootErrorPEL to support callout and
additional data information as optional parameter to
support diffrent types of PEL creation.

Also renamed createBootErrorPEL -> createErrorPEL.

Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: Iee6e356740179caf6486a2750cf30278240a5785
diff --git a/extensions/phal/create_pel.hpp b/extensions/phal/create_pel.hpp
index 5c780eb..481417b 100644
--- a/extensions/phal/create_pel.hpp
+++ b/extensions/phal/create_pel.hpp
@@ -17,12 +17,14 @@
 using namespace openpower::phal;
 
 /**
- * @brief Create boot error PEL
+ * @brief Create PEL with additional parameters and callout
  *
- * @param[in] ffdcData - failure data to append to PEL
+ * @param[in] event - the event type
  * @param[in] calloutData - callout data to append to PEL
+ * @param[in] ffdcData - failure data to append to PEL
  */
-void createBootErrorPEL(const FFDCData& ffdcData, const json& calloutData);
+void createErrorPEL(const std::string& event, const json& calloutData = {},
+                    const FFDCData& ffdcData = {});
 
 /**
  * @brief Create SBE boot error PEL and return id