summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-15 08:00:12 +0300
committerSimon Glass <sjg@chromium.org>2021-03-27 03:59:37 +0300
commit5536f1285fd2f9ec3e177d6e74b7eb73c6821c8b (patch)
treece5ac8f37aa0a0809b36db86604ac4d4d30f06ba /arch/x86
parent272e62cb83f01acf7ae89449eaa9f020e76bff23 (diff)
downloadu-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.c3
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) {