Commit graph

857,086 commits

Author SHA1 Message Date
qctecmdr
fa0f12e7ac Merge "clk: qcom: Add RCG support for DP source" 2019-09-04 15:21:39 -07:00
qctecmdr
4e2756f8ba Merge "clk: qcom: Add support for RCGs with dynamic and fixed sources" 2019-09-04 14:42:36 -07:00
qctecmdr
99878ea10d Merge "clk: qcom: clk-rcg2: Configure the RCGs to a safe frequency as needed" 2019-09-04 14:04:08 -07:00
qctecmdr
d5f8047ce9 Merge "clk: qcom: clk-alpha-pll: add FREQ_DET support to Zonda PLL lock detection" 2019-09-04 13:23:06 -07:00
qctecmdr
37ecd1afdf Merge "clk: qcom: clk-alpha-pll: add support to reconfigure PLLs during prepare" 2019-09-04 12:46:45 -07:00
qctecmdr
c399d8b578 Merge "clk: qcom: clk-alpha-pll: Remove reconfiguration of PLLs" 2019-09-04 12:11:37 -07:00
qctecmdr
018585c0cd Merge "clk: qcom: clk-alpha-pll: add additional configuration support for PLLs" 2019-09-04 11:28:43 -07:00
qctecmdr
7bbf48dc2d Merge "coresight: etm: Add check of trace unit power property" 2019-09-04 07:29:49 -07:00
Tingwei Zhang
57fa8d1135 coresight: etm: Add check of trace unit power property
Add check of trace unit power property to enable/disable that
keep the trace unit powered.

Change-Id: I66dbfee16df63480c9309092e61ee39b8b0cd6e8
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2019-09-04 17:58:14 +08:00
qctecmdr
ccc1223a66 Merge "defconfig: Update test configs for debug defconfig" 2019-09-04 00:23:40 -07:00
qctecmdr
e93afc0042 Merge "drivers: GICv3: Enable logging of interrupts that triggered wakeup" 2019-09-04 00:23:39 -07:00
qctecmdr
3178aaf4dc Merge "arm64: defconfig: Enable sensors_ssc on Lahaina" 2019-08-30 12:16:12 -07:00
qctecmdr
38a75fdb0b Merge "radio: Add snapshot for FM radio support" 2019-08-29 16:17:44 -07:00
Taniya Das
a41cfccad5 clk: qcom: Add RCG support for DP source
Add new RCG clock ops specific for the DP clock source.

Change-Id: I2ec5ddcfd47af8362f76d76d153e30d4e2f45370
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Signed-off-by: David Dai <daidavid1@codeaurora.org>
2019-08-29 16:04:16 -07:00
Taniya Das
fd6e6b0b16 clk: qcom: Add support for RCGs with dynamic and fixed sources
Some RCGs could have sources with dynamic frequencies and fixed sources
where if the RCG has the flag of CLK_SET_RATE_PARENT set, it would try to
propagate the clock rate to the fixed source PLLs too. To identify sources
of the RCGs where the rate should propagate to parent PLL, add a member in
freq_tbl to represent source frequency. This would be used by the
_freq_tbl_determine_rate to set its parent frequency on the PLL.

Change-Id: I7f1c0d9d84607821893a1e5d17934dae5acef5f4
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: David Dai <daidavid1@codeaurora.org>
2019-08-29 16:03:46 -07:00
Deepak Katragadda
198a419f76 clk: qcom: clk-rcg2: Add support to force enable an RCG
In certain cases, it is desirable for an RCG to be turned on
explicitly instead of just relying on the enable signal from
its branch clock(s). Add support for this.

Change-Id: I2b0b81bddfe7cc7543c313e4ed13a332fb1a0fcb
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Signed-off-by: David Dai <daidavid1@codeaurora.org>
2019-08-29 16:03:15 -07:00
Deepak Katragadda
3e549714a8 clk: qcom: clk-rcg2: Configure the RCGs to a safe frequency as needed
In certain cases, an RCG might be prone to being enabled even
though the overlying software thinks that it disabled the RCG.
In order to avoid letting the RCG go into an invalid state, support
parking it at a safe frequency during clk_disable() and deferring
all the RCG configuration updates to be done during clk_enable(),
if a scaling request comes in whilst the clock is disabled.

