summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg/Drivers
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-11 11:17:41 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-11 11:17:41 +0000
commit1eb3454b8a56a18b1da828a51e35845b3fc0e967 (patch)
treed1912ab9e94f4bcb12c4567605db294f055e71ce /ArmPlatformPkg/Drivers
parent780e2bdc1afbfc27f1d846063e635cee980f2736 (diff)
downloadedk2-1eb3454b8a56a18b1da828a51e35845b3fc0e967.zip
edk2-1eb3454b8a56a18b1da828a51e35845b3fc0e967.tar.gz
edk2-1eb3454b8a56a18b1da828a51e35845b3fc0e967.tar.bz2
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.c2
-rw-r--r--ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf1
2 files changed, 2 insertions, 1 deletions
diff --git a/ArmPlatformPkg/Drivers/SP804TimerDxe/SP804Timer.c b/ArmPlatformPkg/Drivers/SP804TimerDxe/SP804Timer.c
index 7e47891..e74b7e1 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 a1765cc..017277a 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]