aboutsummaryrefslogtreecommitdiff
path: root/src/security/vboot/vbnv_layout.h
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-04-25 18:13:03 -0700
committerFurquan Shaikh <furquan@google.com>2018-04-27 02:51:25 +0000
commit37c721d78669ed2141981c990a3e8eb1f538fdb4 (patch)
treed281f66067ec8d5847274f4c3abf906bec5c1abd /src/security/vboot/vbnv_layout.h
parent557b9bbdf2886b055673417c5bbebc3a26fed665 (diff)
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 <dlaurie@google.com> Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/25846 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/security/vboot/vbnv_layout.h')
-rw-r--r--src/security/vboot/vbnv_layout.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/security/vboot/vbnv_layout.h b/src/security/vboot/vbnv_layout.h
index 1dc01c909a..a9326e4ff4 100644
--- a/src/security/vboot/vbnv_layout.h
+++ b/src/security/vboot/vbnv_layout.h
@@ -40,6 +40,7 @@
#define DEV_FLAGS_OFFSET 4
#define DEV_BOOT_USB_MASK 0x01
#define DEV_BOOT_SIGNED_ONLY_MASK 0x02
+#define DEV_ENABLE_UDC 0x40
#define MISC_FLAGS_OFFSET 8
#define MISC_FLAGS_BATTERY_CUTOFF_MASK 0x08