1 /* SPDX-License-Identifier: GPL-2.0-only */
5 #include <security/vboot/misc.h>
8 static int gfx_init_done
= -1;
10 int gfx_get_init_done(void)
12 if (gfx_init_done
< 0)
17 void gfx_set_init_done(int done
)
22 int display_init_required(void)
24 /* For vboot, honor VB2_CONTEXT_DISPLAY_INIT. */
26 /* Must always select MUST_REQUEST_DISPLAY when using this
28 if (!CONFIG(VBOOT_MUST_REQUEST_DISPLAY
))
30 return vboot_get_context()->flags
& VB2_CONTEXT_DISPLAY_INIT
;
33 /* By default always initialize display. */