diff options
author | John Zhao <john.zhao@intel.com> | 2021-04-27 10:47:25 -0700 |
---|---|---|
committer | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2021-05-18 21:58:45 +0000 |
commit | 0b3f15c2593270b78756afb68c6465e705db4ba2 (patch) | |
tree | 5a124ac8841397c7d1c0a915fdf8495f5585c2a7 /src/drivers/intel/usb4/retimer/chip.h | |
parent | a7f8fb59e560b8b5e32d5241942c21bd2fa00f20 (diff) |
drivers/intel/usb4: Update driver to support Retimer firmware upgrade
Along with upstream kernel for Retimer firmware upgrade, coreboot
provides DFPx under host router where each DFP has its PLD and DSM. The
DFPx's functions encapsulates power control through GPIO, PD
suspend/resume and modes setting for Retimer firmware update under NDA
scenario.
BUG=b:186521258
TEST=Booted to kernel and validated host router's DFPx properties after
decomposing SSDT table.
Signed-off-by: John Zhao <john.zhao@intel.com>
Change-Id: I81bef80729f6df57119f5523358620cb015e5406
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52712
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/intel/usb4/retimer/chip.h')
-rw-r--r-- | src/drivers/intel/usb4/retimer/chip.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/drivers/intel/usb4/retimer/chip.h b/src/drivers/intel/usb4/retimer/chip.h index 789d824a81..5b1c76f53c 100644 --- a/src/drivers/intel/usb4/retimer/chip.h +++ b/src/drivers/intel/usb4/retimer/chip.h @@ -4,10 +4,19 @@ #define __DRIVERS_INTEL_USB4_RETIMER_H__ #include <acpi/acpi_device.h> +#include <acpi/acpi.h> +#include <acpi/acpi_pld.h> + +#define DFP_NUM_MAX 2 struct drivers_intel_usb4_retimer_config { - /* GPIO used to control power of retimer device. */ - struct acpi_gpio power_gpio; + /* Downstream facing port(DFP) */ + struct { + /* GPIO used to control power of retimer device */ + struct acpi_gpio power_gpio; + /* _PLD setting */ + struct acpi_pld_group group; + } dfp[DFP_NUM_MAX]; }; #endif /* __DRIVERS_INTEL_USB4_RETIMER_H__ */ |