[PATCH 0/9] sysinfo: Expand sysinfo with some more banner information

Simon Glass sjg at chromium.org
Mon Nov 13 03:58:20 CET 2023


The show_board_info() function was adjusted to weak so that it could be
entirely replaced with a board-specific implementation.

The intended way for boards to provide their own information is via a
sysinfo driver. But currently there is no way to show anything other
than the model name.

This series adds support for showing a few more items, in a way that is
easy for boards to extend.

Since there is already a weak checkboard() function, we don't need to
have two levels of weak function here. So this series drops the weak
attribute from show_board_info()

Existing boards will see a slight change in output, in that the model
name will appear first, before any custom output. If that is a problem,
then the solution is to implement a sysinfo driver for the board.


Simon Glass (9):
  board: Move show_board_info() comment to header file
  meson: Use checkboard() instead of show_board_info()
  turris: Use checkboard() instead of show_board_info()
  solidrun: Use checkboard() instead of show_board_info()
  toradex: Use checkboard() instead of show_board_info()
  udoo: Use checkboard() instead of show_board_info()
  Revert "generic-board: make show_board_info a weak function"
  sysinfo: Allow displaying more info on startup
  x86: coreboot: Add a sysinfo driver

 arch/arm/mach-meson/board-info.c              |  2 +-
 arch/x86/cpu/coreboot/Kconfig                 |  2 +
 arch/x86/dts/coreboot.dts                     |  4 +
 board/CZ.NIC/turris_mox/turris_mox.c          |  2 +-
 board/CZ.NIC/turris_omnia/turris_omnia.c      |  2 +-
 board/coreboot/coreboot/Makefile              |  1 +
 board/coreboot/coreboot/coreboot.c            | 44 ---------
 board/coreboot/coreboot/sysinfo.c             | 89 +++++++++++++++++++
 board/solidrun/mx6cuboxi/mx6cuboxi.c          |  7 +-
 board/toradex/apalis-imx8/apalis-imx8.c       |  2 +-
 board/toradex/apalis-tk1/apalis-tk1.c         |  2 +-
 board/toradex/apalis_imx6/apalis_imx6.c       |  3 +-
 board/toradex/apalis_t30/apalis_t30.c         |  2 +-
 .../toradex/colibri-imx6ull/colibri-imx6ull.c |  2 +-
 board/toradex/colibri-imx8x/colibri-imx8x.c   |  2 +-
 board/toradex/colibri_imx6/colibri_imx6.c     |  3 +-
 board/toradex/colibri_imx7/colibri_imx7.c     |  2 +-
 board/toradex/colibri_t20/colibri_t20.c       |  2 +-
 board/toradex/colibri_t30/colibri_t30.c       |  2 +-
 board/toradex/colibri_vf/colibri_vf.c         |  2 +-
 board/toradex/common/tdx-common.c             |  2 +-
 board/toradex/common/tdx-common.h             |  1 +
 board/udoo/neo/neo.c                          |  2 +-
 common/board_info.c                           | 80 +++++++++++------
 drivers/sysinfo/Kconfig                       |  7 ++
 include/init.h                                | 11 +++
 include/sysinfo.h                             |  3 +
 27 files changed, 189 insertions(+), 94 deletions(-)
 create mode 100644 board/coreboot/coreboot/sysinfo.c

-- 
2.42.0.869.gea05f2083d-goog



More information about the U-Boot mailing list