diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-11 11:17:41 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-11 11:17:41 +0000 |
commit | 1eb3454b8a56a18b1da828a51e35845b3fc0e967 (patch) | |
tree | d1912ab9e94f4bcb12c4567605db294f055e71ce /ArmPlatformPkg/Drivers | |
parent | 780e2bdc1afbfc27f1d846063e635cee980f2736 (diff) | |
download | edk2-platforms-1eb3454b8a56a18b1da828a51e35845b3fc0e967.tar.xz |
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
Diffstat (limited to 'ArmPlatformPkg/Drivers')
-rw-r--r-- | ArmPlatformPkg/Drivers/SP804TimerDxe/SP804Timer.c | 2 | ||||
-rw-r--r-- | ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ArmPlatformPkg/Drivers/SP804TimerDxe/SP804Timer.c b/ArmPlatformPkg/Drivers/SP804TimerDxe/SP804Timer.c index 7e47891981..e74b7e1382 100644 --- a/ArmPlatformPkg/Drivers/SP804TimerDxe/SP804Timer.c +++ b/ArmPlatformPkg/Drivers/SP804TimerDxe/SP804Timer.c @@ -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); diff --git a/ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf b/ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf index a1765cc78c..017277ad71 100644 --- a/ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf +++ b/ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf @@ -49,6 +49,7 @@ [Pcd.common] gArmPlatformTokenSpaceGuid.PcdSP804FrequencyInMHz + gArmPlatformTokenSpaceGuid.PcdSP804Timer0InterruptNum gEmbeddedTokenSpaceGuid.PcdTimerPeriod [Depex] |