diff options
author | Simon Glass <sjg@chromium.org> | 2018-10-01 12:22:08 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-10-09 04:40:27 -0600 |
commit | e6c5c94a79d9e1dd20f869a3169bf2be00d53d14 (patch) | |
tree | 658f9ce8514a3217360cc91bff053359e3583964 /include/dm/of_extra.h | |
parent | cdb6aa0afb52da34306c4339f2f4d6cbd3b0ad02 (diff) |
dm: core: Update ofnode to read binman-style flash entry
At present ofnode_read_fmap_entry() reads a flash map entry in a format
which is not supported by binman. To allow use to use binman-format
descriptions, update this function.
Also add a simple test.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm/of_extra.h')
-rw-r--r-- | include/dm/of_extra.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/dm/of_extra.h b/include/dm/of_extra.h index 97988b6663..ca15df21b0 100644 --- a/include/dm/of_extra.h +++ b/include/dm/of_extra.h @@ -11,7 +11,7 @@ enum fmap_compress_t { FMAP_COMPRESS_NONE, - FMAP_COMPRESS_LZO, + FMAP_COMPRESS_LZ4, }; enum fmap_hash_t { @@ -26,6 +26,7 @@ struct fmap_entry { uint32_t length; uint32_t used; /* Number of bytes used in region */ enum fmap_compress_t compress_algo; /* Compression type */ + uint32_t unc_length; /* Uncompressed length */ enum fmap_hash_t hash_algo; /* Hash algorithm */ const uint8_t *hash; /* Hash value */ int hash_size; /* Hash size */ |