Omap35xxPkg/PciEmulation: port to new non-discoverable device infrastructure
[mirror_edk2.git] / BeagleBoardPkg / BeagleBoardPkg.fdf
CommitLineData
0bade105 1# FLASH layout file for Beagle board.\r
2#\r
3# Copyright (c) 2009, Apple Inc. All rights reserved.<BR>\r
3d1ee3c1 4# Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
04fd7859 5# Copyright (c) 2016, Linaro, Ltd. All rights reserved.<BR>\r
0bade105 6#\r
7# This program and the accompanying materials\r
8# are licensed and made available under the terms and conditions of the BSD License\r
9# which accompanies this distribution. The full text of the license may be found at\r
10# http://opensource.org/licenses/bsd-license.php\r
11#\r
12# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14#\r
15\r
16################################################################################\r
17#\r
18# FD Section\r
19# The [FD] Section is made up of the definition statements and a\r
20# description of what goes into the Flash Device Image. Each FD section\r
21# defines one flash "device" image. A flash device image may be one of\r
22# the following: Removable media bootable image (like a boot floppy\r
23# image,) an Option ROM image (that would be "flashed" into an add-in\r
24# card,) a System "Flash" image (that would be burned into a system's\r
25# flash) or an Update ("Capsule") image that will be used to update and\r
26# existing system flash.\r
27#\r
28################################################################################\r
29\r
30\r
31[FD.BeagleBoard_EFI]\r
a1123292 32BaseAddress = 0x80007DF8|gArmTokenSpaceGuid.PcdFdBaseAddress #The base address of the FLASH Device.\r
55b0a24a 33Size = 0x000B0000|gArmTokenSpaceGuid.PcdFdSize #The size in bytes of the FLASH Device\r
0bade105 34ErasePolarity = 1\r
35BlockSize = 0x1\r
55b0a24a 36NumBlocks = 0xB0000\r
0bade105 37\r
38################################################################################\r
39#\r
40# Following are lists of FD Region layout which correspond to the locations of different\r
41# images within the flash device.\r
42#\r
43# Regions must be defined in ascending order and may not overlap.\r
44#\r
45# A Layout Region start with a eight digit hex offset (leading "0x" required) followed by\r
46# the pipe "|" character, followed by the size of the region, also in hex with the leading\r
47# "0x" characters. Like:\r
48# Offset|Size\r
49# PcdOffsetCName|PcdSizeCName\r
50# RegionType <FV, DATA, or FILE>\r
51#\r
52################################################################################\r
a1123292
AB
530x00000000|0x00000200\r
54FILE = BeagleBoardPkg/ConfigurationHeader.bin\r
55\r
560x00000200|0x00000008\r
57DATA = {\r
58 0xF8, 0xFD, 0x0A, 0x00, # image size: 0xB0000 - 0x208 == 0xAFDF8\r
59 0x00, 0x80, 0x00, 0x80 # entry point: 0x80008000\r
60}\r
61\r
620x00000208|0x000AFDF8\r
ff4d6bb3 63gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize\r
0bade105 64FV = FVMAIN_COMPACT\r
65\r
66################################################################################\r
67#\r
68# FV Section\r
69#\r
70# [FV] section is used to define what components or modules are placed within a flash\r
71# device file. This section also defines order the components and modules are positioned\r
72# within the image. The [FV] section consists of define statements, set statements and\r
73# module statements.\r
74#\r
75################################################################################\r
76\r
77[FV.FvMain]\r
78BlockSize = 0x1\r
79NumBlocks = 0 # This FV gets compressed so make it just big enough\r
80FvAlignment = 8 # FV alignment and FV attributes setting.\r
81ERASE_POLARITY = 1\r
82MEMORY_MAPPED = TRUE\r
83STICKY_WRITE = TRUE\r
84LOCK_CAP = TRUE\r
85LOCK_STATUS = TRUE\r
86WRITE_DISABLED_CAP = TRUE\r
87WRITE_ENABLED_CAP = TRUE\r
88WRITE_STATUS = TRUE\r
89WRITE_LOCK_CAP = TRUE\r
90WRITE_LOCK_STATUS = TRUE\r
91READ_DISABLED_CAP = TRUE\r
92READ_ENABLED_CAP = TRUE\r
93READ_STATUS = TRUE\r
94READ_LOCK_CAP = TRUE\r
95READ_LOCK_STATUS = TRUE\r
e6c51eaf 96FvNameGuid = d0dd3e90-343d-4cb3-8f69-772214989282\r
0bade105 97\r
3402aac7 98 INF MdeModulePkg/Core/Dxe/DxeMain.inf\r
0bade105 99\r
100 #\r
3402aac7 101 # PI DXE Drivers producing Architectural Protocols (EFI Services)\r
0bade105 102 #\r
103 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r
3402aac7 104\r
0bade105 105 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
106 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
107 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
108 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
109 INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf\r
110 INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf\r
3402aac7 111\r
0bade105 112 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
113 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
3402aac7 114 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
e497d900 115 INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
3402aac7 116 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
0bade105 117\r
118 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r
119 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r
120 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r
3402aac7 121\r
89a9f54f 122!if $(TARGET) == RELEASE\r
0bade105 123 #\r
124 # Semi-hosting filesystem\r
125 #\r
126 INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf\r
89a9f54f 127!endif\r
3402aac7 128\r
0bade105 129 #\r
130 # Nand Flash\r
131 #\r
132 INF Omap35xxPkg/Flash/Flash.inf\r
133\r
134 #\r
135 # MMC/SD\r
136 #\r
137 INF EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf\r
138 INF Omap35xxPkg/MmcHostDxe/MmcHostDxe.inf\r
3402aac7 139\r
0bade105 140 #\r
141 # I2C\r
142 #\r
143 INF Omap35xxPkg/SmbusDxe/Smbus.inf\r
3402aac7 144\r
0bade105 145 #\r
146 # SoC Drivers\r
147 #\r
148 INF Omap35xxPkg/Gpio/Gpio.inf\r
149 INF Omap35xxPkg/InterruptDxe/InterruptDxe.inf\r
3402aac7 150 INF Omap35xxPkg/TimerDxe/TimerDxe.inf\r
0bade105 151 INF Omap35xxPkg/LcdGraphicsOutputDxe/LcdGraphicsOutputDxe.inf\r
152\r
153 #\r
154 # Power IC\r
155 #\r
156 INF Omap35xxPkg/TPS65950Dxe/TPS65950.inf\r
157\r
158 #\r
159 # FAT filesystem + GPT/MBR partitioning\r
160 #\r
161 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
162 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
3d1ee3c1 163 INF FatPkg/EnhancedFatDxe/Fat.inf\r
0bade105 164 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
165\r
166 #\r
167 # USB Support\r
168 #\r
169\r
170 INF Omap35xxPkg/PciEmulation/PciEmulation.inf\r
04fd7859 171 INF MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe.inf\r
0bade105 172\r
0bade105 173 INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf\r
174 INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf\r
175 INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf\r
176\r
177 #\r
3402aac7
RC
178 # UEFI application (Shell Embedded Boot Loader)\r
179 #\r
581a7aca 180 INF ShellPkg/Application/Shell/Shell.inf\r
0bade105 181\r
182 #\r
183 # Bds\r
184 #\r
185 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
186 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
581a7aca
AB
187 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
188 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
189 INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r
190 INF MdeModulePkg/Application/UiApp/UiApp.inf\r
0bade105 191\r
192\r
193[FV.FVMAIN_COMPACT]\r
194FvAlignment = 8\r
195ERASE_POLARITY = 1\r
196MEMORY_MAPPED = TRUE\r
197STICKY_WRITE = TRUE\r
198LOCK_CAP = TRUE\r
199LOCK_STATUS = TRUE\r
200WRITE_DISABLED_CAP = TRUE\r
201WRITE_ENABLED_CAP = TRUE\r
202WRITE_STATUS = TRUE\r
203WRITE_LOCK_CAP = TRUE\r
204WRITE_LOCK_STATUS = TRUE\r
205READ_DISABLED_CAP = TRUE\r
206READ_ENABLED_CAP = TRUE\r
207READ_STATUS = TRUE\r
208READ_LOCK_CAP = TRUE\r
209READ_LOCK_STATUS = TRUE\r
210\r
211 INF ArmPlatformPkg/PrePi/PeiUniCore.inf\r
212\r
213 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {\r
214 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {\r
215 SECTION FV_IMAGE = FVMAIN\r
216 }\r
217 }\r
218\r
219\r
220################################################################################\r
221#\r
222# Rules are use with the [FV] section's module INF type to define\r
223# how an FFS file is created for a given INF file. The following Rule are the default\r
224# rules for the different module type. User can add the customized rules to define the\r
225# content of the FFS file.\r
226#\r
227################################################################################\r
228\r
229\r
230############################################################################\r
3402aac7 231# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #\r
0bade105 232############################################################################\r
233#\r
234#[Rule.Common.DXE_DRIVER]\r
235# FILE DRIVER = $(NAMED_GUID) {\r
236# DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r
237# COMPRESS PI_STD {\r
238# GUIDED {\r
239# PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r
240# UI STRING="$(MODULE_NAME)" Optional\r
241# VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
242# }\r
243# }\r
244# }\r
245#\r
246############################################################################\r
247\r
248[Rule.Common.SEC]\r
249 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {\r
250 TE TE Align = 32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r
251 }\r
252\r
253[Rule.Common.PEI_CORE]\r
254 FILE PEI_CORE = $(NAMED_GUID) {\r
255 TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi\r
3402aac7 256 UI STRING ="$(MODULE_NAME)" Optional\r
0bade105 257 }\r
258\r
259[Rule.Common.PEIM]\r
260 FILE PEIM = $(NAMED_GUID) {\r
261 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r
262 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r
3402aac7 263 UI STRING="$(MODULE_NAME)" Optional\r
0bade105 264 }\r
265\r
266[Rule.Common.PEIM.TIANOCOMPRESSED]\r
267 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {\r
268 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r
269 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {\r
270 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r
271 UI STRING="$(MODULE_NAME)" Optional\r
272 }\r
273 }\r
274\r
275[Rule.Common.DXE_CORE]\r
276 FILE DXE_CORE = $(NAMED_GUID) {\r
277 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r
278 UI STRING="$(MODULE_NAME)" Optional\r
279 }\r
280\r
281\r
282[Rule.Common.UEFI_DRIVER]\r
283 FILE DRIVER = $(NAMED_GUID) {\r
284 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r
285 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r
286 UI STRING="$(MODULE_NAME)" Optional\r
287 }\r
288\r
289[Rule.Common.DXE_DRIVER]\r
290 FILE DRIVER = $(NAMED_GUID) {\r
291 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r
292 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r
293 UI STRING="$(MODULE_NAME)" Optional\r
294 }\r
295\r
296[Rule.Common.DXE_RUNTIME_DRIVER]\r
297 FILE DRIVER = $(NAMED_GUID) {\r
298 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r
299 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r
300 UI STRING="$(MODULE_NAME)" Optional\r
301 }\r
302\r
0bade105 303[Rule.Common.UEFI_APPLICATION]\r
304 FILE APPLICATION = $(NAMED_GUID) {\r
3402aac7 305 UI STRING ="$(MODULE_NAME)" Optional\r
0bade105 306 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r
307 }\r
e1772adf 308\r
309[Rule.Common.UEFI_DRIVER.BINARY]\r
310 FILE DRIVER = $(NAMED_GUID) {\r
311 DXE_DEPEX DXE_DEPEX Optional |.depex\r
312 PE32 PE32 |.efi\r
313 UI STRING="$(MODULE_NAME)" Optional\r
314 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
315 }\r
316\r
317[Rule.Common.UEFI_APPLICATION.BINARY]\r
318 FILE APPLICATION = $(NAMED_GUID) {\r
319 PE32 PE32 |.efi\r
320 UI STRING="$(MODULE_NAME)" Optional\r
321 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
322 }\r