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:Fenglin Wu <fenglinw@codeaurora.org>
Loading
Please register or sign in to comment