summaryrefslogtreecommitdiffstats
path: root/arch/x86/lib/tables.c
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-10-12 05:23:41 -0700
committerSimon Glass <sjg@chromium.org>2015-10-21 07:46:26 -0600
commit721e992a8af5e80b2a95a0bc92c9880f2056190b (patch)
tree9c853033b832dea7df0f6210cdce8b967d2917d1 /arch/x86/lib/tables.c
parenta34b46768f63065ccdf4ae1ddcfe3a184e8822b5 (diff)
downloadtalos-obmc-uboot-721e992a8af5e80b2a95a0bc92c9880f2056190b.tar.gz
talos-obmc-uboot-721e992a8af5e80b2a95a0bc92c9880f2056190b.zip
x86: Add SMBIOS table support
System Management BIOS (SMBIOS) is a specification for how motherboard and system vendors present management information about their products in a standard format by extending the BIOS interface on Intel architecture systems. As of today the latest spec is 3.0 and can be downloaded from DMTF website. This commit adds a simple and minimum required implementation. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/lib/tables.c')
-rw-r--r--arch/x86/lib/tables.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/lib/tables.c b/arch/x86/lib/tables.c
index f15b2e2855..14b15cf389 100644
--- a/arch/x86/lib/tables.c
+++ b/arch/x86/lib/tables.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <asm/sfi.h>
#include <asm/mpspec.h>
+#include <asm/smbios.h>
#include <asm/tables.h>
#include <asm/acpi_table.h>
@@ -56,4 +57,8 @@ void write_tables(void)
rom_table_end = write_acpi_tables(rom_table_end);
rom_table_end = ALIGN(rom_table_end, 1024);
#endif
+#ifdef CONFIG_GENERATE_SMBIOS_TABLE
+ rom_table_end = write_smbios_table(rom_table_end);
+ rom_table_end = ALIGN(rom_table_end, 1024);
+#endif
}
OpenPOWER on IntegriCloud