summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLuo Ji <ji.luo@nxp.com>2018-06-08 11:03:14 +0800
committerLuo Ji <ji.luo@nxp.com>2018-07-06 15:48:48 +0800
commit0e6c6d2e6480ae4ce2abff0bea2d856f642d0fda (patch)
tree4f7b2a7e349cf5575873e2cfe2c82fdb7c038085 /include
parent315674c6100bc2f97cd9f7e82031dee2e0e2f621 (diff)
[iot] Verify single slot in boota for dual bootloader
A/B switch logic will be moved to SPL stage if dual bootloader feature is enable, in such case, we just need to verify single slot which is selected in SPL stage. Test: verify and boot ok for imx8m. Change-Id: Iafe0d2d4aea1c178551940808416eec4a3547259 Signed-off-by: Luo Ji <ji.luo@nxp.com>
Diffstat (limited to 'include')
-rw-r--r--include/fsl_avb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/fsl_avb.h b/include/fsl_avb.h
index b480e9d62ac..f992be91a12 100644
--- a/include/fsl_avb.h
+++ b/include/fsl_avb.h
@@ -153,6 +153,13 @@ AvbIOResult fsl_get_size_of_partition(AvbOps* ops,
* */
bool is_slotvar_avb(char *cmd);
+/* Get current bootable slot with higher priority.
+ * return 0 for the first slot
+ * return 1 for the second slot
+ * return -1 for not supported slot
+ * */
+int get_curr_slot(AvbABData *ab_data);
+
/* return 0 for the first slot
* return 1 for the second slot
* return -1 for not supported slot