summaryrefslogtreecommitdiff
path: root/include/fsl_avb.h
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2019-07-18 13:56:45 +0800
committerJi Luo <ji.luo@nxp.com>2022-04-18 16:40:08 +0800
commitd63fb59f6d4d92d7a24a9e69bb9e3ba9db20f57b (patch)
treeb1294997c8663691f9d6aed37631997c102f586f /include/fsl_avb.h
parentb258d3f62c779f144551dc1a75554fb52052473a (diff)
MA-15158 Set spl recovery mode for dual bootloader
The A/B slot selection is moved to spl, it may lead to hang if no bootable slots found. The only way to recover the board is re-flash images with uuu tool, which is quite inconvenient for some customers who can't enter serial download mode. This patch will set "spl recovery mode" which will give us a chance to re-flash images with fastboot commands. Test: Enter spl recovery mode and flash images when no bootable slots found. Change-Id: I31278f5212bde7609fe2f49e77b3849e92c0c516 Signed-off-by: Ji Luo <ji.luo@nxp.com> (cherry picked from commit 46cc755cf3f42422ee1d7783394e14e8125df2b6) (cherry picked from commit 047f09ef2ef33657d76fd92d8f5599e00158cd6b) (cherry picked from commit e96b68d22e89e4031d1117ab347f042577c5c8f1)
Diffstat (limited to 'include/fsl_avb.h')
-rw-r--r--include/fsl_avb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/fsl_avb.h b/include/fsl_avb.h
index 7f2b46f20bc..abc751e68d7 100644
--- a/include/fsl_avb.h
+++ b/include/fsl_avb.h
@@ -275,4 +275,7 @@ int avb_set_public_key(uint8_t *staged_buffer, uint32_t size);
/* Get manufacture protection public key */
int fastboot_get_mppubk(uint8_t *staged_buffer, uint32_t *size);
+/* Return if device is in spl recovery mode. */
+bool is_spl_recovery(void);
+
#endif /* __FSL_AVB_H__ */