Commit 504fb669 authored by Simon Glass's avatar Simon Glass
Browse files

dm: Support lzma in the flashmap



Allow lzma compression as well as lz4.
Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
parent 4bbaa88f
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment