From 924c33b76096668a39dac328e10ab8999d615dc8 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 17 Nov 2021 20:55:13 -0700 Subject: ec/system76/ec: acpi: Add dGPU thermal reporting Add a new config for boards with dGPUs to enable reporting fan duty and temperature. The dGPU is not yet enabled on any boards, so it always reports the temp as 0. However, the EC firmware does use the dGPU's fan and so reports valid information for fan speed. Change-Id: Iae1063ee6a082a77ed026178eb9471bbc2b2fadf Signed-off-by: Jeremy Soller Signed-off-by: Tim Crawford Reviewed-on: https://review.coreboot.org/c/coreboot/+/57881 Tested-by: build bot (Jenkins) --- src/ec/system76/ec/Kconfig | 5 +++++ src/ec/system76/ec/acpi/s76.asl | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/ec/system76/ec/Kconfig b/src/ec/system76/ec/Kconfig index e9b8091f39..499b7f827c 100644 --- a/src/ec/system76/ec/Kconfig +++ b/src/ec/system76/ec/Kconfig @@ -13,6 +13,11 @@ config EC_SYSTEM76_EC_COLOR_KEYBOARD bool default n +config EC_SYSTEM76_EC_DGPU + depends on EC_SYSTEM76_EC + bool + default n + config EC_SYSTEM76_EC_OLED depends on EC_SYSTEM76_EC bool diff --git a/src/ec/system76/ec/acpi/s76.asl b/src/ec/system76/ec/acpi/s76.asl index 62a93bab3d..d641ada1a6 100644 --- a/src/ec/system76/ec/acpi/s76.asl +++ b/src/ec/system76/ec/acpi/s76.asl @@ -117,6 +117,9 @@ Device (S76D) { Method (NFAN, 0, Serialized) { Return (Package() { "CPU fan", +#if CONFIG(EC_SYSTEM76_EC_DGPU) + "GPU fan", +#endif }) } @@ -144,6 +147,9 @@ Device (S76D) { Method (NTMP, 0, Serialized) { Return (Package() { "CPU temp", +#if CONFIG(EC_SYSTEM76_EC_DGPU) + "GPU temp", +#endif }) } -- cgit v1.2.3