]> git.sur5r.net Git - u-boot/commit
x86: Generate a valid ACPI table
authorSaket Sinha <saket.sinha89@gmail.com>
Sat, 22 Aug 2015 06:50:55 +0000 (12:20 +0530)
committerSimon Glass <sjg@chromium.org>
Wed, 26 Aug 2015 14:54:13 +0000 (07:54 -0700)
commit867bcb63e79f66bc88d4546d132c5895ea339a66
treecbb8f29bce91af6f15445354f874f2fd1cbf51d1
parentdce54dd6c70e6af9a1b506ed45c0cfc9a90fcc92
x86: Generate a valid ACPI table

Implement write_acpi_table() to create a minimal working ACPI table.
This includes writing FACS, XSDT, RSDP, FADT, MCFG, MADT, DSDT & SSDT
ACPI table entries.

Use a Kconfig option GENERATE_ACPI_TABLE to tell U-Boot whether we need
actually write the APCI table just like we did for PIRQ routing, MP table
and SFI tables. With ACPI table existence, linux kernel gets control of
power management, thermal management, configuration management and
monitoring in hardware.

Signed-off-by: Saket Sinha <saket.sinha89@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tidied up whitespace and aligned some tabs:
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/Kconfig
arch/x86/include/asm/acpi_table.h [new file with mode: 0644]
arch/x86/lib/Makefile
arch/x86/lib/acpi_table.c [new file with mode: 0644]
arch/x86/lib/tables.c
scripts/Makefile.lib