From 37c721d78669ed2141981c990a3e8eb1f538fdb4 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Wed, 25 Apr 2018 18:13:03 -0700 Subject: security/vboot: Add function to read UDC enable flag This change adds a helper function to read USB Device Controller (UDC) enable flag from VBNV. BUG=b:78577893 BRANCH=poppy Change-Id: Ifd1e9b0781ffee242d695b72287632bc944a50c7 Signed-off-by: Duncan Laurie Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/25846 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/security/vboot/vbnv.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/security/vboot/vbnv.h') diff --git a/src/security/vboot/vbnv.h b/src/security/vboot/vbnv.h index 0288d0df4d..c8e689fa04 100644 --- a/src/security/vboot/vbnv.h +++ b/src/security/vboot/vbnv.h @@ -26,6 +26,10 @@ void regen_vbnv_crc(uint8_t *vbnv_copy); int get_recovery_mode_from_vbnv(void); void set_recovery_mode_into_vbnv(int recovery_reason); int vboot_wants_oprom(void); + +/* Read the USB Device Controller(UDC) enable flag from VBNV. */ +int vbnv_udc_enable_flag(void); + /* Initialize and read vbnv. This is used in the main vboot logic path. */ void vbnv_init(uint8_t *vbnv_copy); /* Reset vbnv snapshot to a known state. */ -- cgit v1.2.3