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:
@@ -3,6 +3,8 @@
|
||||
#ifndef ACPI_ACPIGEN_USB_H
|
||||
#define ACPI_ACPIGEN_USB_H
|
||||
|
||||
#include <acpi/acpi_pld.h>
|
||||
|
||||
enum usb_typec_power_role {
|
||||
TYPEC_POWER_ROLE_SOURCE,
|
||||
TYPEC_POWER_ROLE_SINK,
|
||||
@@ -39,6 +41,7 @@ enum usb_typec_data_role {
|
||||
* host or device, for the USB port
|
||||
* @mode_switch: Reference to the ACPI device that controls routing of data lines to
|
||||
* various endpoints (xHCI, DP, etc.) on the SoC.
|
||||
* @pld: Reference to PLD information.
|
||||
*/
|
||||
struct typec_connector_class_config {
|
||||
enum usb_typec_power_role power_role;
|
||||
@@ -50,6 +53,7 @@ struct typec_connector_class_config {
|
||||
const struct device *orientation_switch;
|
||||
const struct device *usb_role_switch;
|
||||
const struct device *mode_switch;
|
||||
const struct acpi_pld *pld;
|
||||
};
|
||||
|
||||
typedef void (*add_custom_dsd_property_cb)(struct acpi_dp *dsd, int port_number);
|
||||
|
Reference in New Issue
Block a user