Revision: 14438
          http://sourceforge.net/p/edk2/code/14438
Author:   oliviermartin
Date:     2013-06-21 10:09:50 +0000 (Fri, 21 Jun 2013)
Log Message:
-----------
ArmPlatformPkg/ArmVExpressPkg: Add Shutdown support

LibResetSystem was performing a cold reboot for both reboot and
shutdown.

This patch updates LibResetSystem to pass SYS_CFG_SHUTDOWN to the
microcontroller when called wit EfiResetShutdown.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ryan Harkin <[email protected]>
Reviewed-by: Olivier Martin <[email protected]>

Modified Paths:
--------------
    
trunk/edk2/ArmPlatformPkg/ArmVExpressPkg/Library/ResetSystemLib/ResetSystemLib.c

Modified: 
trunk/edk2/ArmPlatformPkg/ArmVExpressPkg/Library/ResetSystemLib/ResetSystemLib.c
===================================================================
--- 
trunk/edk2/ArmPlatformPkg/ArmVExpressPkg/Library/ResetSystemLib/ResetSystemLib.c
    2013-06-21 10:01:27 UTC (rev 14437)
+++ 
trunk/edk2/ArmPlatformPkg/ArmVExpressPkg/Library/ResetSystemLib/ResetSystemLib.c
    2013-06-21 10:09:50 UTC (rev 14438)
@@ -49,12 +49,17 @@
   case EfiResetWarm:
     // Map a warm reset into a cold reset
   case EfiResetCold:
-  case EfiResetShutdown:
     // Send the REBOOT function to the platform microcontroller
     ArmPlatformSysConfigSet (SYS_CFG_REBOOT, 0);
 
     // We should never be here
     while(1);
+  case EfiResetShutdown:
+    // Send the SHUTDOWN function to the platform microcontroller
+    ArmPlatformSysConfigSet (SYS_CFG_SHUTDOWN, 0);
+
+    // We should never be here
+    while(1);
   }
 
   ASSERT(FALSE);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to