Commit Graph

1115874 Commits

Author SHA1 Message Date
qctecmdr
59eb204df3 Merge "soc: qcom: pdr: Add logging after indack is sent" 2022-09-20 18:20:18 -07:00
qctecmdr
2c7855a1a8 Merge "ARM: config: msm: Enabling config for GENI based serial drivers" 2022-09-20 05:45:43 -07:00
qctecmdr
6356615785 Merge "soc: qcom: smem: Add inline function when SMEM is not enabled" 2022-09-20 02:26:33 -07:00
Anil Veshala Veshala
9dc6a7af57 ARM: config: msm: Enabling config for GENI based serial drivers
Enable compilation for GENI based peripheral protocols like i2c, i3c,
spi, uart, gsi.

Change-Id: Ic3ac6596ba912135f56f3583442cd92714978269
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2022-09-19 22:57:52 -07:00
qctecmdr
067e89239a Merge "usb: phy: Turn on PHY clks with phy_init() when EUD is enabled" 2022-09-19 17:42:35 -07:00
Gokul krishna Krishnakumar
e4dd10a51a soc: qcom: pdr: Add logging after indack is sent
This change adds logging after the indack is sent. This helps in debugging
the communication between APSS and Q6.

Change-Id: I0c4a89480e684dff4eb91e95fe4071f6b90824f9
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
2022-09-19 15:56:33 -07:00
qctecmdr
6a5734f701 Merge "coresight: Add trace noc support" 2022-09-19 13:27:16 -07:00
qctecmdr
e59f6b2192 Merge "iio: adc: qcom-spmi-adc5-gen3: Increase HS_READY poll wait time to 15 ms" 2022-09-19 11:39:44 -07:00
qctecmdr
eda9d87efa Merge "defconfig: pineapple-consolidate: enable CONFIG_QTI_PMIC_GLINK_CLIENT_DEBUG" 2022-09-19 11:39:44 -07:00
qctecmdr
e0bc90b427 Merge "ANDROID: abi_gki_aarch64_qcom: Update symbol list" 2022-09-19 09:00:31 -07:00
Mao Jinlong
10de05b8fe coresight: Add trace noc support
This driver provides the support to program the hardware of
Trace Noc component when enable the source which is connected to
Trace Noc.  Trace NoC is a interconnect that is used
to collect trace from various subsystems and transport it
QDSS trace sink.

Change-Id: I70ebda4142be066bc15d8809d7ffe3bdbee10fb9
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-09-18 23:04:40 -07:00
qctecmdr
a5b6faf118 Merge "bus: mhi: host: Add snapshot of MHI bus misc driver" 2022-09-18 20:39:10 -07:00
qctecmdr
30ea05d7e3 Merge "defconfig: pineapple-gki: enable qti-fixed-regulator driver" 2022-09-16 22:04:56 -07:00
David Collins
bf9c8bd72f defconfig: pineapple-gki: enable qti-fixed-regulator driver
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>
2022-09-16 17:39:18 -07:00
Subbaraman Narayanamurthy
be9c6d09a2 defconfig: pineapple-consolidate: enable CONFIG_QTI_PMIC_GLINK_CLIENT_DEBUG
Enable CONFIG_QTI_PMIC_GLINK_CLIENT_DEBUG in pineapple-consolidate
defconfig so that debug features can be enabled in altmode-glink,
qti_battery_debug and qti_battery_charger drivers.

Change-Id: I2d0ef18d061237a256c008aa971096879141a5fa
Signed-off-by: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>
2022-09-16 13:17:11 -07:00
Subbaraman Narayanamurthy
a4f4568bfb defconfig: pineapple: enable PMIC_GLINK driver and its clients
Enable PMIC Glink driver and its clients for pineapple to support
battery charging, Type-C, altmode and the drivers that help with
debugging them.

Change-Id: Ib386a198d9de3e441e2fce650beca44a5bdfd6e3
Signed-off-by: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>
2022-09-16 13:15:00 -07:00
Cong Zhang
75dda42eb8 soc: qcom: smem: Add inline function when SMEM is not enabled
Add inline function to fix compile issue when smem is called but not
enabled.

Change-Id: If31fc795fb5f42a1f221780d3d98e362766cca59
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
2022-09-15 23:02:23 -07:00
Cong Zhang
fa538cea6d soc: qcom: Dynamically allocate minidump table
Dynamically allocate minidump table when driver probe to decrease memory
usage.

