]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.fdf
f941a985a6a6067b886c3760fb4368f125c53c1e
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / ArmVExpress-CTA9x4.fdf
1 #
2 # Copyright (c) 2011-2014, ARM Limited. All rights reserved.
3 #
4 # This program and the accompanying materials
5 # are licensed and made available under the terms and conditions of the BSD License
6 # which accompanies this distribution. The full text of the license may be found at
7 # http://opensource.org/licenses/bsd-license.php
8 #
9 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 #
12
13 ################################################################################
14 #
15 # FD Section
16 # The [FD] Section is made up of the definition statements and a
17 # description of what goes into the Flash Device Image. Each FD section
18 # defines one flash "device" image. A flash device image may be one of
19 # the following: Removable media bootable image (like a boot floppy
20 # image,) an Option ROM image (that would be "flashed" into an add-in
21 # card,) a System "Flash" image (that would be burned into a system's
22 # flash) or an Update ("Capsule") image that will be used to update and
23 # existing system flash.
24 #
25 ################################################################################
26
27 [FD.Sec_ArmVExpress_EFI]
28 BaseAddress = 0x44000000|gArmTokenSpaceGuid.PcdSecureFdBaseAddress #The base address of the Secure FLASH Device.
29 Size = 0x00080000|gArmTokenSpaceGuid.PcdSecureFdSize #The size in bytes of the Secure FLASH Device
30 ErasePolarity = 1
31 BlockSize = 0x00001000
32 NumBlocks = 0x80
33
34 ################################################################################
35 #
36 # Following are lists of FD Region layout which correspond to the locations of different
37 # images within the flash device.
38 #
39 # Regions must be defined in ascending order and may not overlap.
40 #
41 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
42 # the pipe "|" character, followed by the size of the region, also in hex with the leading
43 # "0x" characters. Like:
44 # Offset|Size
45 # PcdOffsetCName|PcdSizeCName
46 # RegionType <FV, DATA, or FILE>
47 #
48 ################################################################################
49
50 0x00000000|0x00080000
51 gArmTokenSpaceGuid.PcdSecureFvBaseAddress|gArmTokenSpaceGuid.PcdSecureFvSize
52 FV = FVMAIN_SEC
53
54
55 [FD.ArmVExpress_EFI]
56 !if $(EDK2_ARMVE_STANDALONE) == 1
57 BaseAddress = 0x45000000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in NOR Flash.
58 !else
59 BaseAddress = 0x80000000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in remapped DRAM.
60 !endif
61 Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device
62 ErasePolarity = 1
63
64 # This one is tricky, it must be: BlockSize * NumBlocks = Size
65 BlockSize = 0x00001000
66 NumBlocks = 0x200
67
68 ################################################################################
69 #
70 # Following are lists of FD Region layout which correspond to the locations of different
71 # images within the flash device.
72 #
73 # Regions must be defined in ascending order and may not overlap.
74 #
75 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
76 # the pipe "|" character, followed by the size of the region, also in hex with the leading
77 # "0x" characters. Like:
78 # Offset|Size
79 # PcdOffsetCName|PcdSizeCName
80 # RegionType <FV, DATA, or FILE>
81 #
82 ################################################################################
83
84 0x00000000|0x00200000
85 gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
86 FV = FVMAIN_COMPACT
87
88
89 ################################################################################
90 #
91 # FV Section
92 #
93 # [FV] section is used to define what components or modules are placed within a flash
94 # device file. This section also defines order the components and modules are positioned
95 # within the image. The [FV] section consists of define statements, set statements and
96 # module statements.
97 #
98 ################################################################################
99
100 [FV.FVMAIN_SEC]
101 FvAlignment = 8
102 ERASE_POLARITY = 1
103 MEMORY_MAPPED = TRUE
104 STICKY_WRITE = TRUE
105 LOCK_CAP = TRUE
106 LOCK_STATUS = TRUE
107 WRITE_DISABLED_CAP = TRUE
108 WRITE_ENABLED_CAP = TRUE
109 WRITE_STATUS = TRUE
110 WRITE_LOCK_CAP = TRUE
111 WRITE_LOCK_STATUS = TRUE
112 READ_DISABLED_CAP = TRUE
113 READ_ENABLED_CAP = TRUE
114 READ_STATUS = TRUE
115 READ_LOCK_CAP = TRUE
116 READ_LOCK_STATUS = TRUE
117
118 INF ArmPlatformPkg/Sec/Sec.inf
119
120
121 [FV.FvMain]
122 BlockSize = 0x40
123 NumBlocks = 0 # This FV gets compressed so make it just big enough
124 FvAlignment = 8 # FV alignment and FV attributes setting.
125 ERASE_POLARITY = 1
126 MEMORY_MAPPED = TRUE
127 STICKY_WRITE = TRUE
128 LOCK_CAP = TRUE
129 LOCK_STATUS = TRUE
130 WRITE_DISABLED_CAP = TRUE
131 WRITE_ENABLED_CAP = TRUE
132 WRITE_STATUS = TRUE
133 WRITE_LOCK_CAP = TRUE
134 WRITE_LOCK_STATUS = TRUE
135 READ_DISABLED_CAP = TRUE
136 READ_ENABLED_CAP = TRUE
137 READ_STATUS = TRUE
138 READ_LOCK_CAP = TRUE
139 READ_LOCK_STATUS = TRUE
140
141 INF MdeModulePkg/Core/Dxe/DxeMain.inf
142
143 #
144 # PI DXE Drivers producing Architectural Protocols (EFI Services)
145 #
146 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
147 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
148 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
149 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
150 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
151 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
152 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
153 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
154 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
155 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
156
157 #
158 # Multiple Console IO support
159 #
160 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
161 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
162 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
163 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
164 INF EmbeddedPkg/SerialDxe/SerialDxe.inf
165
166 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
167
168 INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
169 INF ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf
170 INF ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
171 INF ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
172 INF ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf
173
174 #
175 # Platform
176 #
177 INF ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmHwDxe.inf
178
179 !if $(EDK2_ARMVE_STANDALONE) != 1
180 #
181 # Semi-hosting filesystem (Required the Hardware Debugger to be connected)
182 #
183 INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
184 !endif
185
186 #
187 # FAT filesystem + GPT/MBR partitioning
188 #
189 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
190 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
191 INF FatBinPkg/EnhancedFatDxe/Fat.inf
192 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
193
194 # Versatile Express FileSystem
195 INF ArmPlatformPkg/FileSystem/BootMonFs/BootMonFs.inf
196
197 #
198 # Multimedia Card Interface
199 #
200 INF EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
201 INF ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
202
203 #
204 # USB support
205 #
206 INF EmbeddedPkg/Drivers/Isp1761UsbDxe/Isp1761UsbDxe.inf
207
208 #
209 # Android Fastboot
210 #
211 INF EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf
212 INF EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
213 INF ArmPlatformPkg/ArmVExpressPkg/ArmVExpressFastBootDxe/ArmVExpressFastBootDxe.inf
214
215 #
216 # UEFI application (Shell Embedded Boot Loader)
217 #
218 INF ShellBinPkg/UefiShell/UefiShell.inf
219
220 #
221 # Bds
222 #
223 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
224 INF ArmPlatformPkg/Bds/Bds.inf
225
226
227 [FV.FVMAIN_COMPACT]
228 FvAlignment = 8
229 ERASE_POLARITY = 1
230 MEMORY_MAPPED = TRUE
231 STICKY_WRITE = TRUE
232 LOCK_CAP = TRUE
233 LOCK_STATUS = TRUE
234 WRITE_DISABLED_CAP = TRUE
235 WRITE_ENABLED_CAP = TRUE
236 WRITE_STATUS = TRUE
237 WRITE_LOCK_CAP = TRUE
238 WRITE_LOCK_STATUS = TRUE
239 READ_DISABLED_CAP = TRUE
240 READ_ENABLED_CAP = TRUE
241 READ_STATUS = TRUE
242 READ_LOCK_CAP = TRUE
243 READ_LOCK_STATUS = TRUE
244
245 !if $(EDK2_SKIP_PEICORE) == 1
246 INF ArmPlatformPkg/PrePi/PeiMPCore.inf
247 !else
248 INF ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
249 INF MdeModulePkg/Core/Pei/PeiMain.inf
250 INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf
251 INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
252 INF ArmPkg/Drivers/CpuPei/CpuPei.inf
253 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
254 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
255 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
256 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
257 !endif
258
259 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
260 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
261 SECTION FV_IMAGE = FVMAIN
262 }
263 }
264
265
266 ################################################################################
267 #
268 # Rules are use with the [FV] section's module INF type to define
269 # how an FFS file is created for a given INF file. The following Rule are the default
270 # rules for the different module type. User can add the customized rules to define the
271 # content of the FFS file.
272 #
273 ################################################################################
274
275
276 ############################################################################
277 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
278 ############################################################################
279 #
280 #[Rule.Common.DXE_DRIVER]
281 # FILE DRIVER = $(NAMED_GUID) {
282 # DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
283 # COMPRESS PI_STD {
284 # GUIDED {
285 # PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
286 # UI STRING="$(MODULE_NAME)" Optional
287 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
288 # }
289 # }
290 # }
291 #
292 ############################################################################
293
294 [Rule.Common.SEC]
295 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
296 TE TE Align = 32 $(INF_OUTPUT)/$(MODULE_NAME).efi
297 }
298
299 [Rule.Common.PEI_CORE]
300 FILE PEI_CORE = $(NAMED_GUID) {
301 TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi
302 UI STRING ="$(MODULE_NAME)" Optional
303 }
304
305 [Rule.Common.PEIM]
306 FILE PEIM = $(NAMED_GUID) {
307 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
308 TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi
309 UI STRING="$(MODULE_NAME)" Optional
310 }
311
312 [Rule.Common.PEIM.TIANOCOMPRESSED]
313 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
314 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
315 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
316 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
317 UI STRING="$(MODULE_NAME)" Optional
318 }
319 }
320
321 [Rule.Common.DXE_CORE]
322 FILE DXE_CORE = $(NAMED_GUID) {
323 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
324 UI STRING="$(MODULE_NAME)" Optional
325 }
326
327 [Rule.Common.UEFI_DRIVER]
328 FILE DRIVER = $(NAMED_GUID) {
329 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
330 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
331 UI STRING="$(MODULE_NAME)" Optional
332 }
333
334 [Rule.Common.DXE_DRIVER]
335 FILE DRIVER = $(NAMED_GUID) {
336 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
337 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
338 UI STRING="$(MODULE_NAME)" Optional
339 }
340
341 [Rule.Common.DXE_RUNTIME_DRIVER]
342 FILE DRIVER = $(NAMED_GUID) {
343 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
344 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
345 UI STRING="$(MODULE_NAME)" Optional
346 }
347
348 [Rule.Common.UEFI_APPLICATION]
349 FILE APPLICATION = $(NAMED_GUID) {
350 UI STRING ="$(MODULE_NAME)" Optional
351 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
352 }
353
354 [Rule.Common.UEFI_DRIVER.BINARY]
355 FILE DRIVER = $(NAMED_GUID) {
356 DXE_DEPEX DXE_DEPEX Optional |.depex
357 PE32 PE32 |.efi
358 UI STRING="$(MODULE_NAME)" Optional
359 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
360 }
361
362 [Rule.Common.UEFI_APPLICATION.BINARY]
363 FILE APPLICATION = $(NAMED_GUID) {
364 PE32 PE32 |.efi
365 UI STRING="$(MODULE_NAME)" Optional
366 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
367 }