Sumeet R Pawnikar has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/62789 )
Change subject: ec/google/chromeec: add fan speed rpm control ......................................................................
ec/google/chromeec: add fan speed rpm control
Add fan speed rpm control for DPTF based Active2 policy.
BUG=b:224457192 BRANCH=None TEST=Built and booted on ADL-P based Brya system
Change-Id: Ibb1646b1fb1659fd853ece97d97bb9dee2a3f57e Signed-off-by: Sumeet Pawnikar sumeet.r.pawnikar@intel.com --- M src/ec/google/chromeec/acpi/ec.asl M src/ec/google/chromeec/ec_dptf_helpers.c 2 files changed, 7 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/62789/1
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl index 69d608b..afb2293 100644 --- a/src/ec/google/chromeec/acpi/ec.asl +++ b/src/ec/google/chromeec/acpi/ec.asl @@ -82,6 +82,7 @@ BTID, 8, // Battery index that host wants to read USPP, 8, // USB Port Power RFWU, 8, // Retimer Firmware Update + CFSP, 8, // Set Fan speed in rpm }
#if CONFIG(EC_GOOGLE_CHROMEEC_ACPI_MEMMAP) diff --git a/src/ec/google/chromeec/ec_dptf_helpers.c b/src/ec/google/chromeec/ec_dptf_helpers.c index 94b13fb..e54a034 100644 --- a/src/ec/google/chromeec/ec_dptf_helpers.c +++ b/src/ec/google/chromeec/ec_dptf_helpers.c @@ -109,6 +109,12 @@ acpigen_emit_namestring("TFST"); acpigen_write_integer(1); acpigen_emit_byte(ZERO_OP); /* 3rd arg to Index */ + acpigen_write_store(); + acpigen_emit_namestring(acpi_device_path_join(ec, "CFSP")); + acpigen_emit_byte(INDEX_OP); + acpigen_emit_namestring("TFST"); + acpigen_write_integer(2); + acpigen_emit_byte(ZERO_OP); acpigen_emit_byte(RETURN_OP); acpigen_emit_namestring("TFST"); acpigen_pop_len(); /* Method _FST */