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

Commit efdce97d authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi Committed by Archana Sriram
Browse files

drivers: thermal: virtual-sensor: Add new virtual sensor for MSM8917



Add new virtual sensor definition for penta-cpu-max-step for MSM8917.
This virtual sensor can be used to monitor the overall temperature
of CPU cluster device.

Change-Id: I6a587b42cb4a474e1ce53ebbf893bbc168f22be4
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Signed-off-by: default avatarArchana Sriram <apsrir@codeaurora.org>
parent 3de27838
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2019,2021, The Linux Foundation. All rights reserved.
 */

#include <linux/thermal.h>
@@ -173,6 +173,16 @@ static const struct virtual_sensor_data qti_virtual_sensors[] = {
		.coefficients = {30, 70},
		.avg_denominator = 100,
	},
	{
		.virt_zone_name = "penta-cpu-max-step",
		.num_sensors = 5,
		.sensor_names = {"apc1-cpu0-usr",
				"apc1-cpu1-usr",
				"apc1-cpu2-usr",
				"apc1-cpu3-usr",
				"cpuss-usr"},
		.logic = VIRT_MAXIMUM,
	},
};

int qti_virtual_sensor_register(struct device *dev)