summaryrefslogtreecommitdiff
path: root/lib/smbios.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-15 18:00:11 +1300
committerSimon Glass <sjg@chromium.org>2021-03-27 13:59:37 +1300
commit272e62cb83f01acf7ae89449eaa9f020e76bff23 (patch)
tree6cc4a049fcd22bc1e95987e5a6285464224df29f /lib/smbios.c
parent11a38a2573fa6a765043df94eae44544a0d948f4 (diff)
downloadu-boot-272e62cb83f01acf7ae89449eaa9f020e76bff23.tar.gz
u-boot-272e62cb83f01acf7ae89449eaa9f020e76bff23.tar.bz2
u-boot-272e62cb83f01acf7ae89449eaa9f020e76bff23.zip
smbios: Allow writing to the coreboot version string
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>
Diffstat (limited to 'lib/smbios.c')
-rw-r--r--lib/smbios.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/smbios.c b/lib/smbios.c
index 7d463c84a9..9eb226ec9f 100644
--- a/lib/smbios.c
+++ b/lib/smbios.c
@@ -20,10 +20,6 @@
DECLARE_GLOBAL_DATA_PTR;
-enum {
- SMBIOS_STR_MAX = 64, /* Maximum length allowed for a string */
-};
-
/**
* struct smbios_ctx - context for writing SMBIOS tables
*