summaryrefslogtreecommitdiff
path: root/include/fsl_avb.h
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2018-10-10 17:29:35 +0800
committerYe Li <ye.li@nxp.com>2018-10-11 19:41:40 -0700
commit884ef77506e8255903ba9d9b8f6d54142f242e9f (patch)
tree3c7934787819d3aead5a2c8d0188e6588dd9764e /include/fsl_avb.h
parentc66bb808116f24c9f8f95db974b62046d9a9e0ba (diff)
MA-13048 [AUTO] Support program rpmb key with fastboot command
Add fastboot command "fastboot oem set-rpmb-key" to program the rpmb key which should be staged first. Usage: 1. fastboot stage my-rpmb-key.bin 2. fastboot oem set-rpmb-key Test: rpmb key programed successfully on imx8qxp. Change-Id: I95474a6367eb8ef0db16bb38680975b8c45b84f1 Signed-off-by: Ji Luo <ji.luo@nxp.com> (cherry picked from commit 557981f3ace1f11f1483668dd97076e6c3f1d1cc)
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 f992be91a1..20db2674d2 100644
--- a/include/fsl_avb.h
+++ b/include/fsl_avb.h
@@ -240,4 +240,7 @@ AvbABFlowResult avb_flow_dual_uboot(AvbABOps* ab_ops,
/* Program ATX perm_attr into RPMB partition */
int avb_atx_fuse_perm_attr(uint8_t *staged_buffer, uint32_t size);
+/* Initialize rpmb key with the staged key */
+int fastboot_set_rpmb_key(uint8_t *staged_buf, uint32_t key_size);
+
#endif /* __FSL_AVB_H__ */