ArmPlatformPkg/SP804TimerDxe: Replaced Interrupt number #define by a PCD
The PcdSP804Timer0InterruptNum defines the interrupt number attached to SP804 Timer0. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11791 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -379,7 +379,7 @@ TimerInitialize (
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
// Install interrupt handler
|
||||
gVector = TIMER01_INTERRUPT_NUM;
|
||||
gVector = PcdGet32(PcdSP804Timer0InterruptNum);
|
||||
Status = gInterrupt->RegisterInterruptSource (gInterrupt, gVector, TimerInterruptHandler);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
|
@@ -49,6 +49,7 @@
|
||||
|
||||
[Pcd.common]
|
||||
gArmPlatformTokenSpaceGuid.PcdSP804FrequencyInMHz
|
||||
gArmPlatformTokenSpaceGuid.PcdSP804Timer0InterruptNum
|
||||
gEmbeddedTokenSpaceGuid.PcdTimerPeriod
|
||||
|
||||
[Depex]
|
||||
|
Reference in New Issue
Block a user