Change-Id: I55f1d1d346182a2b480127c57d6659fc9a63331b
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-08-29 16:02:40 -07:00
David Dai
07e8f7920d clk: qcom: clk-alpha-pll: check pcal_done from mode register
The sequence for alpha_pll_lucid_prepare is checking an incorrect bit
to determine whether or not a lucid PLL has calibrated successfully.
The bit in the status register is not observable unless pll_test_ctl[69]
is set and user_ctl[43:37] is 0 which should only be used as a fallback
option. Use the correct PCAL_DONE bit from the mode register to properly
determine PLL calibration status.

Change-Id: If952c30cacacd68c07e8d7dfd622069dbb70c909
Signed-off-by: David Dai <daidavid1@codeaurora.org>
2019-08-29 15:03:26 -07:00
Vivek Aknurwar
ca1a5818b0 clk: qcom: clk-alpha-pll: add FREQ_DET support to Zonda PLL lock detection
Some instances of the Zonda PLL do not lock correctly
in high L-VAL regions. In such cases, CFA mode
can be configured via test_ctl_val to use an alternative
locking mechanism. Add support for CFA mode by
polling FREQ_LOCK_DET instead of PLL_DET_LOCK
whenever CFA mode has been configured.

Change-Id: Ief31592250ea9f329a34ffdbc4b17cfce431677d
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
2019-08-29 15:03:24 -07:00
David Dai
5a78ac7272 clk: qcom: alpha: do not configure PLL during probe if already enabled
There are different configurations of display panels which may
or may not enable display PLLs before the display driver probes. Due to
continuous splash use cases, we may trample over existing PLL
configuration and cause the PLL to reset while it's in use. Prevent that
scenario by skipping the PLL configuration step if it's enabled.

Change-Id: I61f69c67ca57f18cbc6b551884ea199212ed4e9d
Signed-off-by: David Dai <daidavid1@codeaurora.org>
2019-08-29 15:03:23 -07:00
David Collins
bd0b75950b clk: qcom: clk-alpha-pll: add support to reconfigure PLLs during prepare
Under some circumstances, such as during subsystem restart, the
registers for a clock controller may be reset to hardware default
values.  Add support to reconfigure a Lucid PLL during clk_prepare
in the case that the CAL_L_VAL is found to be 0 before performing
calibration.

Change-Id: Idef3c42dfb32748ec40f89a9dab9f6ab86e293f6
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-08-29 15:03:21 -07:00
David Collins
e2766aa662 clk: qcom: clk-alpha-pll: add support for custom register initialization
Add support for configuring custom target-specific registers
during PLL initialization.

Change-Id: Id296ae904d1b74e7c2f90027bd557bdc62b1d362
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-08-29 15:03:20 -07:00
Vivek Aknurwar
b09c4bd043 clk: qcom: clk-alpha-pll: Remove reconfiguration of PLLs
Remove reconfiguration of PLLs as configuration is expected
to be one time that is during probe.

Change-Id: I90f8ed553016ab32786beae0873424579ead564d
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
2019-08-29 15:03:18 -07:00
Vivek Aknurwar
d9226e13f7 clk: qcom: clk-alpha-pll: Add support for controlling zonda pll
Zonda PLL is high frequency PLL clock generator. It supports
fine control of the digital controlled oscillator (DCO)
and clocked on rising edge of the reference.

Change-Id: I2a9726a0acbffcee1a52f5172b197bf125e60030
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-08-29 15:03:17 -07:00
David Dai
6a578b72c7 clk: qcom: clk-alpha-pll: add additional configuration support for PLLs
Add support to configure test_ctl, user_ctl and cal_l fields for PLLs.

