Commit e6ddb6b0135949e67bf5face7bdff522e493e1e2

Authored by Bin Meng
1 parent 7ee371063f

x86: galileo: Enable ACPI table generation

Enable ACPI table generation by creating a DSDT table.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

Showing 6 changed files with 34 additions and 1 deletions Side-by-side Diff

board/intel/galileo/.gitignore
  1 +dsdt.aml
  2 +dsdt.asl.tmp
  3 +dsdt.c
board/intel/galileo/Makefile
... ... @@ -5,4 +5,5 @@
5 5 #
6 6  
7 7 obj-y += galileo.o start.o
  8 +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o
board/intel/galileo/acpi/mainboard.asl
  1 +/*
  2 + * Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
  3 + *
  4 + * SPDX-License-Identifier: GPL-2.0+
  5 + */
  6 +
  7 +/* Power Button */
  8 +Device (PWRB)
  9 +{
  10 + Name(_HID, EISAID("PNP0C0C"))
  11 +}
board/intel/galileo/dsdt.asl
  1 +/*
  2 + * Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
  3 + *
  4 + * SPDX-License-Identifier: GPL-2.0+
  5 + */
  6 +
  7 +DefinitionBlock("dsdt.aml", "DSDT", 2, "U-BOOT", "U-BOOTBL", 0x00010000)
  8 +{
  9 + /* platform specific */
  10 + #include <asm/arch/acpi/platform.asl>
  11 +
  12 + /* board specific */
  13 + #include "acpi/mainboard.asl"
  14 +}
configs/galileo_defconfig
... ... @@ -5,6 +5,7 @@
5 5 CONFIG_ENABLE_MRC_CACHE=y
6 6 CONFIG_GENERATE_PIRQ_TABLE=y
7 7 CONFIG_GENERATE_MP_TABLE=y
  8 +CONFIG_GENERATE_ACPI_TABLE=y
8 9 CONFIG_FIT=y
9 10 CONFIG_BOOTSTAGE=y
10 11 CONFIG_BOOTSTAGE_REPORT=y
... ... @@ -1028,11 +1028,14 @@
1028 1028 those legacy stuff into U-Boot. ACPI spec allows a system that does not
1029 1029 support SMI (a legacy-free system).
1030 1030  
1031   -So far ACPI is enabled on BayTrail based boards. Testing was done by booting
  1031 +ACPI was initially enabled on BayTrail based boards. Testing was done by booting
1032 1032 a pre-installed Ubuntu 14.04 from a SATA drive. Installing Ubuntu 14.04 and
1033 1033 Windows 8.1/10 to a SATA drive and booting from there is also tested. Most
1034 1034 devices seem to work correctly and the board can respond a reboot/shutdown
1035 1035 command from the OS.
  1036 +
  1037 +For other platform boards, ACPI support status can be checked by examining their
  1038 +board defconfig files to see if CONFIG_GENERATE_ACPI_TABLE is set to y.
1036 1039  
1037 1040 TODO List
1038 1041 ---------