]> git.baikalelectronics.ru Git - uboot.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)
commit3366ed4639e7cbfcd5f9b24e37a2c5f99a675890
tree3f7d2b7a970b0890e95038585befdb2a49b14c7f
parent03f9c35f3e5a4ca4a5a444f9658bc3be0a0adc30
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