summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
authorKangheui Won <khwon@chromium.org>2021-04-15 14:19:47 +1000
committerFelix Held <felix-coreboot@felixheld.de>2021-04-23 16:33:44 +0000
commitf2996328311f6281218ce5acc8ffa3e232d2667a (patch)
tree176dc8f9e834288d013669f76efd095c602acb41 /src/soc/amd
parent5f445f97c202b8d8947fa621934e9faa2b1d47a4 (diff)
downloadcoreboot-f2996328311f6281218ce5acc8ffa3e232d2667a.tar.xz
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 <khwon@chromium.org> Change-Id: I0fe011652a47d0ba2939dc31ee3b83f0718a61dc Reviewed-on: https://review.coreboot.org/c/coreboot/+/52537 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/common/vboot/vboot_bootblock.c1
-rw-r--r--src/soc/amd/picasso/include/soc/psp_transfer.h5
2 files changed, 5 insertions, 1 deletions
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 <amdblocks/reset.h>
-#include <bl_uapp/bl_syscall_public.h>
#include <bootblock_common.h>
#include <console/console.h>
#include <pc80/mc146818rtc.h>
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 <stdint.h>