CorebootPayloadPkg: Add OHCI driver
[mirror_edk2.git] / CorebootPayloadPkg / CorebootPayloadPkg.fdf
1 ## @file
2 # Coreboot Payload Package
3 #
4 # Provides drivers and definitions to create uefi payload for coreboot.
5 #
6 # Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
7 # This program and the accompanying materials are licensed and made available under
8 # the terms and conditions of the BSD License that accompanies this distribution.
9 # The full text of the license may be found at
10 # http://opensource.org/licenses/bsd-license.php.
11 #
12 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 #
15 ##
16
17 ################################################################################
18 [FD.UefiPayload]
19 BaseAddress = 0x800000|gUefiCorebootModulePkgTokenSpaceGuid.PcdPayloadFdMemBase
20 Size = 0x410000|gUefiCorebootModulePkgTokenSpaceGuid.PcdPayloadFdMemSize
21 ErasePolarity = 1
22 BlockSize = 0x1000
23 NumBlocks = 0x410
24
25 0x00000000|0x030000
26 FV = PEIFV
27
28 0x00030000|0x3E0000
29 FV = DXEFV
30
31 ################################################################################
32 [FV.PEIFV]
33 BlockSize = 0x1000
34 FvAlignment = 16
35 ERASE_POLARITY = 1
36 MEMORY_MAPPED = TRUE
37 STICKY_WRITE = TRUE
38 LOCK_CAP = TRUE
39 LOCK_STATUS = TRUE
40 WRITE_DISABLED_CAP = TRUE
41 WRITE_ENABLED_CAP = TRUE
42 WRITE_STATUS = TRUE
43 WRITE_LOCK_CAP = TRUE
44 WRITE_LOCK_STATUS = TRUE
45 READ_DISABLED_CAP = TRUE
46 READ_ENABLED_CAP = TRUE
47 READ_STATUS = TRUE
48 READ_LOCK_CAP = TRUE
49 READ_LOCK_STATUS = TRUE
50
51 INF CorebootModulePkg/SecCore/SecCore.inf
52
53 INF MdeModulePkg/Core/Pei/PeiMain.inf
54 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
55 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
56 INF CorebootModulePkg/CbSupportPei/CbSupportPei.inf
57 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
58
59 ################################################################################
60
61 [FV.DXEFV]
62 BlockSize = 0x1000
63 FvAlignment = 16
64 ERASE_POLARITY = 1
65 MEMORY_MAPPED = TRUE
66 STICKY_WRITE = TRUE
67 LOCK_CAP = TRUE
68 LOCK_STATUS = TRUE
69 WRITE_DISABLED_CAP = TRUE
70 WRITE_ENABLED_CAP = TRUE
71 WRITE_STATUS = TRUE
72 WRITE_LOCK_CAP = TRUE
73 WRITE_LOCK_STATUS = TRUE
74 READ_DISABLED_CAP = TRUE
75 READ_ENABLED_CAP = TRUE
76 READ_STATUS = TRUE
77 READ_LOCK_CAP = TRUE
78 READ_LOCK_STATUS = TRUE
79
80 #
81 # DXE Phase modules
82 #
83 INF MdeModulePkg/Core/Dxe/DxeMain.inf
84 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
85 INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
86
87 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
88 INF UefiCpuPkg/CpuDxe/CpuDxe.inf
89 INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
90 INF PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
91 INF MdeModulePkg/Universal/Metronome/Metronome.inf
92 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
93 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
94 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
95 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
96 INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
97 INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
98 INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
99
100 INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
101 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
102 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
103 INF PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
104 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
105 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
106 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
107 INF CorebootModulePkg/CbSupportDxe/CbSupportDxe.inf
108
109 INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
110 #
111 # PCI Support
112 #
113 INF CorebootModulePkg/PciRootBridgeNoEnumerationDxe/PciRootBridgeNoEnumeration.inf
114 INF CorebootModulePkg/PciBusNoEnumerationDxe/PciBusNoEnumeration.inf
115 INF CorebootModulePkg/PciSioSerialDxe/PciSioSerialDxe.inf
116
117 #
118 # ISA Support
119 #
120 INF CorebootModulePkg/SerialDxe/SerialDxe.inf
121
122 #
123 # Console Support
124 #
125 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
126 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
127 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
128 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
129
130 #
131 # SCSI/ATA/IDE/DISK Support
132 #
133 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
134 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
135 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
136 INF CorebootModulePkg/SataControllerDxe/SataControllerDxe.inf
137 INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
138 INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
139 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
140 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
141
142 INF FatPkg/EnhancedFatDxe/Fat.inf
143
144 #
145 # SD/eMMC Support
146 #
147 INF MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
148 INF MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
149 INF MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
150
151 #
152 # Usb Support
153 #
154 INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
155 INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
156 INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
157 INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
158 INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
159 INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
160
161 #
162 # OHCI Support
163 #
164 INF QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/OhciDxe.inf
165
166 #
167 # Shell
168 #
169 !if $(SHELL_TYPE) == BUILD_SHELL
170 INF ShellPkg/Application/Shell/Shell.inf
171 !endif
172
173 !if $(SHELL_TYPE) == FULL_BIN
174 !if $(ARCH) == IA32
175 INF RuleOverride = BINARY USE = IA32 EdkShellBinPkg/FullShell/FullShell.inf
176 !else
177 INF RuleOverride = BINARY USE = X64 EdkShellBinPkg/FullShell/FullShell.inf
178 !endif
179 !endif
180
181 !if $(SHELL_TYPE) == MIN_BIN
182 !if $(ARCH) == IA32
183 INF RuleOverride = BINARY USE = IA32 ShellBinPkg/MinUefiShell/MinUefiShell.inf
184 !else
185 INF RuleOverride = BINARY USE = X64 ShellBinPkg/MinUefiShell/MinUefiShell.inf
186 !endif
187 !endif
188
189 !if $(SHELL_TYPE) == UEFI_BIN
190 !if $(ARCH) == IA32
191 INF RuleOverride = BINARY USE = IA32 ShellBinPkg/UefiShell/UefiShell.inf
192 !else
193 INF RuleOverride = BINARY USE = X64 ShellBinPkg/UefiShell/UefiShell.inf
194 !endif
195 !endif
196
197 FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
198 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
199 }
200
201 #
202 # Framebuffer Gop
203 #
204 INF CorebootPayloadPkg/FbGop/FbGop.inf
205
206 ################################################################################
207 #
208 # Rules are use with the [FV] section's module INF type to define
209 # how an FFS file is created for a given INF file. The following Rule are the default
210 # rules for the different module type. User can add the customized rules to define the
211 # content of the FFS file.
212 #
213 ################################################################################
214
215 [Rule.Common.SEC]
216 FILE SEC = $(NAMED_GUID) {
217 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
218 }
219
220 [Rule.Common.PEI_CORE]
221 FILE PEI_CORE = $(NAMED_GUID) {
222 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
223 UI STRING ="$(MODULE_NAME)" Optional
224 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
225 }
226
227 [Rule.Common.PEIM]
228 FILE PEIM = $(NAMED_GUID) {
229 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
230 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
231 UI STRING="$(MODULE_NAME)" Optional
232 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
233 }
234
235 [Rule.Common.DXE_CORE]
236 FILE DXE_CORE = $(NAMED_GUID) {
237 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
238 UI STRING="$(MODULE_NAME)" Optional
239 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
240 }
241
242 [Rule.Common.DXE_DRIVER]
243 FILE DRIVER = $(NAMED_GUID) {
244 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
245 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
246 UI STRING="$(MODULE_NAME)" Optional
247 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
248 }
249
250 [Rule.Common.DXE_RUNTIME_DRIVER]
251 FILE DRIVER = $(NAMED_GUID) {
252 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
253 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
254 UI STRING="$(MODULE_NAME)" Optional
255 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
256 }
257
258 [Rule.Common.UEFI_DRIVER]
259 FILE DRIVER = $(NAMED_GUID) {
260 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
261 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
262 UI STRING="$(MODULE_NAME)" Optional
263 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
264 }
265
266 [Rule.Common.UEFI_DRIVER.BINARY]
267 FILE DRIVER = $(NAMED_GUID) {
268 DXE_DEPEX DXE_DEPEX Optional |.depex
269 PE32 PE32 |.efi
270 UI STRING="$(MODULE_NAME)" Optional
271 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
272 }
273
274 [Rule.Common.UEFI_APPLICATION]
275 FILE APPLICATION = $(NAMED_GUID) {
276 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
277 UI STRING="$(MODULE_NAME)" Optional
278 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
279 }
280
281 [Rule.Common.UEFI_APPLICATION.BINARY]
282 FILE APPLICATION = $(NAMED_GUID) {
283 PE32 PE32 |.efi
284 UI STRING="$(MODULE_NAME)" Optional
285 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
286 }
287
288 [Rule.Common.USER_DEFINED.ACPITABLE]
289 FILE FREEFORM = $(NAMED_GUID) {
290 RAW ACPI |.acpi
291 RAW ASL |.aml
292 }
293
294 [Rule.Common.USER_DEFINED.CSM]
295 FILE FREEFORM = $(NAMED_GUID) {
296 RAW BIN |.bin
297 }
298
299 [Rule.Common.SEC.RESET_VECTOR]
300 FILE RAW = $(NAMED_GUID) {
301 RAW RAW |.raw
302 }