MA-17046-1 Show orange warning for unlocked device
authorJi Luo <ji.luo@nxp.com>
Tue, 28 Apr 2020 01:52:07 +0000 (09:52 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:19 +0000 (09:49 +0800)
commitfbd21482417c4dc3de16d1689fe899ad11764f71
tree06eeda04cf7b6bfc3d6535c6406009a9850a73f2
parent0e9dfdfc5e06b2897c4471ac6d29a70218e4f11c
MA-17046-1 Show orange warning for unlocked device

According to the google boot flow, an orange warning should
be displayed on UNLOCKED device to reminder the users of the
potential risks.

This commit will show an orange warning logo and warning text
on the screen, it shall be dismissed after 3 seconds, users
can also skip it by pressing the ON-OFF button.

Config 'CONFIG_AVB_WARNING_LOGO_COLS' and 'CONFIG_AVB_WARNING_LOGO_ROWS'
define the (x, y) position of the warning logo, its default
value is for 1080*720 resolution display and can be overridden.

Test: Orange warning logo show on all imx8m/imx8q platfroms.

Change-Id: I607edb3da039b47ddfac681f855834d8da187af8
Signed-off-by: Ji Luo <ji.luo@nxp.com>
(cherry picked from commit 8ddefdb1186feb3580830fa04b588d3ee606cf81)
drivers/fastboot/fb_fsl/fastboot_lock_unlock.c
drivers/fastboot/fb_fsl/fastboot_lock_unlock.h
drivers/fastboot/fb_fsl/fb_fsl_boot.c
include/fsl_avb_logo.h [new file with mode: 0644]
lib/Kconfig
lib/avb/fsl/Makefile
lib/avb/fsl/orange_warning_bmp_data.c [new file with mode: 0644]