1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-27 08:33:10 +01:00

efi: smbios: Drop support for SMBIOS2 tables

Only the v3 table is supported now, so always use this when installing
the EFI table.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Simon Glass
2023-12-31 08:25:52 -07:00
parent 1c5f6fa388
commit aa8499680c

View File

@@ -27,7 +27,6 @@ enum {
*/ */
efi_status_t efi_smbios_register(void) efi_status_t efi_smbios_register(void)
{ {
const efi_guid_t *guid;
ulong addr; ulong addr;
efi_status_t ret; efi_status_t ret;
void *buf; void *buf;
@@ -47,8 +46,7 @@ efi_status_t efi_smbios_register(void)
/* Install SMBIOS information as configuration table */ /* Install SMBIOS information as configuration table */
buf = map_sysmem(addr, 0); buf = map_sysmem(addr, 0);
guid = !memcmp(buf, "_SM_", 4) ? &smbios_guid : &smbios3_guid; ret = efi_install_configuration_table(&smbios3_guid, buf);
ret = efi_install_configuration_table(guid, buf);
unmap_sysmem(buf); unmap_sysmem(buf);
return ret; return ret;