]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: Support lzma in the flashmap
authorSimon Glass <sjg@chromium.org>
Mon, 5 Jul 2021 22:32:40 +0000 (16:32 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Jul 2021 16:27:34 +0000 (10:27 -0600)
Allow lzma compression as well as lz4.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/of_extra.c

index 7702beff97b09991e5864f9716d1b0120e122a94..632a1c2210e8e426bd65b766e9514146bbca743d 100644 (file)
@@ -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 {