Change-Id: Ib5a7a74aecd8d9885e0a3034f097c13cda4d2268
Signed-off-by: David Dai <daidavid1@codeaurora.org>
2019-08-29 15:03:15 -07:00
David Dai
ce3fd3ebfd clk: qcom: clk-alpha-pll: Add support for controlling Lucid PLLs
Add programming sequence support for managing the Lucid
PLLs.

Change-Id: Ia63067d88bd1f309d190b1ec5b0f272b40209a71
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Signed-off-by: David Collins <collinsd@codeaurora.org>
2019-08-29 15:02:28 -07:00
Jun-Hyung Kwon
f27259dbcc arm64: defconfig: Enable sensors_ssc on Lahaina
Enable the sensors_ssc driver to allow to load SLPI
firmware images.

Change-Id: I1782df63b48157e26b4d61dce59ef5ff67a3c4f8
Signed-off-by: Jun-Hyung Kwon <junhyung@codeaurora.org>
2019-08-29 13:56:05 -07:00
qctecmdr
796fce633c Merge "include: rmnet_data: Add snapshot of headers" 2019-08-29 12:59:58 -07:00
qctecmdr
eae4fe4d2f Merge "drivers: sensors: add sensors ssc driver" 2019-08-29 12:59:58 -07:00
Satish kumar sugasi
8bfe4fb64f radio: Add snapshot for FM radio support
Propagate uapi header files for iris FM radio.

Change-Id: I38071146664ba5f56aa61071a3a273c113da375b
Signed-off-by: Satish kumar sugasi <ssugas@codeaurora.org>
2019-08-29 16:04:58 +05:30
Subash Abhinov Kasiviswanathan
44002e1056 include: rmnet_data: Add snapshot of headers
While rmnet_data driver itself is not required, some of the
definitions are used by modules such as mhi and ipa.

Change-Id: I892c2ff51819262632769b3da32a1c2adf6b3543
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2019-08-28 11:48:03 -07:00
Jun-Hyung Kwon
78761020cf drivers: sensors: add sensors ssc driver
SLPI (sensor low power island) uses Qualcomm Technologies, Inc
Digital Signal Processor for all sensors connected via SPI/I2C.
Firmware is required to be loaded to enable these sensors and
algorithms to execute on DSP. This change adds driver to load
the firmware.

