mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 18:35:28 +00:00
Set/clear developer mode flag in VbInit output
This would allow caller of VbInit know if vboot is on developer mode. Signed-off-by: Che-Liang Chiou <clchiou@chromium.org> BUG=chrome-os-partner:10947 TEST=Snow U-Boot successfully read the correct value of the flag Change-Id: If1d88975892045467f5ab9d00b00ed53765b83f1 Reviewed-on: https://gerrit.chromium.org/gerrit/26557 Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org> Commit-Ready: Che-Liang Chiou <clchiou@chromium.org> Tested-by: Che-Liang Chiou <clchiou@chromium.org>
This commit is contained in:
@@ -196,6 +196,8 @@ typedef struct VbCommonParams {
|
|||||||
#define VB_INIT_OUT_ENABLE_OPROM 0x00000020
|
#define VB_INIT_OUT_ENABLE_OPROM 0x00000020
|
||||||
/* BIOS may be asked to boot something other than ChromeOS */
|
/* BIOS may be asked to boot something other than ChromeOS */
|
||||||
#define VB_INIT_OUT_ENABLE_ALTERNATE_OS 0x00000040
|
#define VB_INIT_OUT_ENABLE_ALTERNATE_OS 0x00000040
|
||||||
|
/* Enable developer path. */
|
||||||
|
#define VB_INIT_OUT_ENABLE_DEVELOPER 0x00000080
|
||||||
|
|
||||||
|
|
||||||
/* Data only used by VbInit() */
|
/* Data only used by VbInit() */
|
||||||
|
|||||||
@@ -197,7 +197,8 @@ VbError_t VbInit(VbCommonParams* cparams, VbInitParams* iparams) {
|
|||||||
}
|
}
|
||||||
else if (is_dev) {
|
else if (is_dev) {
|
||||||
/* Developer switch is on, so need to support dev mode */
|
/* Developer switch is on, so need to support dev mode */
|
||||||
iparams->out_flags |= (VB_INIT_OUT_CLEAR_RAM |
|
iparams->out_flags |= (VB_INIT_OUT_ENABLE_DEVELOPER |
|
||||||
|
VB_INIT_OUT_CLEAR_RAM |
|
||||||
VB_INIT_OUT_ENABLE_DISPLAY |
|
VB_INIT_OUT_ENABLE_DISPLAY |
|
||||||
VB_INIT_OUT_ENABLE_USB_STORAGE);
|
VB_INIT_OUT_ENABLE_USB_STORAGE);
|
||||||
/* ... which may or may not include custom OSes */
|
/* ... which may or may not include custom OSes */
|
||||||
|
|||||||
Reference in New Issue
Block a user