PEL: Add critical error for regulators config file

Add a new message registry entry for a critical error involving the
phosphor-regulators configuration file.

The regulators application requires a valid JSON config file.  When the
application starts, if a valid file cannot be found, a non-critical
error is logged.  This error is already defined in the message registry.

However, if the chassis starts powering on and a config file still
cannot be found, a critical error should be logged.  The voltage
regulators in the system will not be configured, and this could
potentially cause hardware damage.  For example, the default output
voltage of a regulator may be too high.

The existing message registry entry cannot be reused because it gets the
PEL severity from the base BMC error log severity.  The base BMC
severity "Critical" is mapped to the PEL severity "critical".  However,
in this case the PEL severity "critical_system_term" is needed instead.
Also, the PowerFault property should be true for the critical entry and
false for the non-critical entry.

Tested:
* Ran the validation tool.
* Loaded the message registry file into a BMC simulation session.
* Verified that when the error occurred, the expected PEL was created.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I4950e912481dd71be40a1a176591b235e9d4c668
diff --git a/extensions/openpower-pels/registry/message_registry.json b/extensions/openpower-pels/registry/message_registry.json
index 0629f01..3500082 100644
--- a/extensions/openpower-pels/registry/message_registry.json
+++ b/extensions/openpower-pels/registry/message_registry.json
@@ -1322,6 +1322,39 @@
         },
 
         {
+            "Name": "xyz.openbmc_project.Power.Regulators.Error.ConfigFile.Critical",
+            "Subsystem": "power",
+            "Severity": "critical_system_term",
+            "ComponentID": "0x2700",
+
+            "SRC": {
+                "Type": "11",
+                "ReasonCode": "0xA014",
+                "Words6To9": {},
+                "PowerFault": true
+            },
+
+            "Callouts": [
+                {
+                    "CalloutList": [
+                        { "Priority": "high", "Procedure": "bmc_code" }
+                    ]
+                }
+            ],
+
+            "Documentation": {
+                "Description": "A critical regulators configuration file error occurred",
+                "Message": "A critical regulators configuration file error occurred",
+                "Notes": [
+                    "The regulators configuration file could not be found, ",
+                    "could not be read, or had invalid contents.  As a result ",
+                    "voltage regulators could not be configured, and the ",
+                    "chassis could not be powered on."
+                ]
+            }
+        },
+
+        {
             "Name": "xyz.openbmc_project.Power.Error.PowerSequencerFault",
             "Subsystem": "power_sequencer",
             "ComponentID": "0x2700",