diff options
author | Mathew King <mathewk@chromium.org> | 2019-02-11 10:27:59 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-02-22 18:23:43 -0800 |
commit | 9d6dc0d222418f90f5080f6c25cd06ca14abf48b (patch) | |
tree | 77c8aa1f55543be4ac6da3b96f38d111e276d3e0 /firmware/lib/vboot_display.c | |
parent | af26dc17173d82c75821cf5385054a3b3b17165d (diff) | |
download | vboot-9d6dc0d222418f90f5080f6c25cd06ca14abf48b.tar.gz |
vboot: Add ui for setting vendor data in VPDfirmware-atlas-11827.12.B
BUG=b:124297157
TEST=make runtest
test on device
BRANCH=none
CQ-DEPEND=CL:1466822
Change-Id: Ic3b1b502b1aff14a795397da3024f8a12eb04775
Reviewed-on: https://chromium-review.googlesource.com/1466290
Commit-Ready: Mathew King <mathewk@chromium.org>
Tested-by: Mathew King <mathewk@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Mathew King <mathewk@chromium.org>
Diffstat (limited to 'firmware/lib/vboot_display.c')
-rw-r--r-- | firmware/lib/vboot_display.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/lib/vboot_display.c b/firmware/lib/vboot_display.c index c7607726..a17d6dd1 100644 --- a/firmware/lib/vboot_display.c +++ b/firmware/lib/vboot_display.c @@ -35,7 +35,8 @@ VbError_t VbExGetAltFwIdxMask(void) { return 0; } -VbError_t VbDisplayScreen(struct vb2_context *ctx, uint32_t screen, int force) +VbError_t VbDisplayScreen(struct vb2_context *ctx, uint32_t screen, int force, + const VbScreenData *data) { uint32_t locale; VbError_t rv; @@ -47,7 +48,7 @@ VbError_t VbDisplayScreen(struct vb2_context *ctx, uint32_t screen, int force) /* Read the locale last saved */ locale = vb2_nv_get(ctx, VB2_NV_LOCALIZATION_INDEX); - rv = VbExDisplayScreen(screen, locale); + rv = VbExDisplayScreen(screen, locale, data); if (rv == VBERROR_SUCCESS) /* Keep track of the currently displayed screen */ @@ -464,12 +465,13 @@ VbError_t VbCheckDisplayKey(struct vb2_context *ctx, uint32_t key) #endif /* Force redraw of current screen */ - return VbDisplayScreen(ctx, disp_current_screen, 1); + return VbDisplayScreen(ctx, disp_current_screen, 1, NULL); } if (0 == memcmp(MagicBuffer, MAGIC_WORD, MAGIC_WORD_LEN)) { if (VBEASTEREGG) - (void)VbDisplayScreen(ctx, disp_current_screen, 1); + (void)VbDisplayScreen(ctx, disp_current_screen, 1, + NULL); } return VBERROR_SUCCESS; |