This snapshot is taken as of msm-4.19 'commit
<db92782eadcfd7e8186f6f7487194ebbf8c31c19> (Merge "icnss:
Reduce the shutdown timeout from 50sec to 15sec")'.
In addition change copyrights, type and description in KConfig
and directory change from sensors to soc/qcom.

Change-Id: I15350924e7febe287dc9d7e21885b2e11426a2cc
Signed-off-by: Jun-Hyung Kwon <junhyung@codeaurora.org>
2019-08-28 09:44:45 -07:00
Lina Iyer
df2f76f8e8 drivers: qcom: rpmh-rsc: modularize RSC controller driver
Enable RSC controller driver to be compiled as modules. Since RPMH
communication is need for enabling/disabling critical clocks and busses
needed for the application processor, it is better to keep this module
enabled. Hence declare the driver as a builtin platform driver.

Change-Id: I41a657c0d618efb7c3460833ffb8eb5d445885a0
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2019-08-28 08:44:04 -06:00
Mahesh Sivasubramanian
d6b2e3798f drivers: qcom: cmd-db: Dump resource data via debugfs
Add support to dump command DB data via debugfs. This allows drivers to
lookup data resource information without a resource ID.

Updated to use leXX_to_cpu() functions when reading cmdDB memory.

Change-Id: I04e7466f76ceea00d762752e0c0123edfabe0f64
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2019-08-28 08:44:04 -06:00
qctecmdr
b5920ef4fa Merge "arm64: defconfig: Enable llcc perfmon drivers" 2019-08-27 22:23:23 -07:00
qctecmdr
30a9af43ae Merge "drivers: llcc_perfmon: Add llcc_perfmon support" 2019-08-27 21:47:13 -07:00
qctecmdr
961790582c Merge "drivers: qcom: cmd-db: Report if command DB is initialized as standalone" 2019-08-27 16:12:16 -07:00
qctecmdr
630f98433d Merge "trace: rtb: add msm_rtb tracing" 2019-08-26 12:24:53 -07:00
Avinash Philip
7a47f5f9f0 arm64: defconfig: Enable llcc perfmon drivers
Enable llcc perfmon drivers for Lahaina SoC.

Change-Id: I5f679dfac0f00b6be1dfaa60de9ce74e9a071b00
Signed-off-by: Avinash Philip <avinashp@codeaurora.org>
2019-08-23 11:53:28 +05:30
Avinash Philip
559bd233f1 drivers: llcc_perfmon: support for dual memory controller added
llcc supports 2 memory controllers in backend on certain systems.
This patch adds support for dual memory controllers. Also fixed
filter related changes in LLCC. Cleaned up the code for better
code walk.

Change-Id: Ie054d9182b20ec0811f117c2289aa857f0384baf
Signed-off-by: Avinash Philip <avinashp@codeaurora.org>
2019-08-23 11:45:33 +05:30
Sankaran Nampoothiri
4c2cedeb04 drivers: llcc_perfmon: Add llcc_perfmon support
This is snapshot of the llcc_perfmon driver from msm-4.14
'commit c9961d61d6d8 ("drivers: soc: llcc_perfmon: Add llcc_perfmon
		support")'

This LLCC perfmon driver provides Sysfs interfaces for the clients to
monitor the events. Driver support for monitor events from LLCC sub blocks.
Also updated driver to handle opcode & cache alloc filters.

Change-Id: Ic711fdbc774d2da1938feff5c0d7888e5cf8495a
Signed-off-by: Sankaran Nampoothiri <snampoot@codeaurora.org>
Signed-off-by: Avinash Philip <avinashp@codeaurora.org>
2019-08-23 11:45:25 +05:30
Yuanyuan Liu
60450b0d00 net: cnss_prealloc: Add snapshot of cnss_prealloc driver
This is a snapshot of cnss_prealloc driver and associated files as of
msm-4.19 commit 94d53f998edd
("cnss_prealloc: Update prealloc memory table").

Change-Id: Ic6e853bf651e2a0e2b672bc68d42929c3b55ef93
CRs-Fixed: 2500800
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2019-08-22 09:23:14 -07:00
qctecmdr
b75bba1a68 Merge "defconfig: Enable fastmap on Lahaina" 2019-08-21 18:18:20 -07:00
qctecmdr
178b046932 Merge "net: cnss_genl: Add snapshot of cnss_genl driver" 2019-08-21 18:18:20 -07:00
Elliot Berman
05455bb1f3 defconfig: Update test configs for debug defconfig
Update test configs for debug defconfig on Lahaina

Change-Id: I9ff7870c3e86dd54e7ba77faf8dad6ed68f52a94
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-08-21 16:59:27 -07:00
Runmin Wang
f7942af178 drivers: GICv3: Enable logging of interrupts that triggered wakeup
This change enables logging of irq number and name which triggered
wake up of the system from deep sleep. This helps in debugging the
spurious wakeups due to interrupts from various subsystems.

Change-Id: I6246871e638e761031c1d2f2b4bb1964b34bd2e5
CRs-Fixed: 1033023
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-08-21 15:54:20 -07:00
Isaac J. Manjarres
b13ee6cd5c defconfig: Enable fastmap on Lahaina
Enable the fast IOMMU DMA mapping facilities on Lahaina.

Change-Id: Iaf94518581585d83bb731452183f45a320898b56
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-08-20 17:12:45 -07:00
qctecmdr
ee24c7758f Merge "iommu: io-pgtable-fast: Use the DMA APIs for cache cleaning" 2019-08-20 16:33:28 -07:00
qctecmdr
3cd94d01cd Merge "defconfig: Enable the MSM ION heaps on Lahaina" 2019-08-20 15:59:59 -07:00
qctecmdr
eba5c99bf6 Merge "staging: android: ion: Do not assign heap IDs as heaps register" 2019-08-20 15:14:38 -07:00