public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v3 0/5] Introduce the sysinfo command
@ 2023-07-14 16:43 Detlev Casanova
  2023-07-14 16:43 ` [PATCH v3 1/6] sysinfo: Add IDs for board id and revision Detlev Casanova
                   ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: Detlev Casanova @ 2023-07-14 16:43 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Hai Pham, Tam Nguyen, Simon Glass, Detlev Casanova

The command can be used to show various information that can be used to
identify the running system.

Currently supported subcommands are:
* model: A string representing the model
* id: The id of the board
* revision: The revision of this board.


Changes since v2:
 - Fix code style.
 - Use printf() instead of debug().
 - Clarify sysinfo new ids types (int).
 - Add a test for sysinfo command.
 - Add documentation for sysinfo command.
Changes since v1:
 - Removed shell function to select linux device tree. This will be
   distributions job.
 - Break revision in rev_major and rev_minor in the sysinfo driver.

Detlev Casanova (6):
  sysinfo: Add IDs for board id and revision
  cmd: Add a sysinfo command
  sysinfo: Add a test
  sysinfo: Add documentation
  sysinfo: rcar3: Use int instead of char for revision
  sysinfo: rcar3: Implement BOARD_ID and BOARD_REV_*

 cmd/Kconfig               |   6 ++
 cmd/Makefile              |   1 +
 cmd/sysinfo.c             | 133 +++++++++++++++++++++++++++++++++++
 configs/sandbox_defconfig |   1 +
 doc/usage/cmd/sysinfo.rst |  56 +++++++++++++++
 drivers/sysinfo/rcar3.c   | 141 ++++++++++++++++++++++++++------------
 drivers/sysinfo/sandbox.c |  17 +++++
 include/sysinfo.h         |   5 ++
 test/cmd/Makefile         |   1 +
 test/cmd/test_sysinfo.c   |  51 ++++++++++++++
 10 files changed, 370 insertions(+), 42 deletions(-)
 create mode 100644 cmd/sysinfo.c
 create mode 100644 doc/usage/cmd/sysinfo.rst
 create mode 100644 test/cmd/test_sysinfo.c

-- 
2.41.0


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

end of thread, other threads:[~2023-07-23 22:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-14 16:43 [PATCH v3 0/5] Introduce the sysinfo command Detlev Casanova
2023-07-14 16:43 ` [PATCH v3 1/6] sysinfo: Add IDs for board id and revision Detlev Casanova
2023-07-14 17:26   ` Marek Vasut
2023-07-14 16:43 ` [PATCH v3 2/6] cmd: Add a sysinfo command Detlev Casanova
2023-07-14 17:29   ` Marek Vasut
2023-07-14 16:43 ` [PATCH v3 3/6] sysinfo: Add a test Detlev Casanova
2023-07-14 17:30   ` Marek Vasut
2023-07-14 16:43 ` [PATCH v3 4/6] sysinfo: Add documentation Detlev Casanova
2023-07-14 17:31   ` Marek Vasut
2023-07-17 12:27     ` Detlev Casanova
2023-07-23 22:05       ` Marek Vasut
2023-07-14 16:43 ` [PATCH v3 5/6] sysinfo: rcar3: Use int instead of char for revision Detlev Casanova
2023-07-14 17:33   ` Marek Vasut
2023-07-14 18:27     ` Detlev Casanova
2023-07-23 22:09       ` Marek Vasut
2023-07-14 16:43 ` [PATCH v3 6/6] sysinfo: rcar3: Implement BOARD_ID and BOARD_REV_* Detlev Casanova

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox