diff options
author | Raul E Rangel <rrangel@chromium.org> | 2021-05-12 17:05:37 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-05-20 08:01:19 +0000 |
commit | cecadfd42afcb77b19040d957c72218962ffd726 (patch) | |
tree | 805987314baad096f57b25869cb0ae906685a329 /src | |
parent | 9bf32b9701ddabb3a584f47247416b4a16d1902b (diff) | |
download | coreboot-cecadfd42afcb77b19040d957c72218962ffd726.tar.xz |
ec/google/chromeec: Implement support for DRIVERS_ACPI_THERMAL_ZONE
This adds the required method to access temperature data from the
ChromeEC.
BUG=b:186166365
TEST=Boot guybrush to the OS and verify temperatures
$ tail /sys/devices/virtual/thermal/thermal_zone*/temp
==> /sys/devices/virtual/thermal/thermal_zone0/temp <==
31900
==> /sys/devices/virtual/thermal/thermal_zone1/temp <==
34900
==> /sys/devices/virtual/thermal/thermal_zone2/temp <==
31900
==> /sys/devices/virtual/thermal/thermal_zone3/temp <==
33900
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: I418b6691a7d00a4c2d89c9c1fe8f9416602be0f1
Reviewed-on: https://review.coreboot.org/c/coreboot/+/54133
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/ec/google/chromeec/acpi/cros_ec.asl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/acpi/cros_ec.asl b/src/ec/google/chromeec/acpi/cros_ec.asl index 66f9a0a16c..5a9541349b 100644 --- a/src/ec/google/chromeec/acpi/cros_ec.asl +++ b/src/ec/google/chromeec/acpi/cros_ec.asl @@ -55,4 +55,11 @@ Device (CREC) { Return (0xB) } + +#if CONFIG(DRIVERS_ACPI_THERMAL_ZONE) + Method(TMP, 1) + { + Return(^^TSRD(Arg0)) + } +#endif } |