aboutsummaryrefslogtreecommitdiff
path: root/lib/smbios-parser.c
Commit message (Collapse)AuthorAgeFilesLines
* smbios: Allow writing to the coreboot version stringSimon Glass2021-03-271-0/+38
| | | | | | | | | | | | | | When U-Boot is booted from coreboot the SMBIOS tables are written by coreboot, not U-Boot. The existing method of updating the BIOS version string does not work in that case, since gd->smbios_version is only set when U-Boot writes the tables. Add a new function which allows the version to be updated by parsing the tables and writing the string in the correct place. Since coreboot provides a pointer to the SMBIOS tables in its sysinfo structure, this makes it easy to do the update. Signed-off-by: Simon Glass <sjg@chromium.org>
* smbios: add parsing APIChristian Gmeiner2020-11-051-0/+96
Add a very simple API to be able to access SMBIOS strings like vendor, model and bios version. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>