]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmVirtPkg/Library/ArmVirtPL031FdtClientLib/ArmVirtPL031FdtClientLib.c
ArmVirtPkg/ArmVirtPL031FdtClientLib: unconditionally disable DT node
[mirror_edk2.git] / ArmVirtPkg / Library / ArmVirtPL031FdtClientLib / ArmVirtPL031FdtClientLib.c
index 82de7a51b32e8ea6de0c4b62a44378cf57dd1ad3..d168424a52f5ed2ccc92c8cf1783b7f4227e6021 100644 (file)
@@ -66,18 +66,16 @@ ArmVirtPL031FdtClientLibConstructor (
 \r
   DEBUG ((EFI_D_INFO, "Found PL031 RTC @ 0x%Lx\n", RegBase));\r
 \r
-  if (!FeaturePcdGet (PcdPureAcpiBoot)) {\r
-    //\r
-    // UEFI takes ownership of the RTC hardware, and exposes its functionality\r
-    // through the UEFI Runtime Services GetTime, SetTime, etc. This means we\r
-    // need to disable it in the device tree to prevent the OS from attaching\r
-    // its device driver as well.\r
-    //\r
-    Status = FdtClient->SetNodeProperty (FdtClient, Node, "status",\r
-                          "disabled", sizeof ("disabled"));\r
-    if (EFI_ERROR (Status)) {\r
-        DEBUG ((EFI_D_WARN, "Failed to set PL031 status to 'disabled'\n"));\r
-    }\r
+  //\r
+  // UEFI takes ownership of the RTC hardware, and exposes its functionality\r
+  // through the UEFI Runtime Services GetTime, SetTime, etc. This means we\r
+  // need to disable it in the device tree to prevent the OS from attaching\r
+  // its device driver as well.\r
+  //\r
+  Status = FdtClient->SetNodeProperty (FdtClient, Node, "status",\r
+                        "disabled", sizeof ("disabled"));\r
+  if (EFI_ERROR (Status)) {\r
+      DEBUG ((EFI_D_WARN, "Failed to set PL031 status to 'disabled'\n"));\r
   }\r
 \r
   return EFI_SUCCESS;\r