At present CBFS cannot be used in SPL before BSS is available. This is
inconvenient if CBFS holds the FSP code needed to init SDRAM.

The problem is fairly easy to fix, by putting all static variables into
a struct that can be allocated.

This series updates CBFS towards this goal, but does not convert all
functions. It also tidies up the style a little.


Simon Glass (6):
  cbfs: Allow CBFS to be used in SPL
  cbfs: Move declarations above functions
  cbfs: Move static variables into a struct
  cbfs: Move result variable into the struct
  cbfs: Add functions to support multiple CBFSs
  cbfs: Rename camel-case variables

 cmd/cbfs.c      |   4 +-
 fs/Makefile     |   1 +
 fs/cbfs/Kconfig |  12 +++
 fs/cbfs/cbfs.c  | 231 ++++++++++++++++++++++++++++++++----------------
 include/cbfs.h  |  29 ++++++
 5 files changed, 198 insertions(+), 79 deletions(-)

-- 
2.23.0.rc1.153.gdeed80330f-goog

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to