aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-02-04 21:17:23 -0700
committerBin Meng <bmeng.cn@gmail.com>2021-02-06 19:20:36 +0800
commit07c9e683a484bc8e5e22976feb54b1c1a460068d (patch)
tree3f7d2b7a970b0890e95038585befdb2a49b14c7f /include
parent2764cf5e974318b2b17448d04a50aa8b226c9877 (diff)
downloadu-boot-07c9e683a484bc8e5e22976feb54b1c1a460068d.zip
u-boot-07c9e683a484bc8e5e22976feb54b1c1a460068d.tar.gz
u-boot-07c9e683a484bc8e5e22976feb54b1c1a460068d.tar.bz2
smbios: Allow a few values to come from sysinfo
While static configuration is useful it cannot cover every case. Sometimes board revisions are encoded in resistor straps and must be read at runtime. The easiest way to provide this information is via sysinfo, since the board can then provide a driver to read whatever is needed. Add some standard sysinfo options for this, and use them to obtain the required information. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/sysinfo.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sysinfo.h b/include/sysinfo.h
index 6e02125..743f355 100644
--- a/include/sysinfo.h
+++ b/include/sysinfo.h
@@ -31,6 +31,17 @@
* to read the serial number.
*/
+/** enum sysinfo_id - Standard IDs defined by U-Boot */
+enum sysinfo_id {
+ SYSINFO_ID_NONE,
+
+ SYSINFO_ID_SMBIOS_SYSTEM_VERSION,
+ SYSINFO_ID_SMBIOS_BASEBOARD_VERSION,
+
+ /* First value available for downstream/board used */
+ SYSINFO_ID_USER = 0x1000,
+};
+
struct sysinfo_ops {
/**
* detect() - Run the hardware info detection procedure for this