Enable the qti-fixed-regulator driver so that proxy consumer
voting and debug features may be used for fixed regulator
devices.
Change-Id: Ia7946a3d82f12b22463e5446a9540e27970c7679
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
This is a snapshot of I3C GENI driver and associated file as of msm-5.15
'commit 9b48a7431cacec7 ("i3c: i3c-master-msm-geni: Fix DAA process
from GENI I3C master")'.
Change-Id: I5cead40609c9489bf60c23e49349171c25579fe6
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
This snapshot is taken as of msm-5.15 'commit 8faf434d5fa0
("serial: msm_geni_serial: Update logs in vote_clock_on &
vote_clock_off")'.
Change-Id: I69d602419e6e0cd2c1be349a141f7116134569f8
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
This is a snapshot of I2C GENI driver and associated files
as of msm-5.15 'commit d2769a2c9a5b1 ("i2c:i2c-msm-geni:
Updating last mark busy failure case")'.
Change-Id: I2993ee80034e46eb3413cdfd37d6a1256e45a338
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
This is a snapshot of SPI GENI driver and associated files
as of msm-5.15 'commit 086bf6b97b ("msm: spi: spi-msm-geni:
update icc bw voting values")'.
Change-Id: Idf37d8716d9619384bbb9de550b77f71645fa25f
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
Current code can end up accessing SOCINFO_PART_MAX_PARTTYPE
for partid in certain scenarios which isn't desired, correct the check.
Change-Id: Ida1ff23993d7dad93e5dd0635d3bfecac4c35201
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
Add the macros and strings to recognize more feature codes.
Change-Id: I0a9a0b950bd951e350bbc7e34d78e257da916263
Signed-off-by: Lynus Vaz <quic_lvaz@quicinc.com>
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
Socinfo need to provide pcode and feature string information
to client drivers.
Change-Id: I7a9ce09803ea855a94591ef85003a67b81a70230
Signed-off-by: Prasad Sodagudi <quic_psodagud@quicinc.com>
[quic_gurus@quicinc.com: Fixed merge conflicts]
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
Add the support to get the sku information from userspace.
Change-Id: I39b60fcc430308cd75e67fa400ad9515b5ad4b65
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Prasad Sodagudi <quic_psodagud@quicinc.com>
[quic_gurus@quicinc.com: Fixed trivial merge conflicts]
Signed-off-by: Guru Das Srinagesh <quic_gurus@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>
Enable the QCOM Ramdump driver on pineapple platforms.
Change-Id: Ica92d8a605fdda7845d55a2766c31407be86a945
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
To add support for elf64 dumps phdr was converted to a void
pointer, but the logic to increment the phdr was not updated
accordingly. This change increments the address of phdr based
on the elf class.
Fixes: fc0253777c4c ('soc: qcom: ramdump: Add support for elf64 dumps')
Change-Id: I103835cfa1333aacfc8fe8ca3ae02dc84607a5cc
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
The qcom_elf_dump() API currently only supported elf32 dumps, but
the kernel is compiled as CONFIG_BIT64=y. This results in the
addresses in the elf header being truncated. This change adds
support to specify the class of the elf file to be generated.
Change-Id: I1b72a828df0b45978891ed6ba6261273200500b0
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
[quic_gurus@quicinc.com: Remove adsprpc.c; hasn't been ported yet]
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
Freeing a completion after setting it to complete can be racy with
the thread that is waiting for completion. To avoid this race the
ramdump descriptor should remain on the stack so that we only "free"
the completion once wait_for_completion() returns.
Change-Id: Ice02260a4f91aa6cd107eb371601d9ed910fb6cf
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Vamsi Krishna Lanka <quic_vamslank@quicinc.com>
Enable CONFIG_QCOM_PDR_HELPERS on pineapple platforms.
Change-Id: I2fe4719d2b9733a0715073f235bad1d0df07f2f7
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
Add help text for QCOM_PDR_HELPERS config.
Change-Id: I54b7882297966d59ca0246ebddda7a5fd7787e0b
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
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>