security/vboot: Rename Cr50 to GSC when applicable

Recent ChromeOS devices use Ti50 instead of Cr50. Therefore, some
strings or comments are not accurate anymore. When applicable, rename
Cr50 to GSC (Google security chip).

BUG=b:275544927
TEST=./util/abuild/abuild -x -t GOOGLE_TOMATO -a
BRANCH=none

Cq-Depend: chromium:4756700
Change-Id: Ie5b9267191a5588830ed99a8382ba1a01933028f
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77100
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
This commit is contained in:
Yu-Ping Wu
2023-08-09 09:39:50 +08:00
committed by Felix Held
parent f49f3e6aa4
commit 7ce343d7a0
3 changed files with 10 additions and 9 deletions

View File

@@ -212,19 +212,19 @@ static void check_boot_mode(struct vb2_context *ctx)
rv = tlcl_cr50_get_boot_mode(&boot_mode);
switch (rv) {
case TPM_E_NO_SUCH_COMMAND:
printk(BIOS_WARNING, "Cr50 does not support GET_BOOT_MODE.\n");
printk(BIOS_WARNING, "GSC does not support GET_BOOT_MODE.\n");
/* Proceed to legacy boot model. */
return;
case TPM_SUCCESS:
break;
default:
printk(BIOS_ERR,
"Communication error in getting Cr50 boot mode.\n");
vb2api_fail(ctx, VB2_RECOVERY_CR50_BOOT_MODE, rv);
"Communication error in getting GSC boot mode.\n");
vb2api_fail(ctx, VB2_RECOVERY_GSC_BOOT_MODE, rv);
return;
}
printk(BIOS_INFO, "Cr50 says boot_mode is %s(0x%02x).\n",
printk(BIOS_INFO, "GSC says boot_mode is %s(0x%02x).\n",
get_boot_mode_string(boot_mode), boot_mode);
if (boot_mode == EC_EFS_BOOT_MODE_UNTRUSTED_RO)