mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 22:54:51 +02:00
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:
parent
780e2bdc1a
commit
1eb3454b8a
@ -69,4 +69,5 @@
|
|||||||
# ARM Primecells
|
# ARM Primecells
|
||||||
#
|
#
|
||||||
gArmPlatformTokenSpaceGuid.PcdSP804FrequencyInMHz|1|UINT32|0x0000001D
|
gArmPlatformTokenSpaceGuid.PcdSP804FrequencyInMHz|1|UINT32|0x0000001D
|
||||||
|
gArmPlatformTokenSpaceGuid.PcdSP804Timer0InterruptNum|0|UINT32|0x0000001E
|
||||||
|
|
||||||
|
@ -353,6 +353,7 @@
|
|||||||
|
|
||||||
gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000
|
gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000
|
||||||
gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms
|
gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms
|
||||||
|
gArmPlatformTokenSpaceGuid.PcdSP804Timer0InterruptNum|36
|
||||||
|
|
||||||
#
|
#
|
||||||
# ARM Pcds
|
# ARM Pcds
|
||||||
|
@ -357,6 +357,7 @@
|
|||||||
|
|
||||||
gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000
|
gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000
|
||||||
gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms
|
gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms
|
||||||
|
gArmPlatformTokenSpaceGuid.PcdSP804Timer0InterruptNum|33
|
||||||
|
|
||||||
#
|
#
|
||||||
# ARM Pcds
|
# ARM Pcds
|
||||||
|
@ -119,15 +119,6 @@
|
|||||||
//#define ARM_EB_L2x0_CTLR_BASE 0x1E00A000*/
|
//#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)
|
// EFI Memory Map in Permanent Memory (DRAM)
|
||||||
*******************************************/
|
*******************************************/
|
||||||
|
@ -381,6 +381,7 @@
|
|||||||
gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000
|
gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000
|
||||||
|
|
||||||
gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms
|
gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms
|
||||||
|
gArmPlatformTokenSpaceGuid.PcdSP804Timer0InterruptNum|34
|
||||||
|
|
||||||
#
|
#
|
||||||
# ARM Pcds
|
# ARM Pcds
|
||||||
|
@ -130,15 +130,6 @@
|
|||||||
// PL111 Lcd
|
// PL111 Lcd
|
||||||
#define PL111_CLCD_CORE_TILE_VIDEO_MODE_OSC_ID 1
|
#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)
|
// EFI Memory Map in Permanent Memory (DRAM)
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
@ -379,7 +379,7 @@ TimerInitialize (
|
|||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
// Install interrupt handler
|
// Install interrupt handler
|
||||||
gVector = TIMER01_INTERRUPT_NUM;
|
gVector = PcdGet32(PcdSP804Timer0InterruptNum);
|
||||||
Status = gInterrupt->RegisterInterruptSource (gInterrupt, gVector, TimerInterruptHandler);
|
Status = gInterrupt->RegisterInterruptSource (gInterrupt, gVector, TimerInterruptHandler);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
|
|
||||||
[Pcd.common]
|
[Pcd.common]
|
||||||
gArmPlatformTokenSpaceGuid.PcdSP804FrequencyInMHz
|
gArmPlatformTokenSpaceGuid.PcdSP804FrequencyInMHz
|
||||||
|
gArmPlatformTokenSpaceGuid.PcdSP804Timer0InterruptNum
|
||||||
gEmbeddedTokenSpaceGuid.PcdTimerPeriod
|
gEmbeddedTokenSpaceGuid.PcdTimerPeriod
|
||||||
|
|
||||||
[Depex]
|
[Depex]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user