From f2996328311f6281218ce5acc8ffa3e232d2667a Mon Sep 17 00:00:00 2001 From: Kangheui Won Date: Thu, 15 Apr 2021 14:19:47 +1000 Subject: amd/vboot: remove bl_syscall_public.h from include bl_syscall_public.h is a header file for PSP app, but was used for x86 code to get the definition of PSP_INFO. Move the definition into psp_transfer.h and do not include bl_syscall_public.h from x86 code. BUG=none TEST=build psp_verstage on zork BRANCH=none Signed-off-by: Kangheui Won Change-Id: I0fe011652a47d0ba2939dc31ee3b83f0718a61dc Reviewed-on: https://review.coreboot.org/c/coreboot/+/52537 Reviewed-by: Angel Pons Reviewed-by: Raul Rangel Reviewed-by: Martin Roth Tested-by: build bot (Jenkins) --- src/soc/amd/common/vboot/vboot_bootblock.c | 1 - src/soc/amd/picasso/include/soc/psp_transfer.h | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/soc/amd') diff --git a/src/soc/amd/common/vboot/vboot_bootblock.c b/src/soc/amd/common/vboot/vboot_bootblock.c index da652eb8bc..06ac45ba5c 100644 --- a/src/soc/amd/common/vboot/vboot_bootblock.c +++ b/src/soc/amd/common/vboot/vboot_bootblock.c @@ -1,7 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include -#include #include #include #include diff --git a/src/soc/amd/picasso/include/soc/psp_transfer.h b/src/soc/amd/picasso/include/soc/psp_transfer.h index 8c78496cea..51c9eacb57 100644 --- a/src/soc/amd/picasso/include/soc/psp_transfer.h +++ b/src/soc/amd/picasso/include/soc/psp_transfer.h @@ -16,6 +16,11 @@ #define TRANSFER_MAGIC_VAL 0x50544953 +/* Bit definitions for the psp_info field in the PSP transfer_info_struct */ +#define PSP_INFO_PRODUCTION_MODE 0x00000001UL +#define PSP_INFO_PRODUCTION_SILICON 0x00000002UL +#define PSP_INFO_VALID 0x80000000UL + /* Area for things that would cause errors in a linker script */ #if !defined(__ASSEMBLER__) #include -- cgit v1.2.3