From 7e91db714853fcc55b1bc63707f1618908bbf8dd Mon Sep 17 00:00:00 2001 From: Kangheui Won Date: Tue, 25 Jan 2022 18:55:04 +1100 Subject: psp_verstage: report developer mode to PSP Add platform_report_mode function which report current developer mode status to the PSP. L1 widevine app in the PSP will use this information to select key box. BUG=b:211058864 TEST=build and boot guybrush TEST=build picasso chrome os boards Signed-off-by: Kangheui Won Change-Id: I04b5fcfa338b485b36f1b946203f32823385c0b1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/61369 Tested-by: build bot (Jenkins) Reviewed-by: Jason Glenesk Reviewed-by: Raul Rangel Reviewed-by: Karthik Ramasubramanian --- src/soc/amd/cezanne/psp_verstage/chipset.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/soc/amd/cezanne') diff --git a/src/soc/amd/cezanne/psp_verstage/chipset.c b/src/soc/amd/cezanne/psp_verstage/chipset.c index 183f1169cd..30f613a492 100644 --- a/src/soc/amd/cezanne/psp_verstage/chipset.c +++ b/src/soc/amd/cezanne/psp_verstage/chipset.c @@ -33,6 +33,14 @@ int platform_set_sha_op(enum vb2_hash_algorithm hash_alg, return 0; } +void platform_report_mode(int developer_mode_enabled) +{ + if (developer_mode_enabled) + svc_set_platform_boot_mode(CHROME_BOOK_BOOT_MODE_DEVELOPER); + else + svc_set_platform_boot_mode(CHROME_BOOK_BOOT_MODE_PRODUCTION); +} + /* Functions below are stub functions for not-yet-implemented PSP features. * These functions should be replaced with proper implementations later. -- cgit v1.2.3