Debian Codegraph @

src/soc/amd/phoenix/Makefile.mk

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