Change-Id: I6575cedef615184ff5131acc5bd82c6419a81cbd
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
2022-09-15 22:58:46 -07:00
qctecmdr
f5b4182b5b Merge "serial: msm_geni_serial: Add snapshot of serial UART driver" 2022-09-15 20:23:25 -07:00
qctecmdr
d0cc8e457b Merge "spi: spi-msm-geni: Add SPI GENI driver snapshot for pineapple" 2022-09-15 20:23:24 -07:00
qctecmdr
474d61ff87 Merge "bus: mhi: devices: Add snapshot of MHI devices driver" 2022-09-15 20:23:24 -07:00
qctecmdr
23281288c6 Merge "bus: mhi: controllers: Add snapshot of MHI controller driver" 2022-09-15 20:23:24 -07:00
qctecmdr
d40ff4f7b0 Merge "i2c:i2c-msm-geni: Add I2C GENI driver snapshot for pineapple" 2022-09-15 19:02:02 -07:00
qctecmdr
1f0605da88 Merge "i3c: i3c-master-qcom-geni: Add I3C GENI driver snapshot" 2022-09-15 19:01:58 -07:00
qctecmdr
048f6d5b62 Merge "defconfig: pineapple-gki: Enable QCOM_RAMDUMP" 2022-09-15 17:38:22 -07:00
qctecmdr
fa073dcc43 Merge "soc: qcom: Add snapshot of ramdump driver" 2022-09-15 16:17:01 -07:00
qctecmdr
2bd9e0a08f Merge "soc: qcom: socinfo: correct partid conditional check" 2022-09-15 14:55:18 -07:00
qctecmdr
633ded3358 Merge "gunyah: gh_rm_drv: Add RM interface for minidump support" 2022-09-15 13:28:34 -07:00
qctecmdr
82fe4ec23e Merge "coresight-tmc: Add usb support to coresight tmc etr" 2022-09-15 13:28:33 -07:00
qctecmdr
57624c29c3 Merge "input: qcom-hv-haptics: update configuration for PATx_MEM mode" 2022-09-15 07:27:55 -07:00
qctecmdr
e9121ba6f6 Merge "input: qcom-hv-haptics: Toggle EN_CTL for PM5100 v1.0" 2022-09-15 06:04:33 -07:00
qctecmdr
1b01aeed5c Merge "input: qcom-hv-haptics: move predefined effect preload logging" 2022-09-15 04:34:28 -07:00
Anil Veshala Veshala
06641312bd i3c: i3c-master-qcom-geni: Add I3C GENI driver snapshot
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>
2022-09-14 23:25:35 -07:00
Anil Veshala Veshala
a81b274890 serial: msm_geni_serial: Add snapshot of serial UART driver
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>
2022-09-14 23:22:30 -07:00
Anil Veshala Veshala
4f5569c850 i2c:i2c-msm-geni: Add I2C GENI driver snapshot for pineapple
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>
2022-09-14 23:22:18 -07:00
Anil Veshala Veshala
7230c4ab1d spi: spi-msm-geni: Add SPI GENI driver snapshot for pineapple
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>
2022-09-14 22:40:48 -07:00
Lazarus Motha
f1f4164c4f bus: mhi: host: Add snapshot of MHI bus misc driver
This is a snapshot of MHI bus misc driver from msm-5.15
commit 1a84bdeed262 ("bus: mhi: core: Add snapshot
of MHI bus misc driver").

Change-Id: If606eee09983d27e291acb7fb85f268a1fe63cb2
Signed-off-by: Lazarus Motha <quic_lmotha@quicinc.com>
2022-09-14 22:33:00 -07:00
qctecmdr
51372d1749 Merge "build.targets: Add pineapple and kkp vm to build target" 2022-09-14 21:52:33 -07:00
qctecmdr
009132fa2f Merge "soc: qcom: socinfo: Add revision 16 support in socinfo structure" 2022-09-14 19:44:36 -07:00
qctecmdr
404319eba7 Merge "dmaengine: msm_gpi: add GPI dmaengine driver snapshot for pineapple" 2022-09-14 19:44:35 -07:00
Subbaraman Narayanamurthy
ec6dcfacd3 iio: adc: qcom-spmi-adc5-gen3: Increase HS_READY poll wait time to 15 ms
Currently, before configuring ADC/ADC_TM, we poll for HS_READY
bit to be set which has a max poll wait time of 2 ms. As per the
recent hardware guidelines, increase this to 15 ms as HS_READY
won't be set within 2 ms in some circumstances.

Change-Id: I1cafa5052c80c2ef9512e794afd7e01eb39a53f4
Signed-off-by: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>
2022-09-14 14:06:58 -07:00
David Collins
6d4fecae07 spmi: spmi-pmic-arb: add platform_get_resource_byname() null checks
Add null checks for the output of platform_get_resource_byname()
calls to avoid the possibility of a null pointer dereference.

Change-Id: I7499933f4b6971233a04730e3e1512949fd7540b
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2022-09-14 13:53:27 -07:00
Gokul krishna Krishnakumar
7d64ef7bbf soc: qcom: socinfo: correct partid conditional check
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>
2022-09-13 20:07:13 -07:00
Lynus Vaz
2a7bfbda9f soc: qcom: Add information for more feature codes
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>
2022-09-13 15:15:59 -07:00
Prasad Sodagudi
f8c23980dd soc: qcom: provide apis for pcode and feature string
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>
2022-09-13 15:15:58 -07:00
Mukesh Ojha
8c66fcf954 soc: qcom: socinfo: Add sku sysfs support
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>
2022-09-13 15:15:54 -07:00
Mukesh Ojha
944bd60020 soc: qcom: socinfo: Add revision 16 support in socinfo structure
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>
2022-09-13 13:56:34 -07:00
Guru Das Srinagesh
ecb19ca563 defconfig: pineapple-gki: Enable QCOM_RAMDUMP
Enable the QCOM Ramdump driver on pineapple platforms.

Change-Id: Ica92d8a605fdda7845d55a2766c31407be86a945
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-13 11:50:33 -07:00
Gokul krishna Krishnakumar
53346fbff0 soc: qcom: ramdump: Fix elf phdr increment logic
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>
2022-09-13 11:50:33 -07:00
Gokul krishna Krishnakumar
72f355f2d0 soc: qcom: ramdump: Add support for elf64 dumps
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>
2022-09-13 11:50:32 -07:00