aboutsummaryrefslogtreecommitdiff
path: root/src/security/vboot/vbnv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/security/vboot/vbnv.c')
-rw-r--r--src/security/vboot/vbnv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/security/vboot/vbnv.c b/src/security/vboot/vbnv.c
index 0fecacd4d2..636e5e3806 100644
--- a/src/security/vboot/vbnv.c
+++ b/src/security/vboot/vbnv.c
@@ -147,6 +147,13 @@ int vboot_wants_oprom(void)
return (vbnv_data(BOOT_OFFSET) & BOOT_OPROM_NEEDED) ? 1 : 0;
}
+/* Read the USB Device Controller(UDC) enable flag from VBNV. */
+int vbnv_udc_enable_flag(void)
+{
+ vbnv_setup();
+ return (vbnv_data(DEV_FLAGS_OFFSET) & DEV_ENABLE_UDC) ? 1 : 0;
+}
+
void vbnv_init(uint8_t *vbnv_copy)
{
if (IS_ENABLED(CONFIG_VBOOT_VBNV_CMOS))