Add FIT_VERITY_NODENAME and the complete set of FIT_VERITY_*_PROP
constants for the dm-verity child node of filesystem-type images, plus
the five optional boolean error-handling property names aligned with the
flat-image-tree specification.

Signed-off-by: Daniel Golle <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
---
v3: no changes
v2: no changes

 include/image.h | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/include/image.h b/include/image.h
index 34efac6056d..482446a8115 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1079,6 +1079,23 @@ int booti_setup(ulong image, ulong *relocated_addr, 
ulong *size,
 #define FIT_CIPHER_NODENAME    "cipher"
 #define FIT_ALGO_PROP          "algo"
 
+/* dm-verity node */
+#define FIT_VERITY_NODENAME    "dm-verity"
+#define FIT_VERITY_ALGO_PROP   "algo"
+#define FIT_VERITY_DBS_PROP    "data-block-size"
+#define FIT_VERITY_HBS_PROP    "hash-block-size"
+#define FIT_VERITY_NBLK_PROP   "num-data-blocks"
+#define FIT_VERITY_HBLK_PROP   "hash-start-block"
+#define FIT_VERITY_DIGEST_PROP "digest"
+#define FIT_VERITY_SALT_PROP   "salt"
+
+/* dm-verity error-handling modes (optional boolean property names) */
+#define FIT_VERITY_OPT_RESTART "restart-on-corruption"
+#define FIT_VERITY_OPT_PANIC   "panic-on-corruption"
+#define FIT_VERITY_OPT_RERR    "restart-on-error"
+#define FIT_VERITY_OPT_PERR    "panic-on-error"
+#define FIT_VERITY_OPT_ONCE    "check-at-most-once"
+
 /* image node */
 #define FIT_DATA_PROP          "data"
 #define FIT_DATA_POSITION_PROP "data-position"
-- 
2.54.0

Reply via email to