diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2021-01-20 22:37:30 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-08 18:37:13 +0000 |
commit | 2939dd85315f329f85792f6a8a6ef7db8f5546ba (patch) | |
tree | 62dc425432ce4925dca1a29566aa61beca71d711 /include/temp_sensor.h | |
parent | 25b7400dcb42e54e27dabfba60d35f46dab41097 (diff) | |
download | chrome-ec-2939dd85315f329f85792f6a8a6ef7db8f5546ba.tar.gz |
thermal: Print temperature sensor values before shutting down AP
On a thermal shutdown print temperature sensor values before shutting
down AP so that it is easy to track which sensor is high.
BUG=none
BRANCH=none
TEST=Tested on Terrador, able to print temperature sensor values
before chipset shutdown is called.
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Change-Id: I02b59d0409c275809af39dee4f409774c55e4462
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2639151
Reviewed-by: Sooraj Govindan <sooraj.govindan@intel.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include/temp_sensor.h')
-rw-r--r-- | include/temp_sensor.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/temp_sensor.h b/include/temp_sensor.h index f7b5371a1d..e5eff92cf1 100644 --- a/include/temp_sensor.h +++ b/include/temp_sensor.h @@ -57,4 +57,14 @@ extern const struct temp_sensor_t temp_sensors[]; */ int temp_sensor_read(enum temp_sensor_id id, int *temp_ptr); +/** + * Console command to print temperature sensor values + * + * @param argc argument count (Set argc = 1) + * @param argv argument vector (Set argv = NULL) + * + * @return EC_SUCCESS, or non-zero if error. + */ +int console_command_temps(int argc, char **argv); + #endif /* __CROS_EC_TEMP_SENSOR_H */ |