diff options
Diffstat (limited to 'firmware/2lib/include/2gbb_flags.h')
-rw-r--r-- | firmware/2lib/include/2gbb_flags.h | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/firmware/2lib/include/2gbb_flags.h b/firmware/2lib/include/2gbb_flags.h new file mode 100644 index 00000000..6749aa3f --- /dev/null +++ b/firmware/2lib/include/2gbb_flags.h @@ -0,0 +1,87 @@ +/* Copyright 2019 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + * + * Flags for vb2_gbb_header.flags. + * + * Should be imported externally via vb2_api.h. + */ + +#ifndef VBOOT_2_GBB_FLAGS_H_ +#define VBOOT_2_GBB_FLAGS_H_ + +enum vb2_gbb_flag { + /* + * Reduce the dev screen delay to 2 sec from 30 sec to speed up + * factory. + */ + VB2_GBB_FLAG_DEV_SCREEN_SHORT_DELAY = 1 << 0, + + /* + * BIOS should load option ROMs from arbitrary PCI devices. We'll never + * enable this ourselves because it executes non-verified code, but if + * a customer wants to void their warranty and set this flag in the + * read-only flash, they should be able to do so. + * + * (TODO: Currently not supported. Mark as deprecated/unused?) + */ + VB2_GBB_FLAG_LOAD_OPTION_ROMS = 1 << 1, + + /* + * The factory flow may need the BIOS to boot a non-ChromeOS kernel if + * the dev-switch is on. This flag allows that. + * + * (TODO: Currently not supported. Mark as deprecated/unused?) + */ + VB2_GBB_FLAG_ENABLE_ALTERNATE_OS = 1 << 2, + + /* + * Force dev switch on, regardless of physical/keyboard dev switch + * position. + */ + VB2_GBB_FLAG_FORCE_DEV_SWITCH_ON = 1 << 3, + + /* Allow booting from USB in dev mode even if dev_boot_usb=0. */ + VB2_GBB_FLAG_FORCE_DEV_BOOT_USB = 1 << 4, + + /* Disable firmware rollback protection. */ + VB2_GBB_FLAG_DISABLE_FW_ROLLBACK_CHECK = 1 << 5, + + /* Allow Enter key to trigger dev->tonorm screen transition */ + VB2_GBB_FLAG_ENTER_TRIGGERS_TONORM = 1 << 6, + + /* Allow booting Legacy OSes in dev mode even if dev_boot_legacy=0. */ + VB2_GBB_FLAG_FORCE_DEV_BOOT_LEGACY = 1 << 7, + + /* Allow booting using alternate keys for FAFT servo testing */ + VB2_GBB_FLAG_FAFT_KEY_OVERIDE = 1 << 8, + + /* Disable EC software sync */ + VB2_GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC = 1 << 9, + + /* Default to booting legacy OS when dev screen times out */ + VB2_GBB_FLAG_DEFAULT_DEV_BOOT_LEGACY = 1 << 10, + + /* Disable PD software sync */ + VB2_GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC = 1 << 11, + + /* Disable shutdown on lid closed */ + VB2_GBB_FLAG_DISABLE_LID_SHUTDOWN = 1 << 12, + + /* + * Allow full fastboot capability in firmware even if + * dev_boot_fastboot_full_cap=0. + */ + VB2_GBB_FLAG_FORCE_DEV_BOOT_FASTBOOT_FULL_CAP = 1 << 13, + + /* Recovery mode always assumes manual recovery, even if EC_IN_RW=1 */ + VB2_GBB_FLAG_FORCE_MANUAL_RECOVERY = 1 << 14, + + /* Disable FWMP */ + VB2_GBB_FLAG_DISABLE_FWMP = 1 << 15, + + /* Enable USB Device Controller */ + VB2_GBB_FLAG_ENABLE_UDC = 1 << 16, +}; + +#endif /* VBOOT_2_GBB_FLAGS_H_ */ |