1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 25d144e36SAndy Gross# 35d144e36SAndy Gross# QCOM Soc drivers 45d144e36SAndy Gross# 52a464815SSrinivas Kandagatlamenu "Qualcomm SoC drivers" 62a464815SSrinivas Kandagatla 722094814SBjorn Anderssonconfig QCOM_AOSS_QMP 822094814SBjorn Andersson tristate "Qualcomm AOSS Driver" 922094814SBjorn Andersson depends on ARCH_QCOM || COMPILE_TEST 1022094814SBjorn Andersson depends on MAILBOX 116b9d226bSRandy Dunlap depends on COMMON_CLK && PM 1222094814SBjorn Andersson select PM_GENERIC_DOMAINS 1322094814SBjorn Andersson help 1422094814SBjorn Andersson This driver provides the means of communicating with and controlling 1522094814SBjorn Andersson the low-power state for resources related to the remoteproc 1622094814SBjorn Andersson subsystems as well as controlling the debug clocks exposed by the Always On 1722094814SBjorn Andersson Subsystem (AOSS) using Qualcomm Messaging Protocol (QMP). 1822094814SBjorn Andersson 19312416d9SMahesh Sivasubramanianconfig QCOM_COMMAND_DB 20778279f4SLina Iyer tristate "Qualcomm Command DB" 210ea3fa15SArnd Bergmann depends on ARCH_QCOM || COMPILE_TEST 220ea3fa15SArnd Bergmann depends on OF_RESERVED_MEM 23312416d9SMahesh Sivasubramanian help 24312416d9SMahesh Sivasubramanian Command DB queries shared memory by key string for shared system 25312416d9SMahesh Sivasubramanian resources. Platform drivers that require to set state of a shared 26312416d9SMahesh Sivasubramanian resource on a RPM-hardened platform must use this database to get 27312416d9SMahesh Sivasubramanian SoC specific identifier and information for the shared resources. 28312416d9SMahesh Sivasubramanian 29a7305e68SUlf Hanssonconfig QCOM_CPR 30a7305e68SUlf Hansson tristate "QCOM Core Power Reduction (CPR) support" 31a7305e68SUlf Hansson depends on ARCH_QCOM && HAS_IOMEM 32a7305e68SUlf Hansson select PM_OPP 33a7305e68SUlf Hansson select REGMAP 34a7305e68SUlf Hansson help 35a7305e68SUlf Hansson Say Y here to enable support for the CPR hardware found on Qualcomm 36a7305e68SUlf Hansson SoCs like QCS404. 37a7305e68SUlf Hansson 38a7305e68SUlf Hansson This driver populates CPU OPPs tables and makes adjustments to the 39a7305e68SUlf Hansson tables based on feedback from the CPR hardware. If you want to do 40a7305e68SUlf Hansson CPUfrequency scaling say Y here. 41a7305e68SUlf Hansson 42a7305e68SUlf Hansson To compile this driver as a module, choose M here: the module will 43a7305e68SUlf Hansson be called qcom-cpr 44a7305e68SUlf Hansson 45eddac5afSKarthikeyan Ramasubramanianconfig QCOM_GENI_SE 46eddac5afSKarthikeyan Ramasubramanian tristate "QCOM GENI Serial Engine Driver" 47eddac5afSKarthikeyan Ramasubramanian depends on ARCH_QCOM || COMPILE_TEST 48eddac5afSKarthikeyan Ramasubramanian help 49eddac5afSKarthikeyan Ramasubramanian This driver is used to manage Generic Interface (GENI) firmware based 50eddac5afSKarthikeyan Ramasubramanian Qualcomm Technologies, Inc. Universal Peripheral (QUP) Wrapper. This 51eddac5afSKarthikeyan Ramasubramanian driver is also used to manage the common aspects of multiple Serial 52eddac5afSKarthikeyan Ramasubramanian Engines present in the QUP. 53eddac5afSKarthikeyan Ramasubramanian 545d144e36SAndy Grossconfig QCOM_GSBI 555d144e36SAndy Gross tristate "QCOM General Serial Bus Interface" 56ccfb464cSNiklas Cassel depends on ARCH_QCOM || COMPILE_TEST 57e5fdad68SAndy Gross select MFD_SYSCON 585d144e36SAndy Gross help 595d144e36SAndy Gross Say y here to enable GSBI support. The GSBI provides control 605d144e36SAndy Gross functions for connecting the underlying serial UART, SPI, and I2C 615d144e36SAndy Gross devices to the output pins. 625d144e36SAndy Gross 63a3134fb0SRishabh Bhatnagarconfig QCOM_LLCC 64a3134fb0SRishabh Bhatnagar tristate "Qualcomm Technologies, Inc. LLCC driver" 65ccfb464cSNiklas Cassel depends on ARCH_QCOM || COMPILE_TEST 665d2fe2d7SManivannan Sadhasivam select REGMAP_MMIO 67a3134fb0SRishabh Bhatnagar help 68a3134fb0SRishabh Bhatnagar Qualcomm Technologies, Inc. platform specific 69a14b8203SVivek Gautam Last Level Cache Controller(LLCC) driver for platforms such as, 70a14b8203SVivek Gautam SDM845. This provides interfaces to clients that use the LLCC. 71a14b8203SVivek Gautam Say yes here to enable LLCC slice driver. 72a3134fb0SRishabh Bhatnagar 736d0efeb1SIlia Linconfig QCOM_KRYO_L2_ACCESSORS 746d0efeb1SIlia Lin bool 756d0efeb1SIlia Lin depends on ARCH_QCOM && ARM64 || COMPILE_TEST 766d0efeb1SIlia Lin 772aad40d9SBjorn Anderssonconfig QCOM_MDT_LOADER 782aad40d9SBjorn Andersson tristate 792aad40d9SBjorn Andersson select QCOM_SCM 802aad40d9SBjorn Andersson 8188c1e940SBrian Masneyconfig QCOM_OCMEM 8288c1e940SBrian Masney tristate "Qualcomm On Chip Memory (OCMEM) driver" 8388c1e940SBrian Masney depends on ARCH_QCOM 8488c1e940SBrian Masney select QCOM_SCM 8588c1e940SBrian Masney help 8688c1e940SBrian Masney The On Chip Memory (OCMEM) allocator allows various clients to 8788c1e940SBrian Masney allocate memory from OCMEM based on performance, latency and power 8888c1e940SBrian Masney requirements. This is typically used by the GPU, camera/video, and 8988c1e940SBrian Masney audio components on some Snapdragon SoCs. 9088c1e940SBrian Masney 91fbe639b4SSibi Sankarconfig QCOM_PDR_HELPERS 92fbe639b4SSibi Sankar tristate 93fbe639b4SSibi Sankar select QCOM_QMI_HELPERS 94fbe639b4SSibi Sankar 959b8a11e8SBjorn Anderssonconfig QCOM_QMI_HELPERS 969b8a11e8SBjorn Andersson tristate 97ccfb464cSNiklas Cassel depends on NET 989b8a11e8SBjorn Andersson 99d1de6d6cSBjorn Anderssonconfig QCOM_RMTFS_MEM 100d1de6d6cSBjorn Andersson tristate "Qualcomm Remote Filesystem memory driver" 101d1de6d6cSBjorn Andersson depends on ARCH_QCOM 102fa65f804SBjorn Andersson select QCOM_SCM 103d1de6d6cSBjorn Andersson help 104d1de6d6cSBjorn Andersson The Qualcomm remote filesystem memory driver is used for allocating 105d1de6d6cSBjorn Andersson and exposing regions of shared memory with remote processors for the 106d1de6d6cSBjorn Andersson purpose of exchanging sector-data between the remote filesystem 107d1de6d6cSBjorn Andersson service and its clients. 108d1de6d6cSBjorn Andersson 109d1de6d6cSBjorn Andersson Say y here if you intend to boot the modem remoteproc. 110d1de6d6cSBjorn Andersson 111658628e7SLina Iyerconfig QCOM_RPMH 112cb365926SJohn Stultz tristate "Qualcomm RPM-Hardened (RPMH) Communication" 113681b0912SLina Iyer depends on ARCH_QCOM || COMPILE_TEST 114827b5e6eSLina Iyer depends on (QCOM_COMMAND_DB || !QCOM_COMMAND_DB) 115658628e7SLina Iyer help 116658628e7SLina Iyer Support for communication with the hardened-RPM blocks in 117658628e7SLina Iyer Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an 118658628e7SLina Iyer internal bus to transmit state requests for shared resources. A set 119658628e7SLina Iyer of hardware components aggregate requests for these resources and 120658628e7SLina Iyer help apply the aggregated state on the resource. 121658628e7SLina Iyer 122279b7e8aSRajendra Nayakconfig QCOM_RPMHPD 123d4889ec1SJohn Stultz tristate "Qualcomm RPMh Power domain driver" 124279b7e8aSRajendra Nayak depends on QCOM_RPMH && QCOM_COMMAND_DB 125279b7e8aSRajendra Nayak help 126279b7e8aSRajendra Nayak QCOM RPMh Power domain driver to support power-domains with 127279b7e8aSRajendra Nayak performance states. The driver communicates a performance state 128279b7e8aSRajendra Nayak value to RPMh which then translates it into corresponding voltage 129279b7e8aSRajendra Nayak for the voltage rail. 130279b7e8aSRajendra Nayak 131bbe3a66cSRajendra Nayakconfig QCOM_RPMPD 132f29808b2SJohn Stultz tristate "Qualcomm RPM Power domain driver" 1330e5732e4SYueHaibing depends on PM && OF 134f29808b2SJohn Stultz depends on QCOM_SMD_RPM 1357d0221fbSKonrad Dybcio select PM_GENERIC_DOMAINS 1367d0221fbSKonrad Dybcio select PM_GENERIC_DOMAINS_OF 137bbe3a66cSRajendra Nayak help 138bbe3a66cSRajendra Nayak QCOM RPM Power domain driver to support power-domains with 139bbe3a66cSRajendra Nayak performance states. The driver communicates a performance state 140bbe3a66cSRajendra Nayak value to RPM which then translates it into corresponding voltage 141bbe3a66cSRajendra Nayak for the voltage rail. 142bbe3a66cSRajendra Nayak 1437d0c8beeSStephen Boydconfig QCOM_SMEM 1447d0c8beeSStephen Boyd tristate "Qualcomm Shared Memory Manager (SMEM)" 145ccfb464cSNiklas Cassel depends on ARCH_QCOM || COMPILE_TEST 14673ebb854SArnd Bergmann depends on HWSPINLOCK 1477d0c8beeSStephen Boyd help 1487d0c8beeSStephen Boyd Say y here to enable support for the Qualcomm Shared Memory Manager. 1497d0c8beeSStephen Boyd The driver provides an interface to items in a heap shared among all 1507d0c8beeSStephen Boyd processors in a Qualcomm platform. 1517d0c8beeSStephen Boyd 152936f14cfSBjorn Anderssonconfig QCOM_SMD_RPM 153936f14cfSBjorn Andersson tristate "Qualcomm Resource Power Manager (RPM) over SMD" 154ccfb464cSNiklas Cassel depends on ARCH_QCOM || COMPILE_TEST 155a09b440aSNiklas Cassel depends on RPMSG 156936f14cfSBjorn Andersson help 157936f14cfSBjorn Andersson If you say yes to this option, support will be included for the 158936f14cfSBjorn Andersson Resource Power Manager system found in the Qualcomm 8974 based 159936f14cfSBjorn Andersson devices. 160936f14cfSBjorn Andersson 161936f14cfSBjorn Andersson This is required to access many regulators, clocks and bus 162936f14cfSBjorn Andersson frequencies controlled by the RPM on these devices. 163936f14cfSBjorn Andersson 164936f14cfSBjorn Andersson Say M here if you want to include support for the Qualcomm RPM as a 165936f14cfSBjorn Andersson module. This will build a module called "qcom-smd-rpm". 1669460ae2fSBjorn Andersson 1679460ae2fSBjorn Anderssonconfig QCOM_SMEM_STATE 1689460ae2fSBjorn Andersson bool 169c97c4090SBjorn Andersson 17050e99641SBjorn Anderssonconfig QCOM_SMP2P 17110475d59SArnd Bergmann tristate "Qualcomm Shared Memory Point to Point support" 172e7180264SBjorn Andersson depends on MAILBOX 17350e99641SBjorn Andersson depends on QCOM_SMEM 17450e99641SBjorn Andersson select QCOM_SMEM_STATE 175810f11a9SNiklas Cassel select IRQ_DOMAIN 17650e99641SBjorn Andersson help 17750e99641SBjorn Andersson Say yes here to support the Qualcomm Shared Memory Point to Point 17850e99641SBjorn Andersson protocol. 17950e99641SBjorn Andersson 180c97c4090SBjorn Anderssonconfig QCOM_SMSM 18110475d59SArnd Bergmann tristate "Qualcomm Shared Memory State Machine" 182c97c4090SBjorn Andersson depends on QCOM_SMEM 183c97c4090SBjorn Andersson select QCOM_SMEM_STATE 1840a5cdb41SNiklas Cassel select IRQ_DOMAIN 185c97c4090SBjorn Andersson help 186c97c4090SBjorn Andersson Say yes here to support the Qualcomm Shared Memory State Machine. 187c97c4090SBjorn Andersson The state machine is represented by bits in shared memory. 188ea7a1f27SBjorn Andersson 189efb448d0SImran Khanconfig QCOM_SOCINFO 190efb448d0SImran Khan tristate "Qualcomm socinfo driver" 191efb448d0SImran Khan depends on QCOM_SMEM 192efb448d0SImran Khan select SOC_BUS 193efb448d0SImran Khan help 194efb448d0SImran Khan Say yes here to support the Qualcomm socinfo driver, providing 195efb448d0SImran Khan information about the SoC to user space. 196efb448d0SImran Khan 19760f3692bSAngeloGioacchino Del Regnoconfig QCOM_SPM 19860f3692bSAngeloGioacchino Del Regno tristate "Qualcomm Subsystem Power Manager (SPM)" 1994f22aa45SArnd Bergmann depends on ARCH_QCOM || COMPILE_TEST 20060f3692bSAngeloGioacchino Del Regno select QCOM_SCM 20160f3692bSAngeloGioacchino Del Regno help 20260f3692bSAngeloGioacchino Del Regno Enable the support for the Qualcomm Subsystem Power Manager, used 20360f3692bSAngeloGioacchino Del Regno to manage cores, L2 low power modes and to configure the internal 20460f3692bSAngeloGioacchino Del Regno Adaptive Voltage Scaler parameters, where supported. 20560f3692bSAngeloGioacchino Del Regno 2061d772469SMahesh Sivasubramanianconfig QCOM_STATS 2071d772469SMahesh Sivasubramanian tristate "Qualcomm Technologies, Inc. (QTI) Sleep stats driver" 2081d772469SMahesh Sivasubramanian depends on (ARCH_QCOM && DEBUG_FS) || COMPILE_TEST 2091d772469SMahesh Sivasubramanian depends on QCOM_SMEM 2101d772469SMahesh Sivasubramanian help 2111d772469SMahesh Sivasubramanian Qualcomm Technologies, Inc. (QTI) Sleep stats driver to read 2121d772469SMahesh Sivasubramanian the shared memory exported by the remote processor related to 2131d772469SMahesh Sivasubramanian various SoC level low power modes statistics and export to debugfs 2141d772469SMahesh Sivasubramanian interface. 2151d772469SMahesh Sivasubramanian 216ea7a1f27SBjorn Anderssonconfig QCOM_WCNSS_CTRL 217ea7a1f27SBjorn Andersson tristate "Qualcomm WCNSS control driver" 218ccfb464cSNiklas Cassel depends on ARCH_QCOM || COMPILE_TEST 2195052de8dSBjorn Andersson depends on RPMSG 220ea7a1f27SBjorn Andersson help 221ea7a1f27SBjorn Andersson Client driver for the WCNSS_CTRL SMD channel, used to download nv 222ea7a1f27SBjorn Andersson firmware to a newly booted WCNSS chip. 2232a464815SSrinivas Kandagatla 2246adba21eSSrinivas Kandagatlaconfig QCOM_APR 225ec1471a8SSrinivas Kandagatla tristate "Qualcomm APR/GPR Bus (Asynchronous/Generic Packet Router)" 226ccfb464cSNiklas Cassel depends on ARCH_QCOM || COMPILE_TEST 2276adba21eSSrinivas Kandagatla depends on RPMSG 228de722e41SBjorn Andersson depends on NET 22983473566SSibi Sankar select QCOM_PDR_HELPERS 2306adba21eSSrinivas Kandagatla help 2316adba21eSSrinivas Kandagatla Enable APR IPC protocol support between 2326adba21eSSrinivas Kandagatla application processor and QDSP6. APR is 2336adba21eSSrinivas Kandagatla used by audio driver to configure QDSP6 2346adba21eSSrinivas Kandagatla ASM, ADM and AFE modules. 235b9c2ae6cSKrzysztof Kozlowski 236b9c2ae6cSKrzysztof Kozlowskiconfig QCOM_ICC_BWMON 237b9c2ae6cSKrzysztof Kozlowski tristate "QCOM Interconnect Bandwidth Monitor driver" 238b9c2ae6cSKrzysztof Kozlowski depends on ARCH_QCOM || COMPILE_TEST 239b9c2ae6cSKrzysztof Kozlowski select PM_OPP 240*a84160fbSManivannan Sadhasivam select REGMAP_MMIO 241b9c2ae6cSKrzysztof Kozlowski help 242b9c2ae6cSKrzysztof Kozlowski Sets up driver monitoring bandwidth on various interconnects and 243b9c2ae6cSKrzysztof Kozlowski based on that voting for interconnect bandwidth, adjusting their 244b9c2ae6cSKrzysztof Kozlowski speed to current demand. 245b9c2ae6cSKrzysztof Kozlowski Current implementation brings support for BWMON v4, used for example 246b9c2ae6cSKrzysztof Kozlowski on SDM845 to measure bandwidth between CPU (gladiator_noc) and Last 247b9c2ae6cSKrzysztof Kozlowski Level Cache (memnoc). Usage of this BWMON allows to remove some of 248b9c2ae6cSKrzysztof Kozlowski the fixed bandwidth votes from cpufreq (CPU nodes) thus achieve high 249b9c2ae6cSKrzysztof Kozlowski memory throughput even with lower CPU frequencies. 250b9c2ae6cSKrzysztof Kozlowski 2512a464815SSrinivas Kandagatlaendmenu 252