UefiCpuPkg: Add LoongArch64 CPU Timer instance

Add the LoongArch64 CPU Timer instance to CpuTimerLib, using CPUCFG 0x4
and 0x5 for Stable Counter frequency.

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4734

Cc: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Chao Li <lichao@loongson.cn>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
Chao Li
2024-03-20 15:33:49 +08:00
committed by mergify[bot]
parent cc63e04afc
commit 439030bc37
3 changed files with 266 additions and 2 deletions

View File

@@ -110,6 +110,9 @@
UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
[LibraryClasses.LoongArch64]
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
#
# Drivers/Libraries within this package
#