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>
This commit is contained in:
Karthikeyan Ramasubramanian 2022-03-08 13:01:43 -07:00 committed by Felix Held
parent 2c6cc6bf39
commit 112887142e
1 changed files with 3 additions and 0 deletions

View File

@ -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