Commit graph

575981 commits

Author SHA1 Message Date
Linux Build Service Account
44fc68eb86 Merge "clk: qcom: Add support for GPU clocks for MSMFalcon" 2016-10-07 12:20:00 -07:00
Siddartha Mohanadoss
050e3371eb ARM: dts: msm: Add support to read FAB ID for PMICOBALT
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>
2016-10-07 12:15:07 -07:00
Siddartha Mohanadoss
f1fe90b2f8 qpnp: revid: Add support to read FAB ID for PMICOBALT
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>
2016-10-07 12:15:07 -07:00
Ajay Singh Parmar
c5a71f2da3 msm: mdss: displayport: replace delayed work with work
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>
2016-10-07 11:14:43 -07:00
Ajay Singh Parmar
c176ecacfb msm: mdss: displayport: fix edid read
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>
2016-10-07 11:14:35 -07:00
Ajay Singh Parmar
371daecd2b msm: mdss: displayport: fix alt mode pin configurations
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>
2016-10-07 11:14:28 -07:00
Ajay Singh Parmar
d82b3f3565 msm: mdss: displayport: fix link training 2 for dp dongles
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>
2016-10-07 11:14:16 -07:00
Chandan Uddaraju
76f4f7c532 mdss: DisplayPort: add support for multiple resolutions
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>
2016-10-07 11:10:18 -07:00
David Collins
c3c3ecdc5e ARM: dts: msm: add VDD_APC0/1 CPR aging configurations for msmcobalt
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>
2016-10-07 10:54:42 -07:00
David Collins
d56fdc6c4c ARM: dts: msm: update L2 SAW config for CPR aging on msmcobalt
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>
2016-10-07 10:54:40 -07:00
David Collins
78f8763c12 ARM: dts: msm: add PMCOBALT S10 and S13 regulators for MSMCOBALT
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>
2016-10-07 10:54:38 -07:00
Ajay Singh Parmar
36d28227a5 msm: mdss: edid: limit resolutions support based on interface
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>
2016-10-07 10:39:17 -07:00
Chandan Uddaraju
92618b15ee mdss: DisplayPort: update link-training settings and do DP reset
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>
2016-10-07 10:39:17 -07:00
Chandan Uddaraju
a1b989e015 mdss: DisplayPort: add support for color depth and fix workqueue delay
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>
2016-10-07 10:39:16 -07:00
Chandan Uddaraju
2f59726ce7 clk: msm: mdss: use lane count and orientation to configure DP PHY
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>
2016-10-07 10:38:57 -07:00
Chandan Uddaraju
c9334f3d33 mdss: display-port: add support to share lanes and orientation to DP Phy
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>
2016-10-07 10:32:47 -07:00
Tatenda Chipeperekwa
0cfcf4427c msm: mdss: dp: fix audio teardown sequence
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>
2016-10-07 10:32:18 -07:00
Skylar Chang
6a5831d879 msm: gsi: driver upgrade for gsi version 1.2 and 1.3
Add support to handle different HW versions on the driver.
Update register/sequences per HPG.

Change-Id: Ibb6b1ce3a035260edbba61c2a443bbda09b17cee
CRs-Fixed: 1019773
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-10-07 09:57:50 -07:00
Benjamin Chan
4b7bbe3ad1 msm: sde: Reject 0 size image for SDE rotator
Rotator HW cannot support 0 dimension of input and output image. During
V4L2 validation, it must reject any 0 size image format setting.

CRs-Fixed: 1073633
Change-Id: I503561677271c39894b7a6910fe8d9c5c25e9c28
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-10-07 10:47:01 -04:00
Hardik Kantilal Patel
6fc3c57c8e ARM: dts: msm: Add icnss node for msmtriton
Add Adrestea base memory address and Copy Engine interrupt
mapping entry.

CRs-fixed: 1075000
Change-Id: I4eab7df3f64f0727afd7202c03ab0343f23ef84d
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2016-10-07 16:13:15 +05:30
Hardik Kantilal Patel
54391382b3 ARM: dts: msm: Add icnss node for msmfalcon
Add Adrestea base memory address and Copy Engine interrupt
mapping entry.

CRs-fixed: 1075000
Change-Id: I91958cc1348a05c95bde62af0c7b57f6cb82ac59
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2016-10-07 15:58:21 +05:30
Linux Build Service Account
3c7400dc73 Merge "diag: dci: Fix possible out of bound access" 2016-10-07 01:17:34 -07:00
Linux Build Service Account
36e5723b82 Merge "ASoC: msm: qdsp6v2: support for configurable bit format for AFE encoder" 2016-10-07 01:17:33 -07:00
Linux Build Service Account
73f22baf35 Merge "clk: qcom: clk-rcg2: Declare the rcg struct in clk_gfx3d_src_determine_rate" 2016-10-07 01:17:32 -07:00
Lior David
33a8b1b018 wil6210: initial support for FTM and AOA
Added initial support for fine timing measurement(FTM)
and angle of arrival (AOA). These features allow a station
to get an accurate indoor location by measuring
distance (FTM) and azimuth/elevation (AOA) to one or more
stations/APs with a known location.

The following APIs are supported:
1. Get FTM/AOA capabilities, currently hard-coded for a
single-shot measurement to an associated AP
2. Start FTM session
3. Receive FTM results
4. Start standalone AOA measurement
5. Receive AOA results

Change-Id: I54ebc1bdff6ed7d91644165b16eb0a4240069321
CRs-Fixed: 1057307
Signed-off-by: Lior David <liord@codeaurora.org>
2016-10-07 09:30:23 +03:00
Hareesh Gundu
f5c29ace29 msm: kgsl: Get GPU snapshot if wait for global timestamp timeout
If the wait for global fails due to timeout then nothing after this
point is likely to work very well. Get GPU snapshot in addition to
BUG_ON(), to analyze the GPU fault.

