Commit graph

160 commits

Author SHA1 Message Date
Linux Build Service Account
521c0c89d9 Merge "slim: ngd: Handle Process Domain restart" 2016-08-19 05:29:18 -07:00
Linux Build Service Account
86f3aea3e0 Merge "soc: qcom: smem: Renaming smem item SMEM_SMEM_SLOW_CLOCK_SYNC" 2016-08-18 12:03:53 -07:00
Avaneesh Kumar Dwivedi
503eb88359 soc: qcom: Fix compilation error
Fix compilation error for service-locator when Kconfig option
is not enabled as in perf build.

Change-Id: I42bfe4417de8ed7a2e74500bf4f3aee0bedc811c
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2016-08-18 17:46:45 +05:30
Linux Build Service Account
c185b7a8e4 Merge "soc: qcom: Fix compilation warning/error" 2016-08-16 16:34:55 -07:00
Linux Build Service Account
442c0b0c36 Merge "icnss: Provide APIs for getting SMMU mapping context" 2016-08-16 10:20:21 -07:00
Linux Build Service Account
02a6f0f1c2 Merge "ARM: dts: msm: Add SMP2P entries for MSMFALCON" 2016-08-16 10:20:16 -07:00
Puja Gupta
4fe225dbd9 soc: qcom: Fix compilation warning/error
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>
2016-08-15 17:25:17 -07:00
Yuanyuan Liu
a207e02a1d icnss: Provide APIs for getting SMMU mapping context
Provide APIs for getting SMMU mapping context to WLAN
driver.

CRs-Fixed: 1049889
Change-Id: Id7c6aa45608911ae2510e953e4c7d8ae19f8a111
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-08-11 15:47:30 -07:00
Dhoat Harpal
75b0a3ebc6 soc: qcom: smem: Add SMEM items for CDSP SMP2P communication.
Smem item definitions must be kept in sync with remote processors; if
the definitions do not match, item lookup can fail between processors.

Add smem item definitions so that the local definition table matches
the table on remote processors.

CRs-Fixed: 1043377
Change-Id: I7d23da099b5ed9deb3d074c1b72d286560fd705c
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-08-09 17:41:07 +05:30
Runmin Wang
1fd42a381d soc: qcom: irq-helper: Add header file of irq-helper
Add header file of irq-helper to export black_list on/off api to
other module.

CRs-Fixed: 1051104
Change-Id: I4737975961b18f1095e3cd78d07a2bca22931291
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-08-05 17:08:57 -07:00
Linux Build Service Account
0cd21ace7b Merge "icnss: pass fw version to wlan driver" 2016-08-04 21:39:47 -07:00
Yuanyuan Liu
74c99fcb90 socinfo: Export API for getting SOC serial number
Export API for getting SOC serial number so that other modules
can use it.

CRs-Fixed: 1050491
Change-Id: I24f735159a38dffdc4f44babacc4d758cd0a8365
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-08-04 10:13:09 -07:00
Linux Build Service Account
a1307ec818 Merge "soc: qcom: socinfo: Add support for APQCOBALT" 2016-08-03 04:58:27 -07:00
Linux Build Service Account
aa738fdd92 Merge "msm: camera: Add support for multiple flash nodes" 2016-08-01 21:56:43 -07:00
Viswanadha Raju Thotakura
bd8d73bb72 msm: camera: Add support for multiple flash nodes
Add support for flash nodes for front and rear
camera.

CRs-Fixed: 1021009
Change-Id: I52537562214d439e9652bb6ba90f0d29e5b24fda
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
2016-07-29 15:41:32 -07:00
Dhoat Harpal
278c107ded soc: qcom: smem: Renaming smem item SMEM_SMEM_SLOW_CLOCK_SYNC
SMEM_SMEM_SLOW_CLOCK_SYNC is currently unused as its usecase has
been deprecated for a long time. Reallocate the ID to
SMEM_WLAN_CONFIG.

CRs-Fixed: 1000088
Change-Id: Ib49db26ce93a682f282c393278b51da7b6bf00a4
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-29 19:57:29 +05:30
Runmin Wang
9791b32e85 soc: qcom: socinfo: Add support for APQCOBALT
Add soc chip ID information to support APQCOBALT platform.

CRs-Fixed: 1047772
Change-Id: I17817fbf6692829959314923c514b377e612aff8
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-07-28 16:36:17 -07:00
Yuanyuan Liu
c31155183b icnss: pass fw version to wlan driver
Update wlan fw version when wlan driver calls icnss_get_soc_info.

