Debian Codegraph @

src/soc/amd/mendocino/Makefile.mk

raw symbols SCIP
1 # SPDX-License-Identifier: BSD-3-Clause
2
3 ifeq ($(CONFIG_SOC_AMD_MENDOCINO),y)
4
5 subdirs-$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK) += psp_verstage
6
7 # Beware that all-y also adds the compilation unit to verstage on PSP
8 all-y += aoac.c
9 all-y += config.c
10 all-y += i2c.c
11
12 # all_x86-y adds the compilation unit to all stages that run on the x86 cores
13 all_x86-y += gpio.c
14 all_x86-y += i3c.c
15 all_x86-y += uart.c
16
17 bootblock-y += early_fch.c
18 bootblock-y += espi_util.c
19
20 verstage-y += espi_util.c
21
22 romstage-y += fsp_m_params.c
23
24 ramstage-y += acpi.c
25 ramstage-y += chip.c
26 ramstage-y += cpu.c
27 ramstage-y += fch.c
28 ramstage-y += fsp_misc_data_hob.c
29 ramstage-y += fsp_s_params.c
30 ramstage-y += mca.c
31 ramstage-y += memmap.c
32 ramstage-y += root_complex.c
33 ramstage-y += xhci.c
34 ramstage-y += manifest.c
35
36 smm-y += gpio.c
37 smm-y += root_complex.c
38 smm-y += smihandler.c
39 smm-$(CONFIG_DEBUG_SMI) += uart.c
40
41 CPPFLAGS_common += -I$(src)/soc/amd/mendocino/include
42 CPPFLAGS_common += -I$(src)/soc/amd/mendocino/acpi
43 CPPFLAGS_common += -I$(src)/vendorcode/amd/fsp/mendocino
44 CPPFLAGS_common += -I$(src)/vendorcode/amd/fsp/common
45
46 # Building the cbfs image will fail if the offset, aligned to 64 bytes, isn't large enough
47 ifeq ($(CONFIG_CBFS_VERIFICATION),y)
48 # 0x80 accounts for the cbfs_file struct + filename + metadata structs
49 AMD_FW_AB_POSITION := 0x80
50 else # ($(CONFIG_CBFS_VERIFICATION), y)
51 # 0x40 accounts for the cbfs_file struct + filename + metadata structs without hash attribute
52 AMD_FW_AB_POSITION := 0x40
53 endif # ($(CONFIG_CBFS_VERIFICATION), y)
54
55 MENDOCINO_FW_A_POSITION=$(call int-add, \
56 $(call get_fmap_value,FMAP_SECTION_FW_MAIN_A_START) $(AMD_FW_AB_POSITION))
57
58 MENDOCINO_FW_B_POSITION=$(call int-add, \
59 $(call get_fmap_value,FMAP_SECTION_FW_MAIN_B_START) $(AMD_FW_AB_POSITION))
60
61 MENDOCINO_FW_BODY_OFFSET := 0x100
62
63 #
64 # PSP Directory Table items
65 #
66 # Certain ordering requirements apply, however these are ensured by amdfwtool.
67 # For more information see "AMD Platform Security Processor BIOS Architecture
68 # Design Guide for AMD Family 17h Processors" (PID #55758, NDA only).
69 #
70
71 ifeq ($(CONFIG_PSP_DISABLE_POSTCODES),y)
72 PSP_SOFTFUSE_BITS += 7
73 endif
74
75 ifeq ($(CONFIG_PSP_UNLOCK_SECURE_DEBUG),y)
76 # Enable secure debug unlock
77 PSP_SOFTFUSE_BITS += 0
78 OPT_TOKEN_UNLOCK="--token-unlock"
79 endif
80
81 ifeq ($(CONFIG_PSP_LOAD_MP2_FW),y)
82 OPT_PSP_LOAD_MP2_FW="--load-mp2-fw"
83 else
84 # Disable MP2 firmware loading
85 PSP_SOFTFUSE_BITS += 29
86 endif
87
88 # Use additional Soft Fuse bits specified in Kconfig
89 PSP_SOFTFUSE_BITS += $(call strip_quotes, $(CONFIG_PSP_SOFTFUSE_BITS))
90 PSP_RO_SOFTFUSE_BITS=$(PSP_SOFTFUSE_BITS)
91
92 # type = 0x04
93 # The flashmap section used for this is expected to be named PSP_NVRAM
94 PSP_NVRAM_BASE=$(call get_fmap_value,FMAP_SECTION_PSP_NVRAM_START)
95 PSP_NVRAM_SIZE=$(call get_fmap_value,FMAP_SECTION_PSP_NVRAM_SIZE)
96
97 # type = 0x3a
98 ifeq ($(CONFIG_HAVE_PSP_WHITELIST_FILE),y)
99 PSP_WHITELIST_FILE=$(CONFIG_PSP_WHITELIST_FILE)
100 endif
101
102 # type = 0x54
103 # The flashmap section used for this is expected to be named PSP_RPMC_NVRAM
104 PSP_RPMC_NVRAM_BASE=$(call get_fmap_value,FMAP_SECTION_PSP_RPMC_NVRAM_START)
105 PSP_RPMC_NVRAM_SIZE=$(call get_fmap_value,FMAP_SECTION_PSP_RPMC_NVRAM_SIZE)
106
107 # type = 0x55
108 SPL_TABLE_FILE=$(CONFIG_SPL_TABLE_FILE)
109 ifeq ($(CONFIG_HAVE_SPL_RW_AB_FILE),y)
110 SPL_RW_AB_TABLE_FILE=$(CONFIG_SPL_RW_AB_TABLE_FILE)
111 else
112 SPL_RW_AB_TABLE_FILE=$(CONFIG_SPL_TABLE_FILE)
113 endif
114
115 #
116 # BIOS Directory Table items - proper ordering is managed by amdfwtool
117 #
118
119 # type = 0x60
120 PSP_APCB_FILES=$(APCB_SOURCES) $(APCB_SOURCES_RECOVERY)
121
122 # type = 0x61
123 PSP_APOB_BASE=$(CONFIG_PSP_APOB_DRAM_ADDRESS)
124
125 # type = 0x62
126 PSP_BIOSBIN_FILE=$(obj)/amd_biospsp.img
127 PSP_ELF_FILE=$(objcbfs)/bootblock_fixed_data.elf
128 PSP_BIOSBIN_SIZE=$(shell $(READELF_bootblock) -Wl $(PSP_ELF_FILE) | grep LOAD | awk '{print $$5}')
129 PSP_BIOSBIN_DEST=$(shell $(READELF_bootblock) -Wl $(PSP_ELF_FILE) | grep LOAD | awk '{print $$3}')
130
131 ifneq ($(CONFIG_SOC_AMD_COMMON_BLOCK_APOB_NV_DISABLE),y)
132 # type = 0x63 - construct APOB NV base/size from flash map
133 # The flashmap section used for this is expected to be named RW_MRC_CACHE
134 APOB_NV_SIZE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_SIZE)
135 APOB_NV_BASE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_START)
136
137 ifeq ($(CONFIG_HAS_RECOVERY_MRC_CACHE)$(CONFIG_VBOOT),yy)
138 # On boards with recovery MRC cache, point type 0x63 entry to RECOVERY_MRC_CACHE.
139 # Else use RW_MRC_CACHE. This entry will be added in the RO section.
140 APOB_NV_RO_SIZE=$(call get_fmap_value,FMAP_SECTION_RECOVERY_MRC_CACHE_SIZE)
141 APOB_NV_RO_BASE=$(call get_fmap_value,FMAP_SECTION_RECOVERY_MRC_CACHE_START)
142 else
143 APOB_NV_RO_SIZE=$(APOB_NV_SIZE)
144 APOB_NV_RO_BASE=$(APOB_NV_BASE)
145 endif
146 endif # !CONFIG_SOC_AMD_COMMON_BLOCK_APOB_NV_DISABLE
147
148 ifeq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
149 # type = 0x6B - PSP Shared memory location
150 ifneq ($(CONFIG_PSP_SHAREDMEM_SIZE),0x0)
151 PSP_SHAREDMEM_SIZE=$(CONFIG_PSP_SHAREDMEM_SIZE)
152 PSP_SHAREDMEM_BASE=$(shell awk '$$3 == "_psp_sharedmem_dram" {printf "0x" $$1}' $(objcbfs)/bootblock.map)
153 endif
154
155 # type = 0x52 - PSP Bootloader Userspace Application (verstage)
156 PSP_VERSTAGE_FILE=$(call strip_quotes,$(CONFIG_PSP_VERSTAGE_FILE))
157 PSP_VERSTAGE_SIG_FILE=$(call strip_quotes,$(CONFIG_PSP_VERSTAGE_SIGNING_TOKEN))
158 endif # CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK
159
160 ifeq ($(CONFIG_SEPARATE_SIGNED_PSPFW),y)
161 SIGNED_AMDFW_A_POSITION=$(call get_fmap_value,FMAP_SECTION_SIGNED_AMDFW_A_START)
162 SIGNED_AMDFW_B_POSITION=$(call get_fmap_value,FMAP_SECTION_SIGNED_AMDFW_B_START)
163 SIGNED_AMDFW_A_FILE=$(obj)/amdfw_a.rom.body.signed
164 SIGNED_AMDFW_B_FILE=$(obj)/amdfw_b.rom.body.signed
165 endif # CONFIG_SEPARATE_SIGNED_PSPFW
166
167 # Helper function to return a value with given bit set
168 # Soft Fuse type = 0xb - See #55758 (NDA) for bit definitions.
169 set-bit=$(call int-shift-left, 1 $(call _toint,$1))
170 PSP_SOFTFUSE=$(shell A=$(call int-add, \
171 $(foreach bit,$(sort $(PSP_SOFTFUSE_BITS)),$(call set-bit,$(bit)))); printf "0x%x" $$A)
172 PSP_RO_SOFTFUSE=$(shell A=$(call int-add, \
173 $(foreach bit,$(sort $(PSP_RO_SOFTFUSE_BITS)),$(call set-bit,$(bit)))); printf "0x%x" $$A)
174
175 #
176 # Build the arguments to amdfwtool (order is unimportant). Missing file names
177 # result in empty OPT_ variables, i.e. the argument is not passed to amdfwtool.
178 #
179
180 add_opt_prefix=$(if $(call strip_quotes, $(1)), $(2) $(call strip_quotes, $(1)), )
181
182 OPT_PSP_NVRAM_BASE=$(call add_opt_prefix, $(PSP_NVRAM_BASE), --nvram-base)
183 OPT_PSP_NVRAM_SIZE=$(call add_opt_prefix, $(PSP_NVRAM_SIZE), --nvram-size)
184
185 OPT_PSP_RPMC_NVRAM_BASE=$(call add_opt_prefix, $(PSP_RPMC_NVRAM_BASE), --rpmc-nvram-base)
186 OPT_PSP_RPMC_NVRAM_SIZE=$(call add_opt_prefix, $(PSP_RPMC_NVRAM_SIZE), --rpmc-nvram-size)
187
188 OPT_VERSTAGE_FILE=$(call add_opt_prefix, $(PSP_VERSTAGE_FILE), --verstage)
189 OPT_VERSTAGE_SIG_FILE=$(call add_opt_prefix, $(PSP_VERSTAGE_SIG_FILE), --verstage_sig)
190
191 OPT_PSP_APCB_FILES= $(if $(APCB_SOURCES), --instance 0 --apcb $(APCB_SOURCES)) \
192 $(if $(APCB_SOURCES_RECOVERY), --instance 10 --apcb $(APCB_SOURCES_RECOVERY)) \
193 $(if $(APCB_SOURCES_68), --instance 18 --apcb $(APCB_SOURCES_68))
194
195 OPT_APOB_ADDR=$(call add_opt_prefix, $(PSP_APOB_BASE), --apob-base)
196 OPT_PSP_BIOSBIN_FILE=$(call add_opt_prefix, $(PSP_BIOSBIN_FILE), --bios-bin)
197 OPT_PSP_BIOSBIN_DEST=$(call add_opt_prefix, $(PSP_BIOSBIN_DEST), --bios-bin-dest)
198 OPT_PSP_BIOSBIN_SIZE=$(call add_opt_prefix, $(PSP_BIOSBIN_SIZE), --bios-uncomp-size)
199
200 OPT_PSP_SHAREDMEM_BASE=$(call add_opt_prefix, $(PSP_SHAREDMEM_BASE), --sharedmem)
201 OPT_PSP_SHAREDMEM_SIZE=$(call add_opt_prefix, $(PSP_SHAREDMEM_SIZE), --sharedmem-size)
202 OPT_APOB_NV_SIZE=$(call add_opt_prefix, $(APOB_NV_SIZE), --apob-nv-size)
203 OPT_APOB_NV_BASE=$(call add_opt_prefix, $(APOB_NV_BASE),--apob-nv-base)
204 OPT_APOB_NV_RO_SIZE=$(call add_opt_prefix, $(APOB_NV_RO_SIZE), --apob-nv-size)
205 OPT_APOB_NV_RO_BASE=$(call add_opt_prefix, $(APOB_NV_RO_BASE),--apob-nv-base)
206 OPT_EFS_SPI_READ_MODE=$(call add_opt_prefix, $(CONFIG_EFS_SPI_READ_MODE), --spi-read-mode)
207 OPT_EFS_SPI_SPEED=$(call add_opt_prefix, $(CONFIG_EFS_SPI_SPEED), --spi-speed)
208 OPT_EFS_SPI_MICRON_FLAG=$(call add_opt_prefix, $(CONFIG_EFS_SPI_MICRON_FLAG), --spi-micron-flag)
209
210 OPT_SIGNED_AMDFW_A_POSITION=$(call add_opt_prefix, $(SIGNED_AMDFW_A_POSITION), --signed-addr)
211 OPT_SIGNED_AMDFW_A_FILE=$(call add_opt_prefix, $(SIGNED_AMDFW_A_FILE), --signed-output)
212 OPT_SIGNED_AMDFW_B_POSITION=$(call add_opt_prefix, $(SIGNED_AMDFW_B_POSITION), --signed-addr)
213 OPT_SIGNED_AMDFW_B_FILE=$(call add_opt_prefix, $(SIGNED_AMDFW_B_FILE), --signed-output)
214
215 OPT_PSP_SOFTFUSE=$(call add_opt_prefix, $(PSP_SOFTFUSE), --soft-fuse)
216 OPT_PSP_RO_SOFTFUSE=$(call add_opt_prefix, $(PSP_RO_SOFTFUSE), --soft-fuse)
217
218 OPT_WHITELIST_FILE=$(call add_opt_prefix, $(PSP_WHITELIST_FILE), --whitelist)
219 OPT_SPL_TABLE_FILE=$(call add_opt_prefix, $(SPL_TABLE_FILE), --spl-table)
220 OPT_SPL_RW_AB_TABLE_FILE=$(call add_opt_prefix, $(SPL_RW_AB_TABLE_FILE), --spl-table)
221
222 # If vboot uses 2 RW slots, then 2 copies of PSP binaries are redundant
223 OPT_RECOVERY_AB_SINGLE_COPY=$(if $(CONFIG_VBOOT_SLOTS_RW_AB), --recovery-ab-single-copy)
224
225 MANIFEST_FILE=$(obj)/amdfw_manifest
226 OPT_MANIFEST=$(call add_opt_prefix, $(MANIFEST_FILE), --output-manifest)
227
228 AMDFW_COMMON_ARGS=$(OPT_PSP_APCB_FILES) \
229 $(OPT_PSP_NVRAM_BASE) \
230 $(OPT_PSP_NVRAM_SIZE) \
231 $(OPT_PSP_RPMC_NVRAM_BASE) \
232 $(OPT_PSP_RPMC_NVRAM_SIZE) \
233 $(OPT_APOB_ADDR) \
234 $(OPT_DEBUG_AMDFWTOOL) \
235 $(OPT_PSP_BIOSBIN_FILE) \
236 $(OPT_PSP_BIOSBIN_DEST) \
237 $(OPT_PSP_BIOSBIN_SIZE) \
238 --use-pspsecureos \
239 --load-s0i3 \
240 $(OPT_TOKEN_UNLOCK) \
241 $(OPT_WHITELIST_FILE) \
242 $(OPT_PSP_SHAREDMEM_BASE) \
243 $(OPT_PSP_SHAREDMEM_SIZE) \
244 $(OPT_EFS_SPI_READ_MODE) \
245 $(OPT_EFS_SPI_SPEED) \
246 $(OPT_EFS_SPI_MICRON_FLAG) \
247 --config $(CONFIG_AMDFW_CONFIG_FILE) \
248 --flashsize $(CONFIG_ROM_SIZE) \
249 $(OPT_RECOVERY_AB_SINGLE_COPY)
250
251 # If vBOOT is not enabled, we want the MP2 firmware in the common AMDFW
252 ifeq ($(CONFIG_VBOOT),)
253 AMDFW_COMMON_ARGS += $(OPT_PSP_LOAD_MP2_FW)
254 OPT_PSP_LOAD_MP2_FW =
255 else
256 # Disable MP2 FW loading in VBOOT RO
257 PSP_RO_SOFTFUSE_BITS += 29
258 endif
259
260 $(obj)/amdfw.rom: $(call strip_quotes, $(PSP_BIOSBIN_FILE)) \
261 $(PSP_VERSTAGE_FILE) \
262 $(PSP_VERSTAGE_SIG_FILE) \
263 $$(PSP_APCB_FILES) \
264 $(DEP_FILES) \
265 $(AMDFWTOOL) \
266 $(obj)/fmap_config.h \
267 $(objcbfs)/bootblock_fixed_data.elf # this target also creates the .map file
268 rm -f $@
269 @printf " AMDFWTOOL $(subst $(obj)/,,$(@))\n"
270 $(AMDFWTOOL) \
271 $(AMDFW_COMMON_ARGS) \
272 $(OPT_APOB_NV_RO_SIZE) \
273 $(OPT_APOB_NV_RO_BASE) \
274 $(OPT_VERSTAGE_FILE) \
275 $(OPT_VERSTAGE_SIG_FILE) \
276 $(OPT_SPL_TABLE_FILE) \
277 $(OPT_MANIFEST) \
278 $(OPT_PSP_RO_SOFTFUSE) \
279 --location $(CONFIG_AMD_FWM_POSITION) \
280 --output $@
281
282 ifeq ($(CONFIG_CBFS_VERIFICATION)$(CONFIG_VBOOT_STARTS_IN_BOOTBLOCK),yy)
283 $(PSP_BIOSBIN_FILE): $(PSP_ELF_FILE)
284 rm -f $@
285 $(OBJCOPY_bootblock) -O binary $< $@
286 else
287 #
288 # Extracts everything from the ELF's first PT_LOAD area and compresses it.
289 # This discards everything before PT_LOAD, every symbol, debug information
290 # and relocations. The generated binary is expected to run at PSP_BIOSBIN_DEST
291 # with a maximum size of PSP_BIOSBIN_SIZE. The entrypoint is fixed at
292 # PSP_BIOSBIN_DEST + PSP_BIOSBIN_SIZE - 0x10.
293 #
294 $(PSP_BIOSBIN_FILE): $(PSP_ELF_FILE) $(AMDCOMPRESS)
295 rm -f $@
296 @printf " AMDCOMPRS $(subst $(obj)/,,$(@))\n"
297 $(AMDCOMPRESS) --infile $(PSP_ELF_FILE) --outfile $@ --compress \
298 --maxsize $(PSP_BIOSBIN_SIZE)
299 endif
300
301 $(obj)/amdfw_a.rom: $(obj)/amdfw.rom
302 rm -f $@
303 @printf " AMDFWTOOL $(subst $(obj)/,,$(@))\n"
304 $(AMDFWTOOL) \
305 $(AMDFW_COMMON_ARGS) \
306 $(OPT_APOB_NV_SIZE) \
307 $(OPT_APOB_NV_BASE) \
308 $(OPT_SPL_RW_AB_TABLE_FILE) \
309 $(OPT_SIGNED_AMDFW_A_POSITION) \
310 $(OPT_SIGNED_AMDFW_A_FILE) \
311 $(OPT_PSP_LOAD_MP2_FW) \
312 $(OPT_PSP_SOFTFUSE) \
313 --location $(call _tohex,$(MENDOCINO_FW_A_POSITION)) \
314 --body-location $(call _tohex,$$(($(MENDOCINO_FW_A_POSITION) + $(MENDOCINO_FW_BODY_OFFSET)))) \
315 --anywhere \
316 --output $@
317
318 $(obj)/amdfw_b.rom: $(obj)/amdfw.rom
319 rm -f $@
320 @printf " AMDFWTOOL $(subst $(obj)/,,$(@))\n"
321 $(AMDFWTOOL) \
322 $(AMDFW_COMMON_ARGS) \
323 $(OPT_APOB_NV_SIZE) \
324 $(OPT_APOB_NV_BASE) \
325 $(OPT_SPL_RW_AB_TABLE_FILE) \
326 $(OPT_SIGNED_AMDFW_B_POSITION) \
327 $(OPT_SIGNED_AMDFW_B_FILE) \
328 $(OPT_PSP_LOAD_MP2_FW) \
329 $(OPT_PSP_SOFTFUSE) \
330 --location $(call _tohex,$(MENDOCINO_FW_B_POSITION)) \
331 --body-location $(call _tohex,$$(($(MENDOCINO_FW_B_POSITION) + $(MENDOCINO_FW_BODY_OFFSET)))) \
332 --anywhere \
333 --output $@
334
335 $(obj)/amdfw_a.rom.body: $(obj)/amdfw_a.rom
336 $(obj)/amdfw_b.rom.body: $(obj)/amdfw_b.rom
337
338 $(MANIFEST_FILE): $(obj)/amdfw.rom
339 cbfs-files-y += amdfw_manifest
340 amdfw_manifest-file := $(MANIFEST_FILE)
341 amdfw_manifest-type := raw
342
343 ifeq ($(CONFIG_VBOOT_SLOTS_RW_A)$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),yy)
344 cbfs-files-y += apu/amdfw_a
345 apu/amdfw_a-file := $(obj)/amdfw_a.rom
346 apu/amdfw_a-position := $(AMD_FW_AB_POSITION)
347 apu/amdfw_a-type := raw
348
349 cbfs-files-y += apu/amdfw_a_body
350 apu/amdfw_a_body-file := $(obj)/amdfw_a.rom.body
351 apu/amdfw_a_body-position := $(call int-add, $(AMD_FW_AB_POSITION) $(MENDOCINO_FW_BODY_OFFSET))
352 apu/amdfw_a_body-type := raw
353 endif
354
355 ifeq ($(CONFIG_VBOOT_SLOTS_RW_AB)$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),yy)
356 cbfs-files-y += apu/amdfw_b
357 apu/amdfw_b-file := $(obj)/amdfw_b.rom
358 apu/amdfw_b-position := $(AMD_FW_AB_POSITION)
359 apu/amdfw_b-type := raw
360
361 cbfs-files-y += apu/amdfw_b_body
362 apu/amdfw_b_body-file := $(obj)/amdfw_b.rom.body
363 apu/amdfw_b_body-position := $(call int-add, $(AMD_FW_AB_POSITION) $(MENDOCINO_FW_BODY_OFFSET))
364 apu/amdfw_b_body-type := raw
365 endif
366
367 ifeq ($(CONFIG_SEPARATE_SIGNED_PSPFW)$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),yy)
368 build_complete:: $(obj)/amdfw_a.rom.body $(obj)/amdfw_b.rom.body
369 @printf " Adding Signed ROM and HASH\n"
370 $(CBFSTOOL) $(obj)/coreboot.rom write -u -r SIGNED_AMDFW_A -i 0 -f $(obj)/amdfw_a.rom.body.signed
371 $(CBFSTOOL) $(obj)/coreboot.rom write -u -r SIGNED_AMDFW_B -i 0 -f $(obj)/amdfw_b.rom.body.signed
372 $(CBFSTOOL) $(obj)/coreboot.rom add -r FW_MAIN_A -f $(obj)/amdfw_a.rom.body.signed.hash \
373 -n apu/amdfw_a_hash -t raw
374 $(CBFSTOOL) $(obj)/coreboot.rom add -r FW_MAIN_B -f $(obj)/amdfw_b.rom.body.signed.hash \
375 -n apu/amdfw_b_hash -t raw
376 endif
377
378 # Add ranges for all components up until the first segment of BIOS to be verified by GSC
379 ifeq ($(CONFIG_VBOOT_GSCVD),y)
380 # Adding range for Bootblock
381 vboot-gscvd-ranges += $(call amdfwread-range-cmd,BIOSL2: 0x62)
382 # Adding range for PSP Stage1 Bootloader
383 vboot-gscvd-ranges += $(call amdfwread-range-cmd,PSPL2: 0x01)
384
385 ifeq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
386 # Adding range for PSP Verstage
387 vboot-gscvd-ranges += $(call amdfwread-range-cmd,PSPL2: 0x52)
388 endif # ifeq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
389 endif # ifeq ($(CONFIG_VBOOT_GSCVD),y)
390
391 endif # ($(CONFIG_SOC_AMD_MENDOCINO),y)