TianoCore EDK2 master
Loading...
Searching...
No Matches
RiscVVirt.fdf.inc
1## @file
2# Definitions of Flash definition file on RiscVVirt RISC-V platform
3#
4# Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
5# Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.<BR>
6#
7# SPDX-License-Identifier: BSD-2-Clause-Patent
8#
9##
10[Defines]
11DEFINE BLOCK_SIZE = 0x1000
12
13DEFINE PFLASH0_BASE = 0x20000000
14DEFINE PFLASH1_BASE = 0x22000000
15
16DEFINE CODE_BASE_ADDRESS = $(PFLASH0_BASE)
17DEFINE CODE_SIZE = 0x00800000
18DEFINE CODE_BLOCKS = 0x800
19
20DEFINE VARS_BASE_ADDRESS = $(PFLASH1_BASE)
21DEFINE VARS_SIZE = 0x000C0000
22DEFINE VARS_BLOCK_SIZE = 0x40000
23DEFINE VARS_BLOCKS = 0x3
24
25#
26# EFI Variable memory region.
27# The total size of EFI Variable FD must include
28# all of sub regions of EFI Variable
29#
30DEFINE VARS_OFFSET = 0x00000000
31DEFINE VARS_LIVE_SIZE = 0x00040000
32DEFINE VARS_FTW_WORKING_OFFSET = $(VARS_OFFSET) + $(VARS_LIVE_SIZE)
33DEFINE VARS_FTW_WORKING_SIZE = 0x00040000
34DEFINE VARS_FTW_SPARE_OFFSET = $(VARS_FTW_WORKING_OFFSET) + $(VARS_FTW_WORKING_SIZE)
35DEFINE VARS_FTW_SPARE_SIZE = 0x00040000
36
37SET gUefiCpuPkgTokenSpaceGuid.PcdCpuCoreCrystalClockFrequency = 10000000
38SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase = 0x83FF0000
39SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize = 0x00010000