[PATCH v1 1/4] sysinfo: Add IDs for board id and revision

Detlev Casanova detlev.casanova at collabora.com
Fri Jun 16 17:21:19 CEST 2023


These IDs will be used by the sysinfo command. The new IDs are:
 * SYSINFO_ID_BOARD_ID: The board ID as an integer
 * SYSINFO_ID_BOARD_REVISION: The board revision as a string

Signed-off-by: Detlev Casanova <detlev.casanova at collabora.com>
---
 include/sysinfo.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/sysinfo.h b/include/sysinfo.h
index b140d742e93..e2a7b10b6f6 100644
--- a/include/sysinfo.h
+++ b/include/sysinfo.h
@@ -47,6 +47,10 @@ enum sysinfo_id {
 	/* For show_board_info() */
 	SYSINFO_ID_BOARD_MODEL,
 
+	/* For sysinfo command */
+	SYSINFO_ID_BOARD_ID,
+	SYSINFO_ID_BOARD_REVISION,
+
 	/* First value available for downstream/board used */
 	SYSINFO_ID_USER = 0x1000,
 };
-- 
2.39.3



More information about the U-Boot mailing list