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

Skip to content
Commit 8e660a05 authored by Fenglin Wu's avatar Fenglin Wu
Browse files

input: qcom-hv-haptics: read CAL_TLRA_CL_STS from SDAM after boot up



Commit 7d3ecfd7 ("input: qcom-hv-haptics: read CAL_TLRA_CL_STS from
SDAM after boot up") added support for LRA frequency calibration.
However, since bootloader changes needed to support this feature had
caused a regression on devices that has PM8350B v1 PMIC, this got
reverted with commit 844516d9 ("Revert "input: qcom-hv-haptics: read
CAL_TLRA_CL_STS from SDAM after boot up""). Now that the bootloader
changes handles PM8350B v1 configuration properly, re-enable this
change.

During LRA frequency calibration, reading CAL_TLRA_CL_STS has to be
done before de-asserting play. In the boot up LRA frequency calibration
sequence, CAL_TLRA_CL_STS was read out and stored in SDAM module
registers by the bootloader. Later, HLOS haptics driver can read it from
there and use it for calculating LRA frequency. This boot up LRA
frequency calibration sequence is only available for PM8350B 2.0 chip.
Update the driver to support this.

Change-Id: I23532dd2a0a2bced0ba4715e5b58f6f53fec3160
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 9a469b26
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment