diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-15 08:00:12 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-27 03:59:37 +0300 |
commit | 5536f1285fd2f9ec3e177d6e74b7eb73c6821c8b (patch) | |
tree | ce5ac8f37aa0a0809b36db86604ac4d4d30f06ba /arch/x86 | |
parent | 272e62cb83f01acf7ae89449eaa9f020e76bff23 (diff) | |
download | u-boot-5536f1285fd2f9ec3e177d6e74b7eb73c6821c8b.tar.xz |
cbfs: Allow access to CBFS without a header
In some cases CBFS does not start with a header but is just a collection
of files. It is possible to support this so long as the size of the CBFS
is provided.
Update the cbfs_init_mem() function to support this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/lib/fsp2/fsp_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/lib/fsp2/fsp_init.c b/arch/x86/lib/fsp2/fsp_init.c index 85cae54a0c..5afdce1e0d 100644 --- a/arch/x86/lib/fsp2/fsp_init.c +++ b/arch/x86/lib/fsp2/fsp_init.c @@ -84,7 +84,8 @@ static int get_cbfs_fsp(enum fsp_type_t type, ulong map_base, struct cbfs_priv *cbfs; int ret; - ret = cbfs_init_mem(map_base + cbfs_base, &cbfs); + ret = cbfs_init_mem(map_base + cbfs_base, CBFS_SIZE_UNKNOWN, true, + &cbfs); if (ret) return ret; if (!ret) { |