summaryrefslogtreecommitdiff
path: root/include/init.h
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2023-11-28 12:53:14 -0500
committerTom Rini <[email protected]>2023-11-28 12:53:14 -0500
commit66c21738fd5ac3f23929911dd7aa38e1a3671eb9 (patch)
tree9a6685687069a3c48e138a47ed0fe3681a4995b2 /include/init.h
parentd6e052c6151e89d34af2f6337c5cded1b12dfdb8 (diff)
parente1302b3e305890cbf1c3bdf13321d1a3476dfae7 (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/init.h')
-rw-r--r--include/init.h11
1 files changed, 11 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);
/**