]> git.proxmox.com Git - mirror_edk2.git/blobdiff - QuarkPlatformPkg/Application/ForceRecovery/ForceRecovery.c
edk2: Remove packages moved to edk2-platforms
[mirror_edk2.git] / QuarkPlatformPkg / Application / ForceRecovery / ForceRecovery.c
diff --git a/QuarkPlatformPkg/Application/ForceRecovery/ForceRecovery.c b/QuarkPlatformPkg/Application/ForceRecovery/ForceRecovery.c
deleted file mode 100644 (file)
index 7132ec9..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/** @file\r
-  Application that sets a sticky bit to force recovery on next reset.\r
-\r
-  Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
-  SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-**/\r
-\r
-#include <Uefi.h>\r
-\r
-#include <Library/UefiRuntimeServicesTableLib.h>\r
-#include <Library/QNCAccessLib.h>\r
-\r
-/**\r
-  The user Entry Point for Application. The user code starts with this function\r
-  as the real entry point for the application.\r
-\r
-  @param[in] ImageHandle    The firmware allocated handle for the EFI image.\r
-  @param[in] SystemTable    A pointer to the EFI System Table.\r
-\r
-  @retval EFI_SUCCESS       The entry point is executed successfully.\r
-  @retval other             Some error occurs when executing this entry point.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UefiMain (\r
-  IN EFI_HANDLE        ImageHandle,\r
-  IN EFI_SYSTEM_TABLE  *SystemTable\r
-  )\r
-{\r
-  //\r
-  // Set 'B_CFG_STICKY_RW_FORCE_RECOVERY' sticky bit so we know we need to do a recovery following warm reset\r
-  //\r
-  QNCAltPortWrite (\r
-    QUARK_SCSS_SOC_UNIT_SB_PORT_ID,\r
-    QUARK_SCSS_SOC_UNIT_CFG_STICKY_RW,\r
-    QNCAltPortRead (QUARK_SCSS_SOC_UNIT_SB_PORT_ID, QUARK_SCSS_SOC_UNIT_CFG_STICKY_RW) | B_CFG_STICKY_RW_FORCE_RECOVERY\r
-    );\r
-\r
-  //\r
-  // Do a warm reset\r
-  //\r
-  gRT->ResetSystem (EfiResetWarm, EFI_SUCCESS, 0, NULL);\r
-\r
-  return EFI_SUCCESS;\r
-}\r