CRs-Fixed: 1053780
Change-Id: I29930120a72a08533c859002f646af93e67c754f
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2016-10-06 23:18:46 -07:00
Taniya Das
5f86ca3e75 clk: qcom: Add support for GPU clocks for MSMFalcon
Add support for the graphics clock controller found on MSMFalcon based
devices. This should allow graphics clocks for GFX clients to be able to do
clock functionality.

Change-Id: I753b40d574a4afc2104a5c2bfe64b4831fbce8a0
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-10-07 11:35:12 +05:30
Hardik Kantilal Patel
0cc08805eb icnss: Provide API to check QMI support
Provide API to check QMI support present or not to WLAN
host driver. Based on this information driver can pass the
DMA physical address info via shadow register to WLAN FW.

CRs-Fixed: 1073647
Change-Id: Iec9d3a3b468ddf6607e4a942bb3cf9133e9f0c34
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2016-10-06 23:00:51 -07:00
Amit Nischal
14ec7e8172 ARM: dts: msm: Add and update the dummy clocks for MSMfalcon/MSMtriton
For MSMfalcon and MSMtriton, clock consumers requires dummy
rpmcc, gcc, mmss and gfx clocks for their operation so add
the support for registering dummy clocks as follows:
  - Add clock-output-names property for the rpmcc, gcc, mmss
    and gfx clock controller nodes.
  - Add reset-cells property for clock controller nodes.
  - Add two fixed clock nodes named as xo_board and sleep_clk.
  - Remove RPM clock IDs from qcom,gcc-msmfalcon.h.
  - Modify RPM clock names as per qcom,rpmcc.h file.

Change-Id: I06262fe271ab6ba81d4fa5f67315fd1b54edee8c
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2016-10-07 10:44:20 +05:30
Manoj Prabhu B
702e512b92 diag: dci: Fix possible out of bound access
This patch fixes the possible out of bound access by accessing
only dci supported peripheral feature.

Bug: 31864832
CRs-Fixed: 1074901
Change-Id: I99b7feb4b9af8480912a0a3b3e9834f0ecd92189
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2016-10-06 21:33:47 -07:00
Linux Build Service Account
b1dbfd04c7 Merge "regulator: cprh-kbss-regulator: add CPR aging adjustment support" 2016-10-06 19:45:57 -07:00
Linux Build Service Account
787b63ec55 Merge "regulator: cpr3-regulator: add support for CPRh aging adjustment" 2016-10-06 19:45:57 -07:00
Linux Build Service Account
813c4b3c46 Merge "clk: msm: mdss: update PLL configuration to clear precalibrated values" 2016-10-06 19:45:56 -07:00
Linux Build Service Account
f827f291f0 Merge "usb: gadget: f_mtp: Handle mtp os desc properly" 2016-10-06 19:45:55 -07:00
Linux Build Service Account
55eaab8b21 Merge "clk: msm: clock-osm: Use read back instead of memory barrier on MSMCOBALT" 2016-10-06 19:45:54 -07:00
Linux Build Service Account
4d08e69b3c Merge "defconfig: msm: enable display related configs for 32-bit msmfalcon" 2016-10-06 19:45:53 -07:00
Linux Build Service Account
0f6638bbe4 Merge "dwc3-msm: Acquire lock for USB GSI endpoint related operations" 2016-10-06 19:45:51 -07:00
Linux Build Service Account
203cf98893 Merge "usb: gadget: f_gsi: Enable auto detect RNDIS device on windows OS" 2016-10-06 19:45:51 -07:00
Linux Build Service Account
9a87b7449d Merge "sched/tune: add sysctl interface to define a boost value" 2016-10-06 19:45:49 -07:00
Linux Build Service Account
da994453a2 Merge "ARM: dts: msm: Add a dtsi file for msmcobalt QRD device" 2016-10-06 19:45:49 -07:00
Linux Build Service Account
58f6531c5b Merge "thermal: lmh_lite: Page align all the buffers to TZ" 2016-10-06 19:45:48 -07:00
Linux Build Service Account
b02e3335dd Merge "ASoC: msmcobalt: Update machine driver to support 32 bit format" 2016-10-06 19:45:47 -07:00
Linux Build Service Account
e0f034f4c0 Merge "ASoc: msm: Enable support for 32 bit format and 384Khz" 2016-10-06 19:45:46 -07:00
Linux Build Service Account
6a97dc2b55 Merge "ASoC: msm: qdsp6v2: add support for latest version of media format command" 2016-10-06 19:45:46 -07:00
Linux Build Service Account
32993a9f74 Merge "msm: kgsl: Disable workaround on A540v2" 2016-10-06 19:45:45 -07:00
Linux Build Service Account
7108049392 Merge "msm: kgsl: Add A540v2 to adreno gpulist" 2016-10-06 19:45:44 -07:00
Linux Build Service Account
e25f9bc935 Merge "drivers: soc: qcom: system_stats: Use arch_counter_get_cntvct()" 2016-10-06 19:45:44 -07:00
Linux Build Service Account
aba0b2846d Merge "icnss: Remove unused suspend/resume functions" 2016-10-06 19:45:43 -07:00
Linux Build Service Account
ff565b4410 Merge "cpuidle: lpm-levels: Consider history during LPM selection" 2016-10-06 19:45:41 -07:00
Linux Build Service Account
516ef30ee6 Merge "ARM: dts: msm: Specify the temperature sensor name for msmcobalt" 2016-10-06 19:45:40 -07:00