Change-Id: I1fda7209901cba2746d6d933796a07416cd1b021
CRs-Fixed: 1046753
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-07-27 10:18:25 -07:00
Avaneesh Kumar Dwivedi
077bf167f0 soc: qcom: Make service locator call asynchronous
Make get_service_location() asynchronous, which was a blocking call
before. This also means every client will have it's own thread and
doesn't need to create thread on their end.

CRs-Fixed: 1045353
Change-Id: Ibcccf56d41779b808d1835f62969e3c9365939e8
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2016-07-22 14:32:23 -07:00
Dhoat Harpal
a3f2ed3879 soc: qcom: smem: Add CDSP processor ID
The local table of processor IDs maintained by SMEM must match the table
of processor IDs maintained by SMEM on remote processors, because the
IDs are global.

Update the local table of processor IDs to match the table on remote
processors.

CRs-Fixed: 1043377
Change-Id: I6df0575cf54003374a5ebdbfa54e169d3545ffe7
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-21 17:40:52 +05:30
Deepak Katragadda
a1d8269396 clk: msm: clock-local: Add RCG support for DP pixel source
Add a new RCG op specific for the DP pixel clock source.

CRs-Fixed: 1028725
Change-Id: I65dcac9f4d17d30dfa1a00f4edabef33a3d75c6a
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-07-12 08:32:26 -07:00
Dhoat Harpal
9986d0f710 soc: qcom: smem: Renaming smem item SMEM_SMEM_STATIC_LOG_EVENTS
SMEM_SMEM_STATIC_LOG_EVENTS is currently unused as its usecase has
been deprecated for a long time. Reallocate the ID to
SMEM_CHARGER_BATTERY_INFO.

CRs-Fixed: 1032131
Change-Id: I35a8307001ac14e3ade733d5f41d6231fe63ebd0
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-06-24 15:03:06 -07:00
Amir Samuelov
f956c61bd2 spcom: add spcom_is_sp_subsystem_link_up
Add implementation of spcom_is_sp_subsystem_link_up() kernel API.
Remove Load App API declaration,
as it is not supported for kernel drivers.

Change-Id: I76a43a04d454d1f25a640831f43b51dbb7e75943
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-06-21 15:12:33 -07:00
Neeraj Upadhyay
84e1573bd0 ARM: dts: msm: Add initial device tree files for MSMFALCON
Add the device tree files necessary to support the MSMFALCON
SoC and the MSMFALCON Simulator platform.

Change-Id: Iabdb1c21757ad6dead50fdc4aa3b12077f8f840f
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2016-06-09 15:09:14 -07:00
Yuanyuan Liu
ffb92f5b33 icnss: Export APIs for power on/off WLAN hardware
Export APIs to WLAN driver to power on/off WLAN hardware.

CRs-Fixed: 1017496
Change-Id: I4b09b7e9ee97129f952d737a530fc04205259f24
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-06-07 11:58:05 -07:00
Prashanth Bhatta
e8d675996c icnss: Add IPC logging
Add IPC logging mechanism so that all the driver logs can be
retrieved on the need basis.
Also use pr_fmt to format the logs so that icnss driver logs are
consistent.

Change-Id: I977b04964ac28c18f4ad85094746aa864f03d0c3
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-06-01 15:21:42 -07:00
Sameer Thalappil
090978665c icnss: Add API to return the CE IRQ number
API retrieves the IRQ number for the CE ID passed.

Change-Id: I87cca1215134e6d406f60d54f6d0430978eeae9c
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
2016-05-26 15:26:58 -07:00
Prashanth Bhatta
3cc4528523 icnss: Remove unused APIs
Remove unused APIs icnss_register_ce_irq &
icnss_unregister_ce_irq. These APIs are divided into multiple APIs
to provide flexibility to WLAN driver.

Change-Id: Icd56b61a372cb18e6600617184d8b185b78ce99d
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-05-24 17:56:54 -07:00
Shashank Mittal
90fb2251c8 memory-dump: add support to allocate memory for scan dumps
Add support to allocate memory for CPU scan dumps. This momeory can be
used to save CPU scan dumps at the time of a crash.

Change-Id: I9d644f18882729d187075e885bc2e8c02c5caf36
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16 20:10:44 -07:00
Shashank Mittal
c82110ccb6 qcom: memory_dump: add support to dump DCC data.
Data Capture and Compare (DCC) is a DMA engine, to capture or to
perform CRC over configuration data or system memory.

