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>
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
|
Reference in New Issue
Block a user