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:
oliviermartin
2011-06-11 11:17:41 +00:00
parent 780e2bdc1a
commit 1eb3454b8a
8 changed files with 6 additions and 19 deletions

View File

@@ -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);

View File

@@ -49,6 +49,7 @@
[Pcd.common]
gArmPlatformTokenSpaceGuid.PcdSP804FrequencyInMHz
gArmPlatformTokenSpaceGuid.PcdSP804Timer0InterruptNum
gEmbeddedTokenSpaceGuid.PcdTimerPeriod
[Depex]