mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
Add VB_INIT_FLAG_SW_WP_ENABLED to VbInit() input flags.
We need to know not only whether the HW WP pin is asserted, but whether the flash chip has configured its software protection registers to actually protect anything. This flag can be used to indicate that. BUG=chrome-os-partner:13265 BRANCH=link TEST=none This just adds the flag. Nothing actually sets the flag yet, so there's nothing to test. Change-Id: Icba9945fb56eb3a4681486c630cbbdc9232485ef Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/31642 Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
@@ -237,6 +237,8 @@ typedef struct VbKernelPreambleHeader {
|
||||
#define VBSD_EC_SOFTWARE_SYNC 0x00000800
|
||||
/* VbInit() was told that the EC firmware is slow to update */
|
||||
#define VBSD_EC_SLOW_UPDATE 0x00001000
|
||||
/* Firmware software write protect was enabled at boot time */
|
||||
#define VBSD_BOOT_FIRMWARE_SW_WP_ENABLED 0x00002000
|
||||
|
||||
/* Supported flags by header version. It's ok to add new flags while keeping
|
||||
* struct version 2 as long as flag-NOT-present is the correct value for
|
||||
|
||||
Reference in New Issue
Block a user