diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-21 16:50:06 +1300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-27 16:26:48 +1300 |
commit | 96dedb0da2e8b27165c755fab8d06b15a8b8097a (patch) | |
tree | 3125fc55baefa3bd080010aad8588267bf6c7715 /include/sysinfo.h | |
parent | c119528a1dd0ac719040d234c0a368a0ebaeb745 (diff) | |
download | u-boot-96dedb0da2e8b27165c755fab8d06b15a8b8097a.tar.gz u-boot-96dedb0da2e8b27165c755fab8d06b15a8b8097a.tar.bz2 u-boot-96dedb0da2e8b27165c755fab8d06b15a8b8097a.zip |
sysinfo: Allow showing model info from sysinfo
Some boards may want to show the SKU ID or other information obtained at
runtime. Allow this to come from sysinfo. The board can then provide a
sysinfo driver to provide it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/sysinfo.h')
-rw-r--r-- | include/sysinfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sysinfo.h b/include/sysinfo.h index 270ac1b377..68fad25a06 100644 --- a/include/sysinfo.h +++ b/include/sysinfo.h @@ -37,9 +37,13 @@ struct udevice; enum sysinfo_id { SYSINFO_ID_NONE, + /* For SMBIOS tables */ SYSINFO_ID_SMBIOS_SYSTEM_VERSION, SYSINFO_ID_SMBIOS_BASEBOARD_VERSION, + /* For show_board_info() */ + SYSINFO_ID_BOARD_MODEL, + /* First value available for downstream/board used */ SYSINFO_ID_USER = 0x1000, }; |