Add new frontend DAI links for HFP client in both
internal and external variants of SDM660.
CRs-Fixed: 1117314
Change-Id: If56ce8827c8677c35a49e70be1bfafa373b84f79
Signed-off-by: Satya Krishna Pindiproli <satyak@codeaurora.org>
Rotator and MDP share same stream ID on sdm600 target,
hence share the smmu device with rotator device to map/unmap
its buffers.
The change will also handle different secure usecase concurrencies
like, mdp running in secure and rotator in non-secure and vice versa.
Change-Id: I3ff118baed3984d63e9a9fe94289d99523c7b3e9
Signed-off-by: Kalyan Thota <kalyant@codeaurora.org>
Keep gcc_bimc_gfx_clk always on to prevent a stall during BIMC redirection
handshake that occurs as part of a transition between different CCI power
modes.
Change-Id: Id027d4c3ba3ef15b24cfc2747b1a7b82a206fc31
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Add device tree files for headset jacktype NO, for CDP
and RCM platforms of SDM660.
Change-Id: I32bfb871ced7a682016af8bec5eeb28dc27a3616
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Add a property to the PD PHY peripheral to specify the default
sink capabilities for USB PD as 5V @ 3A, 9V @ 3A and 12V @ 2.25A.
These are common values that should be supported on most boards,
but can be overridden as necessary.
Change-Id: I5ea95d2f0532c59f7d83cb608d939ad28a8bb28e
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Add a device tree property to allow specifying the supported
set of sink capabilities. If not specified, fall back to a
single capability of 5V @ 3A.
Change-Id: I394061d9f3070099e35b651ce4b63a7993343bf1
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Factory QNOVO IADC OFFSET trim values are wrong polarity. To fix it,
update both (reg QNOVO_IADC_OFFSET_0 and QNOVO_IADC_OFFSET_1) with
their two's compliment, respectively.
Factory setting of QNOVO_STRM_CTRL is also wrong. It controls
polarity of the raw IADC bitstream. To get the correct IADC bitstream
polarity, set 0 to register QNOVO_STRM_CTRL.
Set range [1,255] for QNOVO PPCNT parameter, so the right value can
be written.
Change-Id: I7be948b09c96aae4077a8f010c951c6ebd22a0fa
Signed-off-by: Harry Yang <harryy@codeaurora.org>
Current driver read if any nrt vbif is present
and if it is not, the number of qos priority
levels gets wiped out, causing the driver
not to program the vbif qos priority levels for
the rt client. Fix this problem by making sure
that if a vbif nrt does not exist in the platform,
driver only ignore the nrt settings, but keeps
programming the vbif rt.
Change-Id: I2fe5eea5a2ff852b22a59cdb0139b17f3dd7c494
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
Fix error check of data_len for athdiag read message. Report
error when response message's data_len is smaller than what
is expected.
CRs-Fixed: 2002939
Change-Id: I87c0c6265934ac7a3aad5dfa471c23332b7f6996
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Add support for multi-copps for multiple BEs with independent
calibration data. This allows for more accurate calibration of device
copps.
CRs-fixed: 1110411
Change-Id: I72ce501408a474eb620a088172e3c4d789ab5ef0
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Enable panel orientation property in QRD device to flip
the panel by 180 degrees for msm8998 target.
Change-Id: I3e91ed69de150b970d2e1678833d0d4cca659eef
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
Since the page offset can be greater than the size of a page fix
arm_coherent_iommu_map_page so that it maps to nearest page
boundary.
This both prevents unnecessarily mapping memory we don’t need to
map and fixes a bug where the unmap wasn’t unmapping this extra
memory.
Change-Id: Iaa69aff7505ee75d1f2e69bb0cda814bc6211bd3
Signed-off-by: Liam Mark <lmark@codeaurora.org>
Adapt to latest changes to IPA micro-controller (IPA uC).
For pipe SUSPEND, IPA uC will fail in case the pipe is not empty.
IPA driver needs to insure pipe is empty and then issue a SUSPEND command.
For pipe DISABLE, pipe is already empty on SUSPEND,
IPA driver does not need to do ensure anything before
issuing a DISABLE command.
Change-Id: Icfc4745c666997c63be6e9444bf611fb4cbd1934
CRs-Fixed: 2002190
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
To avoid a race condition between init_completion() and complete()
which will cause a crash use reinit_completion() which is safe.
CRs-Fixed: 1114785
Change-Id: I5b5c9eb6a4dbe406951d71fe5963b3c4e411daa0
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
The QNOVO discharge FET gate is driven by PMI8998 GPIO pin. Configure
GPIO6 to route the internal QNOVO discharge FET control signal to the
pin.
Change-Id: I4dea54c1952d0da21f2bdb8a41b421cab558cafa
Signed-off-by: Harry Yang <harryy@codeaurora.org>
In case there is pending data submitted to IPA, IPA RM resource should
not be released. The resource release happens only when all packets were
processed by IPA.
CRs-Fixed: 1116262
Change-Id: I19756cbe4f84a5d09853d6066362e4a2c9ae1f73
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Data pointer has been reused after freed it. So,
it has been moved to after using the data pointer
to clean up resource and freed it.
Change-Id: Ibc94e092134ff1f36e896c679ade7f639254a24d
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
Reset the freeze vote after modem SSR to allow IPA clock gating.
Change-Id: Ice78831abc52aed44d640109e1453da7e2af9702
CRs-Fixed: 2002197
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Add a null check for a token value that is returned
from a string splitting function. This will prevent
null pointer dereferencing when attempting to use the
token.
CRs-Fixed: 2002785
Change-Id: I6d3c1dafc2c7d0914c116c73a8ed115c2c8f9e86
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
Update sensor id flag for sdm630 such that thermal
client can obtain the HW ID for the available
temperature sensors (TSENS) with sensor ID details.
Change-Id: I70a1c7e4a420dc41591f021da499efe10b7fd6ae
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
Changing the clock source frequencies to lower
working frequencies so that the camera runs in
SVS_L1 mode, which reduces the power consumption.
Change-Id: I92344fcd0f4492badd6a50c011b0aa8b4231a373
Signed-off-by: Samyukta Mogily <smogily@codeaurora.org>
in kgsl_pwrscale_init(), add missing NULL check for kgsl_midframe
to avoid further accessing, in case if memory is not available.
Change-Id: If6a4e59d4675fe67aefc63d7f8251f4d28ddeec5
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
Enable NAP state for A512 GPU to save power.
Change-Id: I3c643c90d39ab33c11146b5864b20c14bc9a339a
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>