summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/cezanne
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@google.com>2022-03-08 13:01:43 -0700
committerFelix Held <felix-coreboot@felixheld.de>2022-03-10 15:16:32 +0000
commit112887142e3d5f2bc313bc19c6c99b5e03f89612 (patch)
treeba326944df27c9e2b121ef6904465fd37fec4af2 /src/soc/amd/cezanne
parent2c6cc6bf391b1640d821046e6b036b93ccaf7e32 (diff)
downloadcoreboot-112887142e3d5f2bc313bc19c6c99b5e03f89612.tar.gz
coreboot-112887142e3d5f2bc313bc19c6c99b5e03f89612.tar.bz2
coreboot-112887142e3d5f2bc313bc19c6c99b5e03f89612.zip
soc/amd/cezanne/psp_verstage: Log the platform boot mode report
Log the platform boot mode reported by PSP verstage to PSP stage 1 bootloader. This helps to improve the debuggability. BUG=b:193050286 TEST=Build and Boot to OS in Nipperkin. Ensure that the platform boot mode is logged in the verstage logs. Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Change-Id: I752ee56f2af48215a770d799432d02f0609757cd Reviewed-on: https://review.coreboot.org/c/coreboot/+/62668 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Rob Barnes <robbarnes@google.com> Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com>
Diffstat (limited to 'src/soc/amd/cezanne')
-rw-r--r--src/soc/amd/cezanne/psp_verstage/chipset.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/soc/amd/cezanne/psp_verstage/chipset.c b/src/soc/amd/cezanne/psp_verstage/chipset.c
index 41d318e0ebe0..372fa362c3ab 100644
--- a/src/soc/amd/cezanne/psp_verstage/chipset.c
+++ b/src/soc/amd/cezanne/psp_verstage/chipset.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <bl_uapp/bl_syscall_public.h>
+#include <console/console.h>
#include <psp_verstage.h>
uint32_t update_psp_bios_dir(uint32_t *psp_dir_offset, uint32_t *bios_dir_offset)
@@ -35,6 +36,8 @@ int platform_set_sha_op(enum vb2_hash_algorithm hash_alg,
void platform_report_mode(int developer_mode_enabled)
{
+ printk(BIOS_INFO, "Reporting %s mode\n",
+ developer_mode_enabled ? "Developer" : "Production");
if (developer_mode_enabled)
svc_set_platform_boot_mode(CHROME_BOOK_BOOT_MODE_DEVELOPER);
else