Add socinfo support for SDA439 and SDA429 SoC and update
the bindings for the same.
Change-Id: I03f2ebd1a8b4e745d8dfe62a65320db1500296a6
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Add support for sysmon drivers on msm-4.9 Kernel.
This driver is needed for msm8953 to communicate
with other subsystem.
Change-Id: I3048b84c28e859369193867fa80dc0159cd7c22c
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
scm_call2 can block scm calls up to 2s due to its
retry mechanism whenever the secure firmware is
busy waiting for certain processing by the client
who in turn is waiting upon its scm call to either
complete or return with failure.
Upon early return, client can process the pending
requests to free up secure firmware and unblock
processing of all pending scm calls. Add a noretry
variant for scm_call2 which can be used by clients
who do not intend to wait for 2s for return status.
Change-Id: I1f0849464a64c32a4de4510fa5787b0ab328725c
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
Add snapshot of initial set of device tree files, pinctrl
driver and config options required to build MDM9607 from
msm-3.18 'commit fc7eae29037d ("Merge soc: qcom:
bgspi: soft reset Blackghost on failure to resume")'.
Change-Id: Icbeb61b062c9b2b2fbbe4c2fb9fd0edad0efcac0
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
Abinaya Pauthored and Gerrit - the friendly Code Review servercommited 2018-03-25 22:28:30 -07:00
Add necessary flags for userspace to request this type of memory.
Change-Id: Ic603cb6cf186f3dec483b5a769ed4c405667d9e4
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Add snapshot of initial set of device tree files, pinctrl
driver and config options required to build MDM9650 from
msm-3.18 'commit fc7eae29037d ("Merge soc: qcom:
bgspi: soft reset Blackghost on failure to resume")'.
Change-Id: I58d6e4d345730c6b5b0b5de02b9b1786c5aa2c28
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
Add support for getting soc-id and dummy handle
on sdm710.
Change-Id: Id77f7db25aac1aaf1cfc0b7a8e826e4dd69cd064
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
On slave side access control based targets, TZ is responsible to
prepare and program page table mapping for secure context banks.
Implement separate map/unmap calls accordingly.
Change-Id: Icb366067b39ce6eaae204c42a067d2a1fc4b8cf0
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Charan Teja Reddyauthored and Gerrit - the friendly Code Review servercommited 2018-03-14 07:02:47 -07:00
Add support to dump ETB/ETR register when enabling
ETB/ETR.
Change-Id: Ia4d4d49fe313adb4d1fe15413495909bc5f226fc
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
For some PLLs, there could be need to configure the calibration
L value for auto calibration which PLL would use whenever it will
come out of reset. Add support for the same by writing into
USER_CTL_HI register.
Change-Id: I864d5086f4e77b38827c0286caa3f64b9a37a7a7
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
This snapshot is taken from msm-4.4 branch as of:
'commit ee294a60356a ("msm: jpegdma: Fix for ASAN issues in jpegdma module")'
Change-Id: I3aba3098a986a5dec84b4bb4144dda19d1db5790
Signed-off-by: Pratap Nirujogi <pratapn@codeaurora.org>
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
Add system_pm ops that are used by LPM driver to configure sleep
and wake votes as well as next wake up time. LPM driver uses them
during system level LPMs.
Change-Id: I72b89aeb3408b89a73d1f0c821649f4f998ab85c
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
Raju P.L.S.S.S.Nauthored and Raghavendra Kakarlacommited 2018-02-19 16:29:49 +05:30
This change adds USB BAM DMUX driver which is required by RmNET
and DPL functions to work in SW mode.
This snapshot is taken as of msm-3.18 'commit 4a06b0168aeb ("ANDROID:
sdcardfs: Make WARN_RATELIMIT to pr_debug")'.
This change also fixes the coding style errors.
Change-Id: Ie565a3354765a1d042182cfcd9f9812225a0d2f7
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Add support for getting soc-id and dummy handle on sdm429
and sdm439.
Change-Id: I93b9578bed5b0d9b18d7496fcda69c1cdc4c949b
Signed-off-by: Jingbiao Lu <jingbiao@codeaurora.org>
Add support for getting soc-id and dummy handle on msm8937.
Change-Id: I7a592b4cefbbe6054bd62469bbeb6bf58e59156f
Signed-off-by: Jingbiao Lu <jingbiao@codeaurora.org>
For msm targets that have slave side access control, iommu
driver is not allowed to write to secure context bank
register space. Extend arm_smmu_skip_write logic to
consider such protected context bank address space as well
for skipping.
Change-Id: Ia64ab5a1c7f8b4ced82f25ab0d2988ac8d08aec3
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Shiraz Hashimauthored and Charan Teja Reddycommited 2018-01-22 11:09:19 +05:30
FW ready indication doesn't mean it is safe to access HW register.
FW ready only means that WLAN FW is initialized. The HW register
is safe to access only after FW ack the wlan enable mode request.
Hence removing uevent in FW ready indication handler. WLAN driver
will responsible for setting FW ready state once wlan enable mode
request is return success.
CRs-Fixed: 2168628
Change-Id: I769d848efb9dd427da0d71494090fcbf9514cfb2
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Skip writes to global space of SMMU on targets with slave
side protection where this space was preprogrammed by TZ
that need to be kept intact.
Change-Id: I03f8ba708144ad9846ec8d6b8a89bd53773bdded
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
The PDC wakeup value must be equal or earlier than the QTimer value that
is set to wake up the system. This is to ensure that the PDC system is
awake before the timer. Read the CVAL from the timer and program the PDC
wakeup value.
Ensure the PDC value is updated after calling tick_broadcast_enter().
Change-Id: I291fd2dd80bed4de19119c548d985ace2ad0c070
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Add support to dump MSR for MCMB TPDM. This is needed
for postprocessing of dump data obtained from MCMB source.
Change-Id: Iddcd6dba98463ddf5e1df66378ba2645ee53c644
Signed-off-by: Satyajit Desai <sadesai@codeaurora.org>
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
Satyajit Desaiauthored and Saranya Chiduracommited 2018-01-04 16:33:38 +05:30
Some targets need slave side secure buffers allocation using ION.
Add the support for the same.
Change-Id: I21489ea71fd7d2844c3bea1f4b701b3eb33cb355
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Charan Teja Reddyauthored and Gerrit - the friendly Code Review servercommited 2017-12-27 21:47:59 -08:00
Add socinfo support to get soc_id and other details
about sdm632.
Change-Id: I85697d0b17d6aa27392d6f645e8e2e22a25793d0
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
For targets where we have no hypervisor, slave side protection mechanism
is used to provide buffer protection. Add functionality to make calls
into TZ for mapping/unmapping of buffers.
Change-Id: I845983a25b56ce1b34c90f91ac4a2cf6c4451813
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
If modem crashed during wlan driver unloading, icnss driver
will call driver uevent callback to send FW down uevent when
it receives BEFORE_SHUTDOWN notification. If wlan driver is
de-initialized just before the callback is called, kernel will
panic as driver's context is freed. This can be avoid by not
sending uevent when wlan host driver is unloading. Instead,
icnss driver will provide an API to host driver to check if
WLAN FW is down or not.
CRs-Fixed: 2161425
Change-Id: I569fd85366522606ececeda74df85c51b9b2fc28
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
This is snapshot of the clock framework files as of msm-3.18
'commit c0b3f609196f ("ARM: dts: msm: Remove GPU mempool
for msm8909")'.
Below is the brief description of the additional changes made:
1. Add COMMON_CLK_MSM config flag for conditional compilation for
some common files used between COMMON_CLK_MSM and COMMON_CLK_QCOM
clock framework files.
2. Add reset controller framework files for BCR operation.
3. Add conditional compilation support for FTRACE clock functions
to maintain compatibility for clock framework based on
COMMON_CLK_MSM and COMMON_CLK_QCOM.
4. Add files for GDSC operation.
Change-Id: Ia5688600ca8e548beb15745d3ce938fdf41f82de
Signed-off-by: Shefali Jain <shefjain@codeaurora.org>
Add device pointer in all export symbol to
add support for numerous WLAN module.
CRs-Fixed: 2138446
Change-Id: I981155c165e4e5c2794b778afe647f8a588dd860
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
Sarada Prasanna Garnayakauthored and Gerrit - the friendly Code Review servercommited 2017-11-30 02:45:59 -08:00
Add static attribute for function in header file to
avoid compile error.
Change-Id: I784a6339e067bbeb3f8ab5d616ffdd72f7ef685f
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
This is a snapshot of the RPM-SMD driver functionality as of
'commit 9c23726ad4df ("leds: qpnp-flash: Fix 11
Use-after-free(UAF) for debugfs")' on msm-4.4 branch.
Change-Id: I502300cf26b67679a9344a89b2feaa0dbcc5fb59
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
Raju P.L.S.S.S.Nauthored and Raghavendra Kakarlacommited 2017-11-30 15:29:02 +05:30
This is a snapshot of the SMD driver as of msm-4.4 commit
<bb3bb010ec74> (Merge "ASoC: wcd9xxx: restrict debugfs permission")
Shared memory data[SMD] drivers provides data communication to
remote peripherals such as Modem and ADSP over shared memory.
CRs-Fixed: 2144497
Change-Id: I50ded677a10dae3910b8369e6c17f175dda3edf5
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
The Minidump design is re architected to decentralize,
more secure, and to be more scalable.
New design uses table of content for each subsystem to
decentralize, and encryption status to secure regions.
Each subsystem have fixed index in global toc, and
its regions table can be located in its own memory.
Change-Id: I104596e51cf976000b97b2519ce7dcd43e72abb4
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
cmd_db_get_aux_data() and cmd_db_get_aux_data_len()
APIs used by the QCOM_KGSL driver. These APIs needs to
be exported to fix compilation errors seen in QCOM_KGSL
loadable module.
Change-Id: I8a6d7b4ed629f7b536adb92be48a71946daff46b
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
This is snapshot of the Minidump driver as of msm-4.4
'commit 198c5bc3349b ("soc: qcom: minidump: move elf global
variables to structure")'.
This enables minidump feature. It allows various client subsystems to
register respective dump regions. Registered Minidump dump regions
would be collected on system crash.
Change-Id: I14377cfba8703f0acadc29e51e2cf7563616571d
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>