Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8de91e3 authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi Committed by Gerrit - the friendly Code Review server
Browse files

drivers: thermal: qmi_sensors: Add modem QPM qmi sensors



Add modem QPM sensors to QPM qmi sensors list. It enables
these qmi sensors to expose as thermal zones and apps can
able to monitor and mitigate for these sensors.

Change-Id: I7f7a7553a56b1fb8eda414748111d70423247a27
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 42d485ca
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -57,6 +57,12 @@ Subsystem properties:
		24. sys_therm1
		25. sys_therm2
		26. modem_tsens1
		27. qfe_ret_pa0_fr1
		28. qfe_wtr_pa0_fr1
		29. qfe_wtr_pa1_fr1
		30. qfe_wtr_pa2_fr1
		31. qfe_wtr_pa3_fr1


Example:

+11 −1
Original line number Diff line number Diff line
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -64,6 +64,11 @@ enum qmi_ts_sensor {
	QMI_SYS_THERM1,
	QMI_SYS_THERM2,
	QMI_TS_TSENS_1,
	QMI_TS_RET_PA_0_FR1,
	QMI_TS_WTR_PA_0_FR1,
	QMI_TS_WTR_PA_1_FR1,
	QMI_TS_WTR_PA_2_FR1,
	QMI_TS_WTR_PA_3_FR1,
	QMI_TS_MAX_NR
};

@@ -121,6 +126,11 @@ static char sensor_clients[QMI_TS_MAX_NR][QMI_CLIENT_NAME_LENGTH] = {
	{"sys_therm1"},
	{"sys_therm2"},
	{"modem_tsens1"},
	{"qfe_ret_pa0_fr1"},
	{"qfe_wtr_pa0_fr1"},
	{"qfe_wtr_pa1_fr1"},
	{"qfe_wtr_pa2_fr1"},
	{"qfe_wtr_pa3_fr1"},
};

static int32_t encode_qmi(int32_t val)