To support ADSP SVA on wcd934x, dedicated backend dailink needs
to be created. Add the dailink associating the specific cpu dai
and the MAD codec dai.
CRs-Fixed: 1070327
Change-Id: I4152d81e4e951216a8ecdd93562eb1740dbb962c
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
Parse the Detailed Timing Descriptors of both EDID blocks for
resolutions. Check if the resolution is already added in local
data base. Also, add tolerance to fps and pclk variations for
a give resolution so that EDID parser can capture all the
resolutions correctly as published by the sink's EDID.
Change-Id: I113988eb21f82eef022723c421b1c1c9d4dead9f
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
When WDSP has crashed, G-link link state is updated with
GLINK_LINK_STATE_DOWN and remote side channels are closed.
Handle the link state down notification from G-link and
close the channels from local side when remote disconnect
channel event occurs.
Change-Id: Id956256fbb3ea6b18a3685a34dcd1f9b16e71e92
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
While flushing debug queues, avoid touching message queues.
Bleeding message queues here can discard FW responses and
forward threads may timeout by not receiving them. This can
cause confusion about timeouts. Hence don't touch message
queues unless you process and send them to forward thread.
CRs-Fixed: 1066658
Change-Id: I7a5a89c32dc4b1284895d01202dcfdd8a90ccda0
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
Previously memory retention and preiph control are only set when
device enters/exits idle power collapse mode. The memory retention
and periph setting will remain ON when device is actually in
suspend state, which will cause unnecessary power consumption.
This change updates those setting for both idle power collapse cases
and suspend/resume case. With this change, the memory retention and
periph will be set to OFF in suspend case to optimize power consumption.
Change-Id: I1598dbc97cb9d02b946de5c9803a49d923c7edc1
Signed-off-by: Ping Li <pingli@codeaurora.org>
a540 hardware does not support BCL and LMH after all.
CRs-Fixed: 1075694
Change-Id: I09808145d20ded63b5043cae6510429560cb599e
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
Call rdev_get_name() to obtain the name to use in the debug
consumer's regulator_get() call so that the debug consumer finds
the correct regulator when the name differs in the constraints
and desc structs.
Change-Id: Id6a47467cd118c89c8f58d1120381d4c64f8efee
CRs-Fixed: 1075693
Signed-off-by: David Collins <collinsd@codeaurora.org>
Temperature compensation is needed for charger die
temperature. Offset and slope coefficients are applied
based on the FAB ID read from the REVID peripheral.
Change-Id: I8516a8109b8c9316dafbd547635d4c97bd50be0c
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Add charger die temperature scaling coefficients based
on FAB ID. If FAB ID support is not available from the
REVID peripheral the driver does not report scaled
temperature for charger die temperature. Update temperature
compensation for PMIC die temperature.
Change-Id: I8864dccc1b53e70dac5d54129339e7224ec8ba67
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
DCVS limit check fails due to coding error in the condition.
With this change, dcvs-limit is correctly interpreted.
CRs-Fixed: 1074911
Change-Id: I38689d490a31a8e02688d0cacaa6f6028f6f79c8
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
REVID peripheral supports reading FAB ID value. Add property
qcom,fab-id-valid to allow clients to access the FAB ID data
for PMICOBALT.
Change-Id: I66463cf3fa7b0fdeba4cb5ee1e34d27b5e736cfb
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
PMICOBALT supports reading the FAB ID from the REVID
peripheral. Add an optional property qcom,fab-id-valid
to check if support for FAB ID is available in the
REVID peripheral for the PMIC.
Change-Id: If8212618baa7533b008228a71740acf1d6c72a52
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
On msmcobalt the max size supported for cursor pipes is
512x512 pixels. This change fixes the size of the cursor.
CRs-Fixed: 1070248
Change-Id: Iaf0490370f2469e80be0d949957906faed40abb7
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
The delay is not needed while processing the events from USB.
Replace the delayed work with work to avoid unnecessary delays.
Change-Id: Ia9f26e8cf9a86c34d7fee3afee599d9924dd9835
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
On current hardware, different edid blocks can be read at
same edid address or it can be different. Add support to
read all edid block correctly.
Change-Id: I703dc38bf7961291d40044f6517cdfa7cc69d85a
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Correct the pin configuration selection logic during alt mode.
Also, fix the message to be sent to usb to avoid sink or dongle
reporting error or nack.
Change-Id: I6c6f9e0c9738af4766a7ff8acb3c932be55935de
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Fix the link training sequence so that dp dongle or sink
can be correctly programmed with link pattern and drive
settings.
Change-Id: I71139c504d9031839ff3c14cdd8cd6fdd885719d
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Add table to store transfer unit settings for different
resolutions. The table is used for mapping the resolution
with the lane count and Display-port link rate.
Change-Id: I93cc489cdbde21680f8c05311be60ecba053c1db
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Add all of the properties required to allow CPR aging
measurements to take place for VDD_APC0 and VDD_APC1.
Change-Id: Icd5a66130178c3cde7a10ebdd30d475950fd1c68
CRs-Fixed: 1048890
Signed-off-by: David Collins <collinsd@codeaurora.org>
Update the AVS limits of the silver and gold cluster L2 SAW
devices in order to allow CPR aging measurements to be performed
without interfering with the VDD_APC0 and VDD_APC1 default
voltages.
Change-Id: Ie4c5fa8aeb32c365d71a25b71506b69ccefc79b5
CRs-Fixed: 1048890
Signed-off-by: David Collins <collinsd@codeaurora.org>
Add qpnp-regulator devices for PMCOBALT S10 and S13 regulators.
This will allow VDD_APC0 and VDD_APC1 CPR devices to directly
modify the voltage at the PMIC before CPRh and OSM are enabled.
Change-Id: I34758ed558cde85b5255010a83cc2fcfa0e1a3a0
CRs-Fixed: 1048890
Signed-off-by: David Collins <collinsd@codeaurora.org>
Limit the resolutions provided by sink to the ones supported
by the interface so that user modules do not receive the resolutions
which are not supported by the interface.
Change-Id: I63657f139cd7b058d211c306fb596ac5d80f2495
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Add new settings for link-training parameters. Add
code in DP OFF to set the DP state to IDLE mode.
Add support for DP global reset before
initializing DP controller.
Change-Id: Ica893a9b56ae51b12f5d4a192b995aa966dc934e
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Add changes to have default settings for color depth and
output format in DP controller.
Currently, the workqueue used to handle different events
in controller driver has very high delay in handling events.
Fix this.
Change-Id: I30fc7cb3c57844244ff88167a9b17b32a2fd3a12
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Use the information about lane count and orientation
provided in the spare MDP registers by the DP controller
driver to configure the PLL lock sequence.
Change-Id: I1d8465087be91f0a35d83a752a6c09ce27100208
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
The DisplayPort PHY driver needs information about the number
of lanes and the plug orientation to do additional settings.
Add code to support this.
Change-Id: Iafb890596283320dbcb2b4e2e0d83cabfdfcd18e
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
First update the audio switch node to indicate that the cable was
disconnected. Wait for the audio codec to indicate that the teardown
of the audio path has been completed, timing out after three
seconds. This ensures that the audio framework will start and end
the audio teardown while the interface VSync is still running,
ensuring a graceful shutdown of the audio path.
CRs-Fixed: 1074218
Change-Id: Ia9c792613e5cd9ac273185c6b2f4b30b5df67496
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>