summaryrefslogtreecommitdiff
path: root/src/acpi
diff options
context:
space:
mode:
authorWon Chung <wonchung@google.com>2021-11-15 21:19:51 +0000
committerFelix Held <felix-coreboot@felixheld.de>2021-11-22 15:12:01 +0000
commit667471b8d807da5a5a9277db47e069ad3b1351c7 (patch)
tree09e3ac71f271b1f4958fabebb6d8f0bbdbfd7b96 /src/acpi
parentc47beec2d3695348f75e0fad16e3cafb668ff0d3 (diff)
ec/google/chromeec: Add PLD to EC conn in ACPI table
Given EC CON and associated USB port objects, custom_pld or pld_group information is retrieved from port and added to ACPI table as _PLD field for typec connector. BUG=b:202446737 TEST=emerge-brya coreboot & SSDT dump in Brya test device Signed-off-by: Won Chung <wonchung@google.com> Change-Id: Ibc56ecd4e8954ffaace3acd9528a064b5fa2cf6f Reviewed-on: https://review.coreboot.org/c/coreboot/+/59401 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/acpi')
-rw-r--r--src/acpi/acpigen_usb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/acpi/acpigen_usb.c b/src/acpi/acpigen_usb.c
index 7448b3b569..2868fee2e6 100644
--- a/src/acpi/acpigen_usb.c
+++ b/src/acpi/acpigen_usb.c
@@ -2,6 +2,7 @@
#include <acpi/acpi.h>
#include <acpi/acpi_device.h>
+#include <acpi/acpi_pld.h>
#include <acpi/acpigen.h>
#include <acpi/acpigen_usb.h>
@@ -132,5 +133,8 @@ void acpigen_write_typec_connector(const struct typec_connector_class_config *co
add_custom_dsd_property(dsd, port_number);
acpi_dp_write(dsd);
+ /* Add PLD */
+ acpigen_write_pld(config->pld);
+
acpigen_pop_len(); /* Device */
}