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

Commit e9416761 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: limits: lmh_lite: Add limits management hardware driver"

parents 79d7f98f 0135bfa8
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
Limits Mangement Hardware driver
================================
LMH driver provides API to interact with the LMH hardware. All the calls to
the LMH hardware are routed via secure space.

The device tree parameters for LMH driver are:

Required parameters:
- compatible:	Must be "qcom,lmh"

- interrupts : LMH Lite hardware interrupt details.
- reg : Base address of the LMH Lite hardwares interrupt status register
		and its size in bytes.
- qcom,lmh-trim-err-offset : This property defines the bit in the LMH
		interrupt status register, which shows whether there is a
		trim error in LMH hardware.

Example:

qcom,lmh {
	compatible = "qcom,lmh";
	interrupts = <0 332 4>;
	reg = <0xF9117000 0x4>;
	qcom,lmh-trim-err-offset = <18>;
};
+9 −0
Original line number Diff line number Diff line
@@ -109,6 +109,15 @@ config LIMITS_MONITOR
	  Limits hardware's monitoring entities as sensors with the thermal
	  framework.

config LIMITS_LITE_HW
	bool "LMH Lite hardware driver"
	depends on LIMITS_MONITOR
	help
	 Enable this option for interacting with LMH Lite hardware. This
	 implements the APIs required for getting the details about sensors
	 supported by LMH Lite, their throttling intensity and the operating
	 profiles.

config THERMAL_MONITOR
	bool "Monitor thermal state and limit CPU Frequency"
	depends on THERMAL_TSENS8960 || THERMAL_TSENS8974
+1 −0
Original line number Diff line number Diff line
@@ -28,3 +28,4 @@ obj-$(CONFIG_THERMAL_QPNP) += qpnp-temp-alarm.o
obj-$(CONFIG_THERMAL_QPNP_ADC_TM)	+= qpnp-adc-tm.o
obj-$(CONFIG_THERMAL_MONITOR)	+= msm_thermal.o msm_thermal-dev.o
obj-$(CONFIG_LIMITS_MONITOR)	+= lmh_interface.o
obj-$(CONFIG_LIMITS_LITE_HW)	+= lmh_lite.o
+844 −0

File added.

Preview size limit exceeded, changes collapsed.