diff options
| author | Tom Rini <trini@konsulko.com> | 2023-11-28 12:53:14 -0500 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2023-11-28 12:53:14 -0500 |
| commit | 66c21738fd5ac3f23929911dd7aa38e1a3671eb9 (patch) | |
| tree | 9a6685687069a3c48e138a47ed0fe3681a4995b2 /include | |
| parent | d6e052c6151e89d34af2f6337c5cded1b12dfdb8 (diff) | |
| parent | e1302b3e305890cbf1c3bdf13321d1a3476dfae7 (diff) | |
Merge patch series "sysinfo: Expand sysinfo with some more banner information"
To quote the author:
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.
Diffstat (limited to 'include')
| -rw-r--r-- | include/init.h | 11 | ||||
| -rw-r--r-- | include/sysinfo.h | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/init.h b/include/init.h index d57a24fd00d..9a1951d10a0 100644 --- a/include/init.h +++ b/include/init.h @@ -292,6 +292,17 @@ int misc_init_r(void); /* common/board_info.c */ int checkboard(void); + +/** + * show_board_info() - Show board information + * + * Check sysinfo for board information. Failing that if the root node of the DTB + * has a "model" property, show it. + * + * Then call checkboard(). + * + * Return 0 if OK, -ve on error + */ int show_board_info(void); /** diff --git a/include/sysinfo.h b/include/sysinfo.h index b140d742e93..f2c1aa29d18 100644 --- a/include/sysinfo.h +++ b/include/sysinfo.h @@ -46,6 +46,9 @@ enum sysinfo_id { /* For show_board_info() */ SYSINFO_ID_BOARD_MODEL, + SYSINFO_ID_BOARD_MANUFACTURER, + SYSINFO_ID_PRIOR_STAGE_VERSION, + SYSINFO_ID_PRIOR_STAGE_DATE, /* First value available for downstream/board used */ SYSINFO_ID_USER = 0x1000, |
