#include <Library/UefiLib.h>
#include <Library/PcdLib.h>
#include <Library/IoLib.h>
-#include <Library/OmapLib.h>
#include <Protocol/Timer.h>
#include <Protocol/HardwareInterrupt.h>
// Cached interrupt vector
UINTN gVector;
+UINT32 mLastTickCount;
+
/**
Status = gInterrupt->DisableInterruptSource (gInterrupt, gVector);
} else {
// Convert TimerPeriod into 1MHz clock counts (us units = 100ns units / 10)\r
- TimerTicks = DivU64x32 (TimerPeriod, 10, NULL);\r
+ TimerTicks = DivU64x32 (TimerPeriod, 10);\r
\r
// if it's larger than 32-bits, pin to highest value\r
if (TimerTicks > 0xffffffff) {\r
// Disable the timer
Status = TimerDriverSetTimerPeriod (&gTimer, 0);
ASSERT_EFI_ERROR (Status);
-\r
- // Install interrupt handler for SP804 timer 0/1 interrupts\r
- Status = mGic->RegisterInterruptHandler(mGic, EB_TIMER01_INTERRUPT_NUM, TimerInterruptHandler);\r
- ASSERT_EFI_ERROR (Status);\r
// Install interrupt handler
gVector = EB_TIMER01_INTERRUPT_NUM;