acpi: Add support for writing ACPI _PLD structures

Hardware / Coreboot - Duncan Laurie [google.com] - 11 May 2018 09:00 EDT

This commit adds support for writing ACPI _PLD structures that describe the physical location of a device to the OS.

This can be used by any device with a physical connector, but is required when defining USB ports for the OS.

A simple function is provided that generates a generic _PLD structure for USB ports based on the USB port type.

Change-Id: Ic9cf1fd158eca80ead21b4725b37ab3c36b000f3

3e7197a59e acpi: Add support for writing ACPI _PLD structures
src/arch/x86/Makefile.inc | 1 +
src/arch/x86/acpi_pld.c | 169 +++++++++++++++++++++++++++++++++++
src/arch/x86/acpigen.c | 11 +++
src/arch/x86/include/arch/acpi_pld.h | 120 +++++++++++++++++++++++++
src/arch/x86/include/arch/acpigen.h | 2 +
5 files changed, 303 insertions(+)

Upstream: review.coreboot.org


  • Share