Enable socinfo and dependent drivers for Seraph SoC.
Add socinfo and dependency modules in first stage list.
Change-Id: I80937e6ecf97e13c5e980434e52f4acd6b45c3d3
Signed-off-by: Navya Vemula <quic_nvemula@quicinc.com>
Add pinctrl config to support pin control in Seraph SoC. Add seraph
pinctrl module to list of first stage module list. Add dependent
QCOM_SCM config support and SCM module for seraph SoC.
Change-Id: I9703ff9b04eb6646008f52226b600e8e90470cb7
Signed-off-by: Navya Vemula <quic_nvemula@quicinc.com>
interconnects for Neo
Add master and slave ID constants for all Qualcomm Technologies, Inc.
Neo interconnect providers which consumers can use to set bandwidth
constraints and find paths in the NoC (Network-On-Chip) topology.
This is a snapshot taken from 5.10 kernel.
commit c1275fdbd5e2 ("icc: dt-bindings: add endpoint IDs for
interconnects for Neo").
Change-Id: I2c0e62f96ba6288b6903f0dd13a2d68aa7b3ec49
Signed-off-by: Odelu Kukatla <quic_okukatla@quicinc.com>
Signed-off-by: Chintan Kothari <quic_ckothari@quicinc.com>
Add support for Deep sleep in ethernet driver.
Change-Id: I6255580b909088c0908674e446ca9d7599051498
Signed-off-by: Shashank Shekhar <quic_sshe@quicinc.com>
sysmon_smem_power_stats_extended pointer will be NULL
in case of invalid dsp_id.
Add NULL check for invalid dsp_id cases.
Change-Id: If4fe03051ff6388307ff137b55d4e15b2e0f88f1
Signed-off-by: Wasim Nazir <quic_wasimn@quicinc.com>
In function tmc_enable_etf_sink_sysfs, the local variable buf
was allocated and assigned to drvdata->buffer, and buf will be
freed because etf can't be enabled, but drvdata->buffer
still point to the address.
So in function tmc_read_unprepare_etb, beacause drvdata->mode
is CS_MODE_DISABLED, local variable buf was assigned by
drvdata->buf and free again.
Change-Id: I7d25e7db0a983fc134e8d8dfb954936233f0d167
Signed-off-by: yingdeng <quic_yingdeng@quicinc.com>
Add macro to check for __scm pointer before accessing.
Also add check for device pointer.
Change-Id: Ib3ef303fd9574bedd87077dcd62a480066d7a7d8
Signed-off-by: Wasim Nazir <quic_wasimn@quicinc.com>
In some HQX targets (where Linux is running as guest OS),
when S2R is triggered from host OS, the GVM is sent to
Deep Sleep state.
Since Deep Sleep is getting triggered from Guest point of view,
ufs spm level is set to 5, Power OFF SSU command is sent to the
ufs device and all regulators are turned off from ufs. But since
it is actually an S2R event from Host PoV, the regulators are
not turned off by the PMIC. This is causing power leakage.
To fix this issue, create a sysfs node "ufs_pm_mode". The Host OS
will write to this node which the event (S2R or Deep Sleep) is
getting triggered at the Host. UFS will set the correct spm level
accordingly. For S2R case, the default spm level is retained while
for Deep Sleep it is set to 5.
The default value for this node is 0( which is set during ufs init).
This means it will not set anything unless "S2R" or "DEEPSLEEP" is
explicitly written to the node.
ufs_pm_mode can have three values: "NONE","S2R","DEEPSLEEP":
1. When "NONE" is written to sysfs node: the spm level
is set to 5 for deep sleep and existing spm value
left unchanged for s2idle case.
2. When "S2R" is written to the node: the default spm level
value is retained.
3. When "DEEPSLEEP" is written to the node: the spm level
is set to 5.
Change-Id: I232449cf93a3b37652897e74a621bf219302b76b
Signed-off-by: Ram Kumar Dwivedi <quic_rdwivedi@quicinc.com>
Add snapshot of clock handles for CAMCC/DISPCC/GCC/GPUCC/VIDEOCC/TCSRCC
on NEO so that clients can request on the clock ids,from msm-5.10 branch
commit e42f1c7f152e ("bindings: clock: qcom: Add support for
clock IDs for Neo").
Change-Id: If1ed852cb3e7cf91da1953beaaeeda309288ab14
Signed-off-by: Kalpak Kawadkar <quic_kkawadka@quicinc.com>
Signed-off-by: Chintan Kothari <quic_ckothari@quicinc.com>
Remove IRQF_ONESHOT flag as it disables incoming interrupts
while running threaded irq.
Change-Id: Ieb045e8aee3fc3b179fc7e7517064ba1c76a4483
Signed-off-by: Pranav Mahesh Phansalkar <quic_pphansal@quicinc.com>
Implement a new operation qcom_hwspinlock_bust() which
can be invoked to bust any locks that are in use when
a remoteproc is stopped or crashed.
Change-Id: I0486d5345a47007f254f17c4b88f802a6c962e3a
Signed-off-by: Richard Maina <quic_rmaina@quicinc.com>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
Link: https://lore.kernel.org/r/20240529-hwspinlock-bust-v3-1-c8b924ffa5a2@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Git-commit: 73100deb59c3892e280234fcc0171a5376c71788
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[quic_deesin@quicinc.com: Adding bust api in core hwspinlock module
is breaking KMI, so exporting bust function from qcom hwspilock module
to avoid dependency on core hwspinlock function]
Signed-off-by: Deepak Kumar Singh <quic_deesin@quicinc.com>
cpu_pm_notifier is acquiring the spinlock before it is initialized,
leading to spinlock with bad magic,
hence moving the initialization prior to that.
Change-Id: Ibae81d3bc2338dd0be5f2bc509cec559b121fc73
Signed-off-by: Sneh Mankad <quic_smankad@quicinc.com>
This API is only meant for getting Camera RSC device,
hence preventing any other client to use it for any other device.
Change-Id: I6b1cef1cd98eb1d0c5fa92b67a2af141022ec7a3
Signed-off-by: Sneh Mankad <quic_smankad@quicinc.com>
The power needs to be switched ON before operating over the phy,
in case set_suspend is not called, the power is not ON.
Without dp dm and extcon, there might be cases when qusb_init
gets called without power ON.
Perform power on specifically during qusb init and maintain the
reference count by checking newly introduced flags power_enabled/
clk_enabled.
Change-Id: I529d619359f7320f12ce747fc0f24421f65a9973
Signed-off-by: Jayasri Bhattacharyya <quic_jbhattac@quicinc.com>
lts tag release.6.1.75+ introduced
the dependency for DWMAC_LOONGSON on MACH_LOONGSON64
hence this configuration brought up the difference between
gki and msm sdmsteppeauto configs,since STMMAC is being enabled
for sdmsteppeauto.
For mobile targets these all net drivers are disabled
so removed this config as it is not NA for auto targets also.
Change-Id: I73ec8ba66fd005debc4f675a7a1015fa02442efc
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
Add memory barrier for data syncronization before reading the TCSR
config register. The value written at Sub System is mismatching the
read back value at APPS.
Change-Id: I74862f6d8aa54a67988eca2fb9569e23cc89844a
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
Signed-off-by: Kamati Srinivas <quic_kamasrin@quicinc.com>