Display port pixel clock source is required to propagate the set rate to
parent, so update the flags for the same. The lowsvs frequency has got
updated to 154MHz, update the same.
Change-Id: I67a5ff3b5fb18c2ce986c5f431f4e41a78fe13a5
Signed-off-by: Taniya Das <tdas@codeaurora.org>
The display port PLL generates only limited set of frequency combinations.
As fractional dividers are not required to be used, update the RCG ops to
take care of the same.
Change-Id: I601273fee044ef128dbc7c2e23bc2d8ce10e31dc
Signed-off-by: Taniya Das <tdas@codeaurora.org>
GPU RBCPR clocks needs to be registered separately as GFX CPR
requires the rbcpr clocks to register the regulator handle.
Change-Id: I18275df08b1ad91dde09ac4fbea709d08162eec9
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
ANC(Active Noise Cancellation) headset is used for better
audio quality. Add support for ANC headset detection on
MSM8998 target.
Change-Id: If51ba58e4389f0cf73db5e72f4f378cb8ed30bf7
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
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>
There is a requirement where an user wants to set CC_CV threshold
runtime so that it can be adjusted whenever the float voltage is
changed.
Add support for it via POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE
property.
Change-Id: I7fcb75f69f12fc2baf8e270a13cad6686c793bf9
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Booting up with higher battery id (e.g. 300KOhms) can cause a
failure in driver probe because none of the SRAM transactions
can go through during boot. This seems to be happening because
FG ALG treats it as a battery missing. Since driver fails to
probe early, it cannot even handle an interrupt to reconfigure
BMD. Hence, reconfigure BMD every time when the battery id is
obtained.
Since getting battery id now requires couple of SPMI writes,
move fg_get_batt_id() out of fg_get_batt_profile() as the latter
will be called from fg_parse_dt(). This makes fg_parse_dt() only
for parsing device tree properties from the device.
Change-Id: I1638f7325ce73b03f1ea54455f777f92cf8d06b3
Signed-off-by: Subbaraman Narayanamurthy <subbaram@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>
HDR capability is not getting exposed for msm8998.
This is happening after the msmfalcon changes got merged.
This fix adds the hdr capbility to msm8998 and removes
from msmfalcon.
CRs-Fixed: 1116049
Change-Id: I81e0b3d90a03db6e655341338e03aea2911de89f
Signed-off-by: Abhijit Kulkarni <kabhijit@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>
AFE topology information is not shown in real time audio calibration
tool(RTAC) after ADSP subsystem restart because memory map handle is
not reset. Set/get param APIs fail because of this stale memory map
handle. Fix this issue by clearing AFE memory map handle during SSR.
Change-Id: Id8b1fad6580c11ba504e8781643f3d0f584eae7b
Signed-off-by: Vidyakumar Athota <vathota@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>
Enable it in the debug defconfig only, to allow REGMAP write
through debugfs.
CRs-Fixed: 2002923
Change-Id: If254fafde526292e60c506e0408b4127639946f8
Signed-off-by: Harry Yang <harryy@codeaurora.org>
Currently, REGMAP debugfs write is always permitted, which
poses a risk of some unexpected PMIC setting. Make
REGMAP_ALLOW_WRITE_DEBUGFS configurable so debugfs write
can be disabled when not desired.
CRs-Fixed: 2002923
Change-Id: I5cbc5f118c97230dc6ef46cb2363a06823cb6c7a
Signed-off-by: Harry Yang <harryy@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>
Remove the return statement from msm_aux_pcm_snd_startup function
as it will return from the function unintentionally.
CRs-Fixed: 2001289
Change-Id: I197806f008d40b686a28de44efc5cc6cc16b16e3
Signed-off-by: Banajit Goswami <bgoswami@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>