diff options
author | Simon Glass <sjg@chromium.org> | 2015-04-28 20:25:10 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-29 21:02:33 -0600 |
commit | 6388e357254e091fe857493511652a95467b5324 (patch) | |
tree | 909c92a6de57d96a07403c6e1e60d70c8c25ba56 /arch/x86/lib/tables.c | |
parent | 11f4dc1583c387fbb46d473c942c4bcfe5af303e (diff) |
x86: Add support for the Simple Firmware Interface (SFI)
This provides a way of passing information to Linux without requiring the
full ACPI horror. Provide a rudimentary implementation sufficient to be
recognised and parsed by Linux.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/lib/tables.c')
-rw-r--r-- | arch/x86/lib/tables.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/lib/tables.c b/arch/x86/lib/tables.c index 0836e1e426..8031201a49 100644 --- a/arch/x86/lib/tables.c +++ b/arch/x86/lib/tables.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <asm/sfi.h> #include <asm/tables.h> u8 table_compute_checksum(void *v, int len) @@ -27,4 +28,8 @@ void write_tables(void) rom_table_end = write_pirq_routing_table(rom_table_end); rom_table_end = ALIGN(rom_table_end, 1024); #endif +#ifdef CONFIG_GENERATE_SFI_TABLE + rom_table_end = write_sfi_table(rom_table_end); + rom_table_end = ALIGN(rom_table_end, 1024); +#endif } |