diff options
author | Simon Glass <sjg@chromium.org> | 2021-07-05 16:32:40 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-07-21 10:27:34 -0600 |
commit | 504fb6699778c77be80498400ef6206204f69a6b (patch) | |
tree | 6ead8e3244eeaa1c29f2c7575bb04ee18c307686 | |
parent | 4bbaa88fad00205b6f2ae9ea0e57cfd878354a3a (diff) | |
download | u-boot-504fb6699778c77be80498400ef6206204f69a6b.tar.gz |
dm: Support lzma in the flashmap
Allow lzma compression as well as lz4.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | drivers/core/of_extra.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/core/of_extra.c b/drivers/core/of_extra.c index 7702beff97..632a1c2210 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 { |