fix watchdog for LG G7 better-smbios
authorBigfootACA <bigfoot@classfun.cn>
星期六, 7 Aug 2021 14:02:03 +0000 (22:02 +0800)
committerBigfootACA <bigfoot@classfun.cn>
星期六, 7 Aug 2021 14:02:03 +0000 (22:02 +0800)
Signed-off-by: BigfootACA <bigfoot@classfun.cn>
Signed-off-by: Idonotkno <412353716@qq.com>
sdm845Pkg/Drivers/sdm845Dxe/sdm845Dxe.c

index 58856ba106408e484d9fe429c02ebc7c96217843..89d41afe7ffc0716296ddf6c2473fba7a0c8d600 100644 (file)
@@ -43,15 +43,10 @@ InitPeripherals (
   IN VOID
   )
 {
-  //This mainly works.
-  EFI_STATUS            Status;
+  //Feed the QcomWdogTimer
+  MmioWrite32(0x17980008,0x000000);
+  DEBUG ((EFI_D_WARN, "\n \v The Dog is feeded :)\v"));
 
-  Status = gCpu->SetMemoryAttributes (gCpu, 0xa1a10000, 0x200000,
-                  EFI_MEMORY_UC | EFI_MEMORY_XP);
-  ASSERT_EFI_ERROR (Status);
-  Status = gCpu->SetMemoryAttributes (gCpu, 0x9d400000, 0x2400000,
-                  EFI_MEMORY_WC | EFI_MEMORY_XP);
-  ASSERT_EFI_ERROR (Status);
 }
 
 /**