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

Commit c53aac75 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: qti-virtual-sensor: Add hexa cpu max virtual sensor for SDM429"

parents bd7b1f86 6600665c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@
			qcom,use-voltage-level;
		};

		pm660_cx_cdev: regulator-cx-cdev {
		pm660_cx_cdev: cx {
			compatible = "qcom,regulator-cooling-device";
			regulator-cdev-supply = <&pm660_s1_floor_level>;
			regulator-levels = <RPM_SMD_REGULATOR_LEVEL_NOM_PLUS
+12 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-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
@@ -181,6 +181,17 @@ static const struct virtual_sensor_data qti_virtual_sensors[] = {
				"gpuss-3-usr"},
		.logic = VIRT_MAXIMUM,
	},
	{
		.virt_zone_name = "hexa-cpu-max-step",
		.num_sensors = 6,
		.sensor_names = {"apc1-cpu0-usr",
				"apc1-cpu1-usr",
				"apc1-cpu2-usr",
				"apc1-cpu3-usr",
				"cpuss0-usr",
				"cpuss1-usr"},
		.logic = VIRT_MAXIMUM,
	},
};

int qti_virtual_sensor_register(struct device *dev)