]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: Generate a valid ACPI table
authorSaket Sinha <saket.sinha89@gmail.com>
Sat, 22 Aug 2015 06:50:55 +0000 (12:20 +0530)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 09:29:46 +0000 (11:29 +0200)
commit57c2448a06b6662a5a0a77f748adaee31c856524
tree3dc96aa98ac4550736502270362ec5e39b422ed3
parentbb38e319f917be4521b5b439aad5b268e1ccd371
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