Add ids for DCC registers and sram data.

Change-Id: If76ef1325b1be623626742b0f0172a1675f21d63
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16 20:10:26 -07:00
Sarangdhar Joshi
6f938760b7 qcom: common_log: add support to dump rpm code ram
Allocate memory to dump RPM CODE RAM at the time of crash.

Change-Id: I5062d65a095538a508944315e6cc06f430382bf5
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16 20:10:24 -07:00
Shashank Mittal
eb3bb2fc33 qcom: common_log: add support to dump VSENSE registers
Allocate memory to dump VSENSE registers at the time of crash.

Change-Id: Ibd896873bc40b723071c66ca7cf1a4bc9b38ad5e
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16 20:10:24 -07:00
Neeti Desai
ef0aa942f0 qcom: common_log: add support to dump PMIC registers
Register for dumping 4KB of memory to dump PMIC
registers which can be parsed in case of device crash.

Change-Id: Idbf26d6241ab9a87e4dcea42723428289f2a869d
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
[spjoshi@codeaurora.org: fix merge conflict]
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
[mittals@codeaurora.org: fix merge conflict]
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-05-16 20:10:23 -07:00
Deepak Katragadda
8516d6c280 clk: msm: clock-local2: Add support for enabling clock HW_CTL
Add a new hw_ctl_clk type to allow clock clients to enable
hardware dynamic gating of the clock branch.
Clients should use the clk_enable API on a separate hw_ctl_clk
clock structure to set this bit. Vice-versa for clearing it.
It is mandatory that the clients call clk_enable on the actual
branch clock before enabling the hw_ctl_clk clock.

CRs-Fixed: 1012355
Change-Id: I24e78353fa07f537bafc322dba6b1ffac913cd1d
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-05-10 13:20:07 -07:00
Runmin Wang
c46620584a ARM: dts: msm: Add initial device tree files for MSMHAMSTER
Add the device tree files necessary to support the MSMHAMSTER SoC.

CRs-Fixed: 1009230
Change-Id: I4370d561af7a34494accf00b4098ffa13c60410b
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-04-29 14:37:11 -07:00
Pushkar Joshi
00e3b9ccb0 soc: qcom: Export Service notifier driver APIs
Export the service notifier APIs so that other kernel
clients can use them.

CRs-Fixed: 999530
Change-Id: I48fd55ae7991b64f818543dfcc963bc75135f714
Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-04-19 19:43:57 -07:00
Dhoat Harpal
e558c11841 soc: qcom: smem: Renaming smem item SMEM_SMEM_STATIC_LOG_IDX
SMEM_SMEM_STATIC_LOG_IDX is currently unused as its usecase has
been deprecated for a long time. Reallocate the ID to
SMEM_XBL_LOADER_CORE_INFO.

CRs-Fixed: 998028
Change-Id: I5f80603633464e7eea322fde57110e377b72d84c
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-04-07 15:58:44 -07:00
Yuanyuan Liu
7c7f4fd1cf icnss: Update WLAN mode in wlan_firmware_service
Add CCPM/QVIT in WLAN mode and add support fo setting
WLAN mode from command line.

CRs-Fixed: 986484
Change-Id: I5921dc3978bf96221b50148bb2f86b0ffed3b5fb
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-04-07 15:55:54 -07:00
Pushkar Joshi
97718559ad soc: qcom: Service locator for kernel clients
Add a library that retrieves location information given a service
identifier. Location here translates to what process domain
exports the service, and which subsystem that process executes on.

Change-Id: Ia5d76ea4de29dbafe309a831f8a2418c058cba94
Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
[dkeitel@codeaurora.org: fixed minor conflicts in Kconfig and Makefile.]
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-04-05 11:31:35 -07:00
Yuanyuan Liu
fee5dd5aba icnss: Update WLFW QMI messages
Add QMI message to send MSA0 physical memory start address
and size to wlan FW.
Add QMI message indication to get the HAL-PYH Pin connect test
result from wlan FW.
Add a new qmi message for sending fw debug configuration.
Update cap_resp message.

