From 112887142e3d5f2bc313bc19c6c99b5e03f89612 Mon Sep 17 00:00:00 2001 From: Karthikeyan Ramasubramanian Date: Tue, 8 Mar 2022 13:01:43 -0700 Subject: [PATCH] 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 Change-Id: I752ee56f2af48215a770d799432d02f0609757cd Reviewed-on: https://review.coreboot.org/c/coreboot/+/62668 Tested-by: build bot (Jenkins) Reviewed-by: Rob Barnes Reviewed-by: Jason Glenesk --- src/soc/amd/cezanne/psp_verstage/chipset.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/soc/amd/cezanne/psp_verstage/chipset.c b/src/soc/amd/cezanne/psp_verstage/chipset.c index 41d318e0eb..372fa362c3 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 +#include #include 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