All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/6] cbfs: Allow use before relocation / BSS
@ 2019-08-15  1:56 Simon Glass
  2019-08-15  1:56 ` [U-Boot] [PATCH v2 1/6] cbfs: Allow CBFS to be used in SPL Simon Glass
                   ` (5 more replies)
  0 siblings, 6 replies; 20+ messages in thread
From: Simon Glass @ 2019-08-15  1:56 UTC (permalink / raw)
  To: u-boot

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.

Changes in v2:
- Fix typo in Kconfig help
- Make cbfs_init() static
- Move whitespace changes to next patch

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

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2019-08-18 13:59 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-15  1:56 [U-Boot] [PATCH v2 0/6] cbfs: Allow use before relocation / BSS Simon Glass
2019-08-15  1:56 ` [U-Boot] [PATCH v2 1/6] cbfs: Allow CBFS to be used in SPL Simon Glass
2019-08-16 14:42   ` Bin Meng
2019-08-18 13:59     ` Bin Meng
2019-08-15  1:56 ` [U-Boot] [PATCH v2 2/6] cbfs: Move declarations above functions Simon Glass
2019-08-16 14:42   ` Bin Meng
2019-08-18 13:59     ` Bin Meng
2019-08-15  1:56 ` [U-Boot] [PATCH v2 3/6] cbfs: Move static variables into a struct Simon Glass
2019-08-15  7:18   ` Bin Meng
2019-08-16 14:43     ` Bin Meng
2019-08-18 13:59       ` Bin Meng
2019-08-15  1:56 ` [U-Boot] [PATCH v2 4/6] cbfs: Move result variable into the struct Simon Glass
2019-08-16 14:43   ` Bin Meng
2019-08-18 13:59     ` Bin Meng
2019-08-15  1:56 ` [U-Boot] [PATCH v2 5/6] cbfs: Add functions to support multiple CBFSs Simon Glass
2019-08-16 14:43   ` Bin Meng
2019-08-18 13:59     ` Bin Meng
2019-08-15  1:56 ` [U-Boot] [PATCH v2 6/6] cbfs: Rename camel-case variables Simon Glass
2019-08-16 14:44   ` Bin Meng
2019-08-18 13:59     ` Bin Meng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.