clear thermal pressure when thermal polling is stopped as throttle
frequency is greater than what scheduler or cpu are set to.
This change prevents throttle loop exiting with stale, non-zero
thermal pressure resulted from race condition of requested frequency
change after throttle_freq condition check in throttle loop.
Change-Id: If9c40e20350c5d33b3ad7a58cfe213eeb5dda74b
Signed-off-by: Vivek Aknurwar <quic_viveka@quicinc.com>
Below are some new fields are getting updated in socinfo
structure from bootloader under revision 16.
e.g
esku;
nproduct_code;
npartnamemap_offset;
nnum_partname_mapping;
Add the change in socinfo driver to accommodate this.
Change-Id: I11b5182c15af32da61cddbf4bb45d5aef390135a
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Prasad Sodagudi <quic_psodagud@quicinc.com>
[quic_gurus@quicinc.com: Added missing break and fallthrough]
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
Disable auto resonance explicitly for PATx_MEM mode play according to HW
recommendation. Also, clear MEM_PAT_ACCESS_BIT after written PATx_MEM
samples and it reduces device quiescent current in power off state.
Change-Id: Iafaca15482bf1a03a19a49ee4d5e30faeb2fdeeb
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
Update the register configuration for F0 detection/calibration
based on hardware recommendation.
Change-Id: I423ed84bf10508dc6ded2bc4248ac9ce396ce8cb
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
Move the logging after calculating Vmax so that the right Vmax value
can be printed out.
Change-Id: I8d916a13685c8d85f1363e7a8bc766aeb4d5e2ba
Signed-off-by: Hui Liu <quic_huliu@quicinc.com>
On SKUs with MSM + Co-proc there can be possiblity that
because of Interrupts enabled from MSM side (SPMI) the exit
of LPM might not work because PBS gets locked because of
which the sequence to exit LPM might not get triggered.
Add support for shutdown callback and disable INT in shutdown
cb to ensure that INT are disabled before entering LPM.
Change-Id: I29bafb72bef3a5591839015f2a598fa4ad85072a
Signed-off-by: Umang Chheda <quic_uchheda@quicinc.com>
Primitive effect is very similar to predefined effect
which has been supported and each primitive effect has
an unique id defined in "qcom,primitive-id" devicetree
property. Add support for it.
Change-Id: I4a03dd09e97f1b7988d4ab87e1cf78f075b05101
Signed-off-by: Hui Liu <quic_huliu@quicinc.com>
Free/request the fifo empty interrupt during the DeepSleep and
hibernate entry or exit respectively. Also restore the hardware
initial configuration done during the boot.
Change-Id: I6b0d4838a6d1c48869ca760d4e93788440983b3c
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
In the boot up LRA frequency calibration sequence, CAL_TLRA_CL_STS
is read out and stored in SDAM module registers by the bootloader.
Later, the HLOS haptics driver can read it from there and use it
for calculating LRA frequency. Enable the same for PM5100 PMIC.
Change-Id: Ia5e307e5d536a42b29ab05e9888640121188312c
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Move the logging after calculating Vmax so that the right Vmax value
can be printed out.
CRs-Fixed: 3227145
Change-Id: I17b64f9e3a230058b7e30ca4c30de4d3000d1f87
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
When hBoost is working in open-loop mode, it's supposed to be used by
other modules like the charger firmware and it shouldn't be turned off
by haptics driver. Ignore turning on and off hBoost in such case.
Change-Id: Id3eb2c37cf7316b4617872614cc2a7adc50d12d8
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
Print in hex when a read/write to an address fails.
Change-Id: I35dddaa33d18f72079ec3d814a36fd304cd0f331
Signed-off-by: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>
This is a snapshot of gpi dmaengine driver and associated files
as of msm-5.15 'commit 8d5f6e9fa5567 ("dmaengine: msm_gpi: add
GPI dmaengine driver snapshot for kalama")'.
Change-Id: I98aed9e09d927225776d9f4533ca74a7cf7c078b
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
Add device_match_of_node and also make sure that the list is
alphabetically sorted.
Change-Id: I23209f86e191d14d7c48cea7d57349b3d441727c
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
Some external drivers use gh_mem_notifier_register() but not
gh_mem_notifier_unregister(). This leads to an unused function warning
during compilation, which then manifests as an error when -Werror is
enabled.
Add compiler attribute __maybe_unused to both functions to fix the above
error.
Change-Id: I42585f89c6aa4148ef1d1f72d3a8581e23e08110
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
Update Usecase id for LLCC_VIDVSP as per hardware settings.
Change-Id: I92493bf7cfb8625748b22b111995cabc71feb1a1
Signed-off-by: Jeevan Shriram <quic_jshriram@quicinc.com>
Enable panicking upon notification timeout and also increase timeout
values to 20 s from the default 10 s.
Change-Id: Ie777d2cc7a2cd5c5ae91a49a6601ab5482fd8758
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
Introduce null APIs for supporting compilation of client drivers.
Change-Id: I553d8b8987818beaf4b3abd33198c2cbea1309f6
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
Add build config and defconfig for msm-pineapple branch
on kalama kernel platform.
Change-Id: Iffa39f9a06c15d4790088c5d10a6aebe84eef4a1
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
Bring the qti_virtio_mem UAPI header from msm-5.15, taken from commit
957fe56b98e0 ("Merge "sched/walt: disable cpu packing when current
freq is high"").
Change-Id: If3511d61075498f596ee2de5cba0a49108154d42
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>