All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: U-Boot Mailing List <u-boot@lists.denx.de>
Cc: "Simon Glass" <sjg@chromium.org>,
	"Artur Rojek" <artur@conclusive.pl>,
	"Baruch Siach" <baruch@tkos.co.il>,
	"Bin Meng" <bmeng.cn@gmail.com>,
	"Breno Lima" <breno.lima@nxp.com>,
	"Fabio Estevam" <festevam@gmail.com>,
	"Francesco Montefoschi" <francesco.montefoschi@udoo.org>,
	"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
	"Marcel Ziswiler" <marcel.ziswiler@toradex.com>,
	"Marek Behún" <kabel@kernel.org>,
	"Mike Frysinger" <vapier@chromium.org>,
	"Neil Armstrong" <neil.armstrong@linaro.org>,
	u-boot-amlogic@groups.io
Subject: [PATCH 0/9] sysinfo: Expand sysinfo with some more banner information
Date: Sun, 12 Nov 2023 19:58:20 -0700	[thread overview]
Message-ID: <20231113030001.240020-1-sjg@chromium.org> (raw)

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


             reply	other threads:[~2023-11-13  3:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-13  2:58 Simon Glass [this message]
2023-11-13  2:58 ` [PATCH 1/9] board: Move show_board_info() comment to header file Simon Glass
2023-11-16 15:53   ` Tom Rini
2023-11-13  2:58 ` [PATCH 2/9] meson: Use checkboard() instead of show_board_info() Simon Glass
2023-11-13  8:01   ` Neil Armstrong
2023-11-13  2:58 ` [PATCH 3/9] turris: " Simon Glass
2023-11-13  2:58 ` [PATCH 4/9] solidrun: " Simon Glass
2023-11-13  2:58 ` [PATCH 5/9] toradex: " Simon Glass
2024-01-24 17:16   ` REGRESSION: " Marcel Ziswiler
2024-02-07 15:23     ` Marcel Ziswiler
2024-02-07 15:46       ` Tom Rini
2023-11-13  2:58 ` [PATCH 6/9] udoo: " Simon Glass
2023-11-13  2:58 ` [PATCH 7/9] Revert "generic-board: make show_board_info a weak function" Simon Glass
2023-11-16 15:53   ` Tom Rini
2023-11-13  2:58 ` [PATCH 8/9] sysinfo: Allow displaying more info on startup Simon Glass
2023-11-13  2:58 ` [PATCH 9/9] x86: coreboot: Add a sysinfo driver Simon Glass
2023-11-28 21:13 ` [PATCH 0/9] sysinfo: Expand sysinfo with some more banner information Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231113030001.240020-1-sjg@chromium.org \
    --to=sjg@chromium.org \
    --cc=artur@conclusive.pl \
    --cc=baruch@tkos.co.il \
    --cc=bmeng.cn@gmail.com \
    --cc=breno.lima@nxp.com \
    --cc=festevam@gmail.com \
    --cc=francesco.montefoschi@udoo.org \
    --cc=kabel@kernel.org \
    --cc=marcel.ziswiler@toradex.com \
    --cc=neil.armstrong@linaro.org \
    --cc=u-boot-amlogic@groups.io \
    --cc=u-boot@lists.denx.de \
    --cc=vapier@chromium.org \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.