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

@ -69,4 +69,5 @@
# ARM Primecells
#
gArmPlatformTokenSpaceGuid.PcdSP804FrequencyInMHz|1|UINT32|0x0000001D
gArmPlatformTokenSpaceGuid.PcdSP804Timer0InterruptNum|0|UINT32|0x0000001E

View File

@ -353,6 +353,7 @@
gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000
gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms
gArmPlatformTokenSpaceGuid.PcdSP804Timer0InterruptNum|36
#
# ARM Pcds

View File

@ -357,6 +357,7 @@
gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000
gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms
gArmPlatformTokenSpaceGuid.PcdSP804Timer0InterruptNum|33
#
# ARM Pcds

View File

@ -119,15 +119,6 @@
//#define ARM_EB_L2x0_CTLR_BASE 0x1E00A000*/
/*******************************************
// Interrupt Map
*******************************************/
// Timer Interrupts
#define TIMER01_INTERRUPT_NUM 34
#define TIMER23_INTERRUPT_NUM 35
/*******************************************
// EFI Memory Map in Permanent Memory (DRAM)
*******************************************/

View File

@ -381,6 +381,7 @@
gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000
gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms
gArmPlatformTokenSpaceGuid.PcdSP804Timer0InterruptNum|34
#
# ARM Pcds

View File

@ -130,15 +130,6 @@
// PL111 Lcd
#define PL111_CLCD_CORE_TILE_VIDEO_MODE_OSC_ID 1
/***********************************************************************************
// Interrupt Map
************************************************************************************/
// Timer Interrupts
#define TIMER01_INTERRUPT_NUM 34
#define TIMER23_INTERRUPT_NUM 35
/***********************************************************************************
// EFI Memory Map in Permanent Memory (DRAM)
************************************************************************************/

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]