hc
2024-03-25 edb30157bad0c0001c32b854271ace01d3b9a16a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
## @file
#  RISC-V OpenSBI Platform Library
#  This is the the library which provides platform
#  level opensbi functions follow RISC-V OpenSBI implementation.
#
#  Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
#
#  SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
 
[Defines]
  INF_VERSION                    = 0x0001001b
  BASE_NAME                      = RiscVOpensbiPlatformLib
  FILE_GUID                      = 9424ED54-EBDA-4FB5-8FF6-8291B07BB151
  MODULE_TYPE                    = SEC
  VERSION_STRING                 = 1.0
  LIBRARY_CLASS                  = RiscVOpensbiPlatformLib
 
#
# The following information is for reference only and not required by the build tools.
#
#  VALID_ARCHITECTURES           = RISCV64
#
 
[Sources]
  Platform.c
 
[Packages]
  EmbeddedPkg/EmbeddedPkg.dec
  MdeModulePkg/MdeModulePkg.dec
  MdePkg/MdePkg.dec
  Platform/SiFive/U5SeriesPkg/U5SeriesPkg.dec
  Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dec
  Silicon/RISC-V/ProcessorPkg/RiscVProcessorPkg.dec
 
[LibraryClasses]
  BaseLib
  BaseMemoryLib
  DebugLib
  DebugAgentLib
  FdtLib
  PcdLib
  PrintLib
  RiscVCpuLib
 
[FixedPcd]
  gUefiRiscVPlatformPkgTokenSpaceGuid.PcdBootHartId
  gUefiRiscVPlatformPkgTokenSpaceGuid.PcdHartCount
  gUefiRiscVPlatformPkgTokenSpaceGuid.PcdBootableHartNumber
  gUefiRiscVPlatformPkgTokenSpaceGuid.PcdOpenSbiStackSize
 
  gSiFiveU5SeriesPlatformsPkgTokenSpaceGuid.PcdU5UartBase
  gSiFiveU5SeriesPlatformsPkgTokenSpaceGuid.PcdU5PlatformSystemClock