]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Omap35xxPkg/TimerDxe/Timer.c
BeagleBoardPkg: Ensure there is no pending IRQ and disable timer
[mirror_edk2.git] / Omap35xxPkg / TimerDxe / Timer.c
index 1919618ef266431c8db9f125929d59044a9aad64..d0ea973509eded94baa5e3b4cc6b0a0115b11269 100644 (file)
@@ -356,6 +356,9 @@ TimerInitialize (
   Status = gInterrupt->RegisterInterruptSource (gInterrupt, gVector, TimerInterruptHandler);
   ASSERT_EFI_ERROR (Status);
 
+  // Turn on the functional clock for Timer
+  MmioOr32 (CM_FCLKEN_PER, CM_FCLKEN_PER_EN_GPT3_ENABLE);
+
   // Set up default timer
   Status = TimerDriverSetTimerPeriod (&gTimer, FixedPcdGet32(PcdTimerPeriod));
   ASSERT_EFI_ERROR (Status);