acpi: Generate object for coreboot table region

Hardware / Coreboot - Duncan Laurie [chromium.org] - 5 August 2016 21:35 UTC

Generate an object to describe the coreboot table region in ACPI with the HID "CORE0000" so it can be used by kernel drivers.

To keep track of the "CORE" HID usage add them to an enum and add a function to generate the HID in AML: Name (_HID, "CORExxxx")

BUG=chromium:589817 BRANCH=none TEST=build and boot on chell, dump SSDT to verify contents:

Device (CTBL) { Name (_HID, "CORE0000") // _HID: Hardware ID Name (_UID, Zero) // _UID: Unique ID Method (_STA, 0, NotSerialized) // _STA: Status { Return (0x0F) } Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings { Memory32Fixed (ReadOnly, 0x7AB84000, // Address Base 0x00008000, // Address Length ) }) }

Change-Id: I2c681c1fee02d52b8df2e72f6f6f0b76fa9592fb

3731903 acpi: Generate object for coreboot table region
src/arch/x86/acpi.c | 27 +++++++++++++++++++++++++++
src/arch/x86/acpigen.c | 8 ++++++++
src/arch/x86/include/arch/acpi.h | 6 ++++++
src/arch/x86/include/arch/acpigen.h | 1 +
4 files changed, 42 insertions(+)

Upstream: review.coreboot.org


  • Share