cbfs: Allow access to CBFS without a header
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 05:00:12 +0000 (18:00 +1300)
committerSimon Glass <sjg@chromium.org>
Sat, 27 Mar 2021 00:59:37 +0000 (13:59 +1300)
commit5536f1285fd2f9ec3e177d6e74b7eb73c6821c8b
treece5ac8f37aa0a0809b36db86604ac4d4d30f06ba
parent272e62cb83f01acf7ae89449eaa9f020e76bff23
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>
arch/x86/lib/fsp2/fsp_init.c
fs/cbfs/cbfs.c
include/cbfs.h