mirror of
https://github.com/tianocore/edk2.git
synced 2025-08-26 22:07:55 +00:00

On RISC-V platforms, just like other platforms, we need to pass various information from one stage to another (hartid/cmo operations etc). Also there are some settings like Timer freq which are platform dependent which use PCDs. Today hartid is extracted through Firmware Context (custom in mem structure passed from one stage to another). For CMO we have a features HOB. Going forward we would like to have a standard mechanism to pass on such information and DT is handy as it can easily carry all this information (in some cases nodes already exists). This patch implement timebase frequency extraction from DT. Signed-off-by: Akshay Behl <cap2k4@rivosinc.com> Co-authored-by: Dhaval Sharma <dhaval@rivosinc.com>
36 lines
861 B
INI
36 lines
861 B
INI
## @file
|
|
# RISC-V Base CPU Timer Library Instance
|
|
#
|
|
# Copyright (c) 2016 - 2019, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
|
|
# Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.<BR>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x0001001B
|
|
BASE_NAME = BaseRisV64CpuTimerLib
|
|
FILE_GUID = B635A600-EA24-4199-88E8-5761EEA96A51
|
|
MODULE_TYPE = BASE
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = TimerLib
|
|
MODULE_UNI_FILE = BaseRisV64CpuTimerLib.uni
|
|
|
|
[Sources]
|
|
CpuTimerLib.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
UefiCpuPkg/UefiCpuPkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseLib
|
|
PcdLib
|
|
DebugLib
|
|
FdtLib
|
|
HobLib
|
|
|
|
[Guids]
|
|
gFdtHobGuid
|