mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
vboot: Notify EC of current boot mode
Notify EC of boot mode, i.e. normal, developer or recovery. This is necessary for battery firmware updates. BUG=chrome-os-partner:24741 CQ-DEPEND=CL:205323 CQ-DEPEND=CL:210033 CQ-DEPEND=CL:215720 BRANCH=ToT TEST=Verified on samus & glimmer. Passed runalltests. ~/trunk/src/platform/vboot_reference $ make runalltests -j Change-Id: I1613ede34b4a929d1e8114fb519861f349377e94 Signed-off-by: Sheng-Liang Song <ssl@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/210032 Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
e08ee28548
commit
487a54bcbe
@@ -1012,15 +1012,18 @@ VbError_t VbSelectAndLoadKernel(VbCommonParams *cparams,
|
||||
/* Recovery boot */
|
||||
p.boot_flags |= BOOT_FLAG_RECOVERY;
|
||||
retval = VbBootRecovery(cparams, &p);
|
||||
VbExEcEnteringMode(0, VB_EC_RECOVERY);
|
||||
VbDisplayScreen(cparams, VB_SCREEN_BLANK, 0, &vnc);
|
||||
|
||||
} else if (p.boot_flags & BOOT_FLAG_DEVELOPER) {
|
||||
/* Developer boot */
|
||||
retval = VbBootDeveloper(cparams, &p);
|
||||
VbExEcEnteringMode(0, VB_EC_DEVELOPER);
|
||||
VbDisplayScreen(cparams, VB_SCREEN_BLANK, 0, &vnc);
|
||||
|
||||
} else {
|
||||
/* Normal boot */
|
||||
VbExEcEnteringMode(0, VB_EC_NORMAL);
|
||||
retval = VbBootNormal(cparams, &p);
|
||||
|
||||
if ((1 == shared->firmware_index) &&
|
||||
|
||||
Reference in New Issue
Block a user