intelblocks/pep: Send All Monitor Off/On command only in FWCM case

ALL_MONITOR_OFF command is sent using DPOF.
TBT controller needs to be notified about ALL_MONITOR_OFF(TBT Displays OFF) only when Firmware Connection Manager(FWCM) is in use during S0ix Entry/Exit. When configured for SWCM this command should not be sent.

BUG=b:288536417
TEST= Build and boot Rex Proto-1. Verify S0ix working.

Signed-off-by: Usha P <usha.p@intel.com>
Change-Id: I110fb971846f110e7d93a524ceda3bf4bfc15c13
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75717
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Utkarsh H Patel <utkarsh.h.patel@intel.corp-partner.google.com>
Reviewed-by: Jamie Ryu <jamie.m.ryu@intel.com>
Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
Usha P 2023-06-08 09:55:38 +05:30 committed by Martin L Roth
parent e6841610be
commit 05e88fe5a5
1 changed files with 10 additions and 6 deletions

View File

@ -249,9 +249,11 @@ static void lpi_s0ix_entry(void *unused)
acpigen_write_if_end();
/* Handle Thunderbolt displays */
acpigen_write_if_cond_ref_of(THUNDERBOLT_DEVICE);
acpigen_write_store_int_to_namestr(1, THUNDERBOLT_IOM_DPOF);
acpigen_write_if_end();
if (CONFIG(FIRMWARE_CONNECTION_MANAGER)) {
acpigen_write_if_cond_ref_of(THUNDERBOLT_DEVICE);
acpigen_write_store_int_to_namestr(1, THUNDERBOLT_IOM_DPOF);
acpigen_write_if_end();
}
}
static void lpi_s0ix_exit(void *unused)
@ -274,9 +276,11 @@ static void lpi_s0ix_exit(void *unused)
acpigen_write_if_end();
/* Handle Thunderbolt displays */
acpigen_write_if_cond_ref_of(THUNDERBOLT_DEVICE);
acpigen_write_store_int_to_namestr(0, THUNDERBOLT_IOM_DPOF);
acpigen_write_if_end();
if (CONFIG(FIRMWARE_CONNECTION_MANAGER)) {
acpigen_write_if_cond_ref_of(THUNDERBOLT_DEVICE);
acpigen_write_store_int_to_namestr(0, THUNDERBOLT_IOM_DPOF);
acpigen_write_if_end();
}
}
static void lpi_display_on(void *unused)