[PATCH 02/22] dm: Support lzma in the flashmap
Simon Glass
sjg at chromium.org
Tue Jul 6 00:32:40 CEST 2021
Allow lzma compression as well as lz4.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
drivers/core/of_extra.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/core/of_extra.c b/drivers/core/of_extra.c
index 7702beff97b..632a1c2210e 100644
--- a/drivers/core/of_extra.c
+++ b/drivers/core/of_extra.c
@@ -31,6 +31,8 @@ int ofnode_read_fmap_entry(ofnode node, struct fmap_entry *entry)
if (prop) {
if (!strcmp(prop, "lz4"))
entry->compress_algo = FMAP_COMPRESS_LZ4;
+ else if (!strcmp(prop, "lzma"))
+ entry->compress_algo = FMAP_COMPRESS_LZMA;
else
return log_msg_ret("compression algo", -EINVAL);
} else {
--
2.32.0.93.g670b81a890-goog
More information about the U-Boot
mailing list