]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/ArmVExpressPkg/Library/ResetSystemLib/ResetSystemLib.c
ArmPlatformPkg/ArmVExpressPkg: Add Shutdown support
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / Library / ResetSystemLib / ResetSystemLib.c
index f858317550835a66a807e5a8ed499ac92b1dc500..b96e7e096f65089d9c114573faa8bdc7eac0250d 100644 (file)
@@ -49,10 +49,15 @@ LibResetSystem (
   case EfiResetWarm:\r
     // Map a warm reset into a cold reset\r
   case EfiResetCold:\r
-  case EfiResetShutdown:\r
     // Send the REBOOT function to the platform microcontroller\r
     ArmPlatformSysConfigSet (SYS_CFG_REBOOT, 0);\r
 \r
+    // We should never be here\r
+    while(1);\r
+  case EfiResetShutdown:\r
+    // Send the SHUTDOWN function to the platform microcontroller\r
+    ArmPlatformSysConfigSet (SYS_CFG_SHUTDOWN, 0);\r
+\r
     // We should never be here\r
     while(1);\r
   }\r