Configure the minimum voltage level for the CX regulator to be LOW_SVS
whenever the display panel is on. This overcomes panel lock-ups seen
during idle-screen use cases when low-power states are programmed.
CRs-Fixed: 1053687
Change-Id: I0432111cb8581925b82c02b5944285855a92ca62
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Rename the regulator used for pmicobalt flash from
pmicobalt_bob to pmcobalt_bob.
Change-Id: I73860ab4db976b7c903f1e90134febb4bd9d297a
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Update the flash prepare API to handle the DISABLE_REGULATOR
option, and include support to return the max_current value
in a parameter instead of the return value.
CRs-Fixed: 1043718
Change-Id: Ief86531658cd0e72ceeae062d29133d5505eb5cf
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Add support to use the flash led current values to calculate
the voltage headroom to use for the maximum current query
algorithm.
CRs-Fixed: 1043718
Change-Id: I823276f75247a67f4a3dd2d6d333c19196b26063
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Add device tree properties to enable flash current mitigation
and specify the current limits to use for the different thermal
OTST levels.
CRs-Fixed: 1043718
Change-Id: Iaff6bbf6d7c17ebd6937dbfd91cbabcf09dee118
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Based on the thermal thresholds triggered, use the LUT to
limit the maximum available flash current.
CRs-Fixed: 1043718
Change-Id: I456d6491987183e07eba921edc826ff801fdeee3
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Based on the LMH trigger thresholds read from device tree
and the battery properties read from fuel gauge, trigger LMH
pre-emptive current mitigation if required.
CRs-Fixed: 1043718
Change-Id: I54e7670a880f862b6619d22f843c8fa13fd0b303
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Update the max_current_query stub to calculate the maximum
available current for flash based on the battery properties
read from fuel gauge.
CRs-Fixed: 1043718
Change-Id: I88fd40c449852704361ae3ed3e8223e1e9b3fe74
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Current pixel format enumeration reports pixel format supported
by driver, and may include formats not supported by underlying
hardware. This patch reorganizes pixel format enumeration to
report hardware supported pixel formats based on hardware version
as well I/O port direction.
CRs-Fixed: 1054825
Change-Id: I1e42b11b43f69dba4a5ac68cfdfb8305136a307c
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
Typically, spcom device nodes are associated with a glink channel.
However, /dev/spcom and /dev/sp_ssr have other purposes,
and they are not associated with a channel.
Avoid error message when user call file close()
for /dev/spcom and /dev/sp_ssr.
Change-Id: I5dd55ad3c7ff93efb2e332fcab49b58cbc177c90
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Add debugfs support to provide addr and data
entries to read registers from controller.
Writing into the registers is not supported
as it might corrupt controller. Also add suspend
entry to dynamically test suspend and resume.
This patch is propagated from 3.18 kernel
'commit 0804395c18d8 ("input: ft5x06_ts: Add
debugfs support")'
Change-Id: If61bbbefdbf624f62b07c2a96d28c8338bd948c1
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
If ese gpio is not present on target, and we disable
NFC then enable gpio should be set to LOW.
Negative gpio value is invalid case, we should avoid
gpio free for error scenario.
Change-Id: I87c890bbb66ee683129f062a2aa4c8d95d5c93ee
Signed-off-by: Gaurav Singhal <gsinghal@codeaurora.org>
Here is just the quick fix for tracefs with selinux.
just add tracefs to the list of whitelisted filesystem
types in selinux_is_sblabel_mnt(), but the right fix would be to
generalize this logic as described in the last item on the todo list,
https://bitbucket.org/seandroid/wiki/wiki/ToDo
CRs-Fixed: 1054492
Change-Id: I2aa803ccffbcd2802a7287514da7648e6b364157
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
(cherry picked from commit 3a343a1540)
Signed-off-by: Biswajit Paul <biswajitpaul@codeaurora.org>
In case HALP vote times out, we need to mask the HALP IRQ, as done
in case the interrupt is received, as this interrupt should be
set until completion of the low latency operation.
Change-Id: I2b514bd161b584b9e71d0e33db1f66dfbd06bb9c
Signed-off-by: Maya Erez <merez@codeaurora.org>
VMEM ab vote from video driver found to be not enough for 1080P
encode on Cobalt. Hence increase to get expected performance.
CRs-Fixed: 1054436
Change-Id: I787816f17028bea49cef3891cf4f389001b7f008
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
If B frames are initially enabled and disabled at the time
of configuration, max-B-frames will retain the non-zero value
set at the time of enablement. Explicitly reset max-B-frames
when B frames is set to zero, otherwise this setting may
interfere with other exclusive features (like temporal layers)
Change-Id: Iefa9b5b2becd0c0f4756fa81a396e3af0c45022a
Signed-off-by: Praveen Chavan <pchavan@codeaurora.org>
This change enables plantronics usb head set specific HID driver
support.
Change-Id: I5b25a99269d3374bc4bc58c734bb64f0418f08f8
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
The wcss clocks are not owned by APCS, and thus should not
be modelled in the clock driver.
CRs-Fixed: 1054449
Change-Id: I7677bef6a58c028876b72dbade37c1064b428ee2
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Fix couple of compilation error for service-locator when Kconfig option
is not enabled.
CRs-Fixed: 1048345
Change-Id: I5eb1318d1e3a62619869033b36479c4e68f1602f
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
In order to not violate SMMU policy on
msmcobalt, IPA3 needs move resource group
configuration from HLOS to TZ for those
ipa_rx_hps registers.
Change-Id: If9968c319f86ef66571fa8fcbb952910fabec5ad
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Read the minimum and the maximum voltage levels for the CX supply
from the device tree and use those values to program the CX supply.
This allows for flexibility in configuring the levels across
multiple targets.
CRs-Fixed: 1053687
Change-Id: Ib704bfa6c6ca9fc3d90ab76a2e4aef02dc48822a
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Add support to read EDID data using the aux channel.
Remove the stored EDID buffer and use the retrieved
EDID data to initialize the DP controller.
CRs-Fixed: 1009284
Change-Id: I93b43be6c2ca50796148898f5210c5b4d13b6f24
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
Validate the codec operations during the HPD process to ensure
that there is no potential null deference. The codec operations
can be invalid if there is no codec registered with the external
display module.
CRs-Fixed: 1009284
Change-Id: I4aa64724a912ae1df07d382d3eb346424b50cf36
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
Define the Silver and Gold cluster OSM look up tables
with the frequencies and data required to support Silver
cluster scaling up to 1.9 GHz and Gold cluster to
2.5 GHz. Also, update the supported frequencies in the msm
and devfreq CPUfreq devices.
CRs-Fixed: 1051857
Change-Id: Id9e9d37c6c0ac5c3ba6f566377bf86dbfe8ccabb
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Define the CPR corner information for the VDD_APC0 and
VDD_APC1 devices of the msmcobalt v2 chipset. This enables
CPRh closed-loop operation to reduce power consumption by
the voltage rails powering the Silver and Gold clusters.
CRs-Fixed: 1051863
Change-Id: I40b24c00d2c8ec767ba67951b16e7a3c7cdeb511
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Add support for per-chip revision open-loop fuse reference
voltages. This allows for the correct calculation of open-loop
voltages across msmcobalt chip revisions where the fused
reference voltages vary. Lastly, update the compatible string for
existing msmcobalt v1 CPR APC devices.
CRs-Fixed: 1051863
Change-Id: Icff31b265b49d087005ac0e58d7783ff2588548c
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Make hdcp 1.x interrupt handling generic for any supported interface.
Add Display-Port interrupt related data and handle interrupts in
ISR. Do this dynamically based on which interface is connected like
HDMI or DP.
Change-Id: I8be206dbc53fd7c757f244dc544241f1d8e1dd1c
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Hookup sink's aux addresses for data read and write to be used
for hdcp 1.3 authentication so that hdcp 1.3 state machine can
dynamically select sink addresses for different interfaces.
Change-Id: I4ef01c7bdb9af770ea3014bd6e63d3c17b0cfa47
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Add HDCP 1.x related registers to be hooked up with
hdcp 1.x state machine so that hdcp 1.x can be programmed
to work for DP.
Change-Id: I16bf5ecbc237294e99ce6710c6b759e3346011a5
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Create a register set for a given interface and make
hdcp state machine independent of the interface being
used to support multiple interfaces with different
register sets.
Change-Id: I62738697e91549fe44ef09b0a3aa905b37c00389
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>