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

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

Merge "defconfig: lito: Enable LMH DCVSh driver"

parents c4443f82 d0fe2f25
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -368,6 +368,7 @@ CONFIG_QTI_QMI_SENSOR=y
CONFIG_QTI_BCL_PMIC5=y
CONFIG_QTI_BCL_SOC_DRIVER=y
CONFIG_QTI_QMI_COOLING_DEVICE=y
CONFIG_QTI_THERMAL_LIMITS_DCVS=y
CONFIG_QTI_AOP_REG_COOLING_DEVICE=y
CONFIG_QTI_CPU_ISOLATE_COOLING_DEVICE=y
CONFIG_QTI_LMH_CPU_VDD_COOLING_DEVICE=y
+1 −0
Original line number Diff line number Diff line
@@ -375,6 +375,7 @@ CONFIG_QTI_QMI_SENSOR=y
CONFIG_QTI_BCL_PMIC5=y
CONFIG_QTI_BCL_SOC_DRIVER=y
CONFIG_QTI_QMI_COOLING_DEVICE=y
CONFIG_QTI_THERMAL_LIMITS_DCVS=y
CONFIG_QTI_AOP_REG_COOLING_DEVICE=y
CONFIG_QTI_CPU_ISOLATE_COOLING_DEVICE=y
CONFIG_QTI_LMH_CPU_VDD_COOLING_DEVICE=y
+12 −5
Original line number Diff line number Diff line
@@ -529,6 +529,7 @@ static int limits_dcvs_probe(struct platform_device *pdev)
	int cpu, idx = 0;
	cpumask_t mask = { CPU_BITS_NONE };
	const __be32 *addr;
	bool no_cdev_register = false;

	for_each_possible_cpu(cpu) {
		cpu_node = of_cpu_device_node_get(cpu);
@@ -590,6 +591,9 @@ static int limits_dcvs_probe(struct platform_device *pdev)
		return -EINVAL;
	}

	no_cdev_register = of_property_read_bool(dn,
				"qcom,no-cooling-device-register");

	addr = of_get_address(dn, 0, NULL, NULL);
	if (!addr) {
		pr_err("Property llm-base-addr not found\n");
@@ -675,11 +679,14 @@ static int limits_dcvs_probe(struct platform_device *pdev)
	mutex_unlock(&lmh_dcvs_list_access);
	lmh_debug_register(pdev);

	ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "lmh-dcvs/cdev:online",
	if (!no_cdev_register) {
		ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN,
					"lmh-dcvs/cdev:online",
					limits_cpu_online, NULL);
		if (ret < 0)
			goto unregister_sensor;
		ret = 0;
	}

	return ret;