]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: core: Add CBFS support to flashmap
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 05:00:29 +0000 (18:00 +1300)
committerSimon Glass <sjg@chromium.org>
Sat, 27 Mar 2021 02:04:30 +0000 (15:04 +1300)
Allow referencing a CBFS file in the flashmap, so that it is possible to
boot from coreboot, where files are not available from binman.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/dm/of_extra.h

index ca15df21b067b03006c8ef5da9b351d427ae1f4b..fc4f97431967bf75a8916778a17b5e5a6994052c 100644 (file)
 
 enum fmap_compress_t {
        FMAP_COMPRESS_NONE,
+       FMAP_COMPRESS_LZMA,
        FMAP_COMPRESS_LZ4,
+
+       FMAP_COMPRESS_COUNT,
+       FMAP_COMPRESS_UNKNOWN,
 };
 
 enum fmap_hash_t {
@@ -30,6 +34,10 @@ struct fmap_entry {
        enum fmap_hash_t hash_algo;             /* Hash algorithm */
        const uint8_t *hash;                    /* Hash value */
        int hash_size;                          /* Hash size */
+       /* Node pointer if CBFS, else NULL */
+       const struct cbfs_cachenode *cbfs_node;
+       /* Hash node pointer if CBFS, else NULL */
+       const struct cbfs_cachenode *cbfs_hash_node;
 };
 
 /**