CRs-Fixed: 978217
Change-Id: Ie0fa374b720ebbffd1d1fd5b9289b2aa816a822a
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-04-04 20:13:17 -07:00
Devesh Jhunjhunwala
ae8eef27c3 clk: msm: alpha-pll: Add support for dynamic programming of PLLs
Update the alpha_pll_set_rate function to support dynamically
updating the pll frequency if the dynamic_update flag is defined
for the pll. Also set the HW_UPDATE_BYPASS_LOGIC bit for these
plls during handoff.

CRs-Fixed: 988270
Change-Id: I7f3527ef45cf68c3f5c41e04bfdd3ede55bbaa4d
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-04-04 19:30:09 -07:00
Rohit Vaswani
c0fe3bde2a Ion: Add page pooling to Ion System Secure Heap
Optimize the Ion System Secure Heap by adding per VMID
based page pooling. The secure/assigned pages are pooled.
This essentially uses the same pooling functionality as
the system heap, but adds the VMID component to each pool.

Change-Id: Ib65b3f490ab1bb299b57227edba88b876924ff2b
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-03-30 15:46:12 -07:00
Sureshnaidu Laveti
6b99b4c9a1 msm: camera: sensor: Adapting sensor driver to soc layer
Adapting sensor driver to SOC layer by replacing msm specific
routines with SOC API which eases the portability of sensor driver
on to non-msm platforms.

Change-Id: I147dbf714d913b4aa55adc313c354f85cf4b23dd
Signed-off-by: Sureshnaidu Laveti <lsuresh@codeaurora.org>
2016-03-25 16:03:52 -07:00
Arun KS
db599a70cb soc: qcom: pil-mss: Add scm call to inform TZ of modem area
Add support to make scm_calls to TZ to inform modem start
address and size so that TZ can unmap this range to avoid
speculative access.

Change-Id: I4640ddab56991522870e9879d17fe5732dc40223
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
Signed-off-by: Arun KS <arunks@codeaurora.org>
2016-03-25 16:03:30 -07:00
Prasad Sodagudi
a739b2a1f8 qcom: scm: provide scm_is_secure_device() api
Add new scm_is_secure_device() API, so that
all platform drivers can check and take appropriate
action for secure and non-secure devices.

Change-Id: I5569f4aaf4bcbec2922a7745ec0fdc1ab423cc23
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2016-03-25 16:03:18 -07:00
Sameer Thalappil
5f181ee0dd msm: secure_buffer: Add WLAN support
Add support for WLAN Adrastea hardware.

Change-Id: I99868cf456c5b4641731dcea884b67627780477d
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
2016-03-25 16:03:03 -07:00
Deepak Katragadda
7947c04641 clk: msm: clock-local2: Set RCG root_enable bit prior to changing rate
Firmware running on HW blocks could be powering down the branch
clock or the RCG whilst software is doing frequency changes. If
this happens, the RCG behavior is undefined and may cause issues
with its functioning.
To work around this, use the RCG root_en bit and force turn it on
while scaling the rate. In addition, make the polling timeouts
configurable.

CRs-Fixed: 971305
Change-Id: If2db14c70614c47d673fc735f5f4bac276d4a3d9
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-03-25 16:02:58 -07:00
Vikram Mulukutla
0a9cabdc2a soc: qcom: core_ctl: Add a tracing function
The core control module requires tracing capability. Export
a function that will allow new events to be added in an
extensible fashion without a compile-time dependency.

Change-Id: I807d1ec4a104d8289441512b61e5e26df291525b
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2016-03-23 21:26:00 -07:00
Susheel Khiani
20a5dc1e2f iommu/arm-smmu: Request TZ to change page table format to V8L
For targets where we have slave side protection,
global register programming is handled by TZ. And
since it supports V7S page table format only, by
default TZ programs all context bank to permit
V7S format by programming VA64 bit of CBA2R register
as 0.

But if context bank itself is non secure then its
page tables are managed by HLOS where we can
support V8L page table format. So, provide a way
to request TZ to change page table format to V8L
for non secure context banks.

CRs-Fixed: 959535
Change-Id: I1f4d4b98c4f240a8351f791901abdfa78b829973
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
2016-03-23 21:25:38 -07:00
Lakshmi Narayana Kalavala
e29112a1f7 msm: camera: Update camera drivers
Add changes to update camera drivers to:

1. Update necessary Kconfig files to support camera driver
compilation.
2. Support minor changes to V4L framework.
3. Export uapi headers to header_install export location.

Signed-off-by: Seemanta Dutta <seemanta@codeaurora.org>
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2016-03-23 21:22:47 -07:00