diff options
author | Jeremy Soller <jeremy@system76.com> | 2021-11-17 20:55:13 -0700 |
---|---|---|
committer | Patrick Georgi <patrick@coreboot.org> | 2021-11-23 09:22:39 +0000 |
commit | 924c33b76096668a39dac328e10ab8999d615dc8 (patch) | |
tree | 4d40c45d99a702dceaaf5bc5d6bf36afd947fdde | |
parent | 12a98ffbfb6660552fb2940b0a8aae2edfdfda66 (diff) |
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 <jeremy@system76.com>
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57881
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/ec/system76/ec/Kconfig | 5 | ||||
-rw-r--r-- | src/ec/system76/ec/acpi/s76.asl | 6 |
2 files changed, 11 insertions, 0 deletions
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 }) } |