]> git.dujemihanovic.xyz Git - u-boot.git/commit
smbios: Allow a few values to come from sysinfo
authorSimon Glass <sjg@chromium.org>
Fri, 5 Feb 2021 04:17:23 +0000 (21:17 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sat, 6 Feb 2021 11:20:36 +0000 (19:20 +0800)
commit07c9e683a484bc8e5e22976feb54b1c1a460068d
tree3f7d2b7a970b0890e95038585befdb2a49b14c7f
parent2764cf5e974318b2b17448d04a50aa8b226c9877
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>
include/sysinfo.h
lib/smbios.c