1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 25d144e36SAndy Gross# 35d144e36SAndy Gross# QCOM Soc drivers 45d144e36SAndy Gross# 5f2866e6aSKrzysztof Kozlowskimenuconfig QCOM_SOC 6f2866e6aSKrzysztof Kozlowski bool "Qualcomm SoC drivers" 7f2866e6aSKrzysztof Kozlowski depends on ARCH_QCOM || COMPILE_TEST 8f2866e6aSKrzysztof Kozlowski default ARCH_QCOM 9f2866e6aSKrzysztof Kozlowski help 10f2866e6aSKrzysztof Kozlowski This collection of drivers is specific to Qualcomm System-on-Chips 11f2866e6aSKrzysztof Kozlowski and most of them are necessary for a fully functional boot of the 12f2866e6aSKrzysztof Kozlowski Linux kernel (plus a few debugging drivers). 13f2866e6aSKrzysztof Kozlowski Drivers can be skipped when building Linux kernel not intended to run 14f2866e6aSKrzysztof Kozlowski said processors. 15f2866e6aSKrzysztof Kozlowski 16f2866e6aSKrzysztof Kozlowskiif QCOM_SOC 172a464815SSrinivas Kandagatla 1822094814SBjorn Anderssonconfig QCOM_AOSS_QMP 1922094814SBjorn Andersson tristate "Qualcomm AOSS Driver" 2022094814SBjorn Andersson depends on MAILBOX 216b9d226bSRandy Dunlap depends on COMMON_CLK && PM 2222094814SBjorn Andersson select PM_GENERIC_DOMAINS 239b3daac1SKrzysztof Kozlowski default ARCH_QCOM 2422094814SBjorn Andersson help 2522094814SBjorn Andersson This driver provides the means of communicating with and controlling 2622094814SBjorn Andersson the low-power state for resources related to the remoteproc 2722094814SBjorn Andersson subsystems as well as controlling the debug clocks exposed by the Always On 2822094814SBjorn Andersson Subsystem (AOSS) using Qualcomm Messaging Protocol (QMP). 2922094814SBjorn Andersson 30312416d9SMahesh Sivasubramanianconfig QCOM_COMMAND_DB 31778279f4SLina Iyer tristate "Qualcomm Command DB" 320ea3fa15SArnd Bergmann depends on OF_RESERVED_MEM 339b3daac1SKrzysztof Kozlowski default ARCH_QCOM 34312416d9SMahesh Sivasubramanian help 35312416d9SMahesh Sivasubramanian Command DB queries shared memory by key string for shared system 36312416d9SMahesh Sivasubramanian resources. Platform drivers that require to set state of a shared 37312416d9SMahesh Sivasubramanian resource on a RPM-hardened platform must use this database to get 38312416d9SMahesh Sivasubramanian SoC specific identifier and information for the shared resources. 39312416d9SMahesh Sivasubramanian 40eddac5afSKarthikeyan Ramasubramanianconfig QCOM_GENI_SE 419706c380SKrzysztof Kozlowski tristate "Qualcomm GENI Serial Engine Driver" 42e10b198aSKrzysztof Kozlowski depends on ARM64 || COMPILE_TEST 439b3daac1SKrzysztof Kozlowski default ARCH_QCOM 44eddac5afSKarthikeyan Ramasubramanian help 45eddac5afSKarthikeyan Ramasubramanian This driver is used to manage Generic Interface (GENI) firmware based 46eddac5afSKarthikeyan Ramasubramanian Qualcomm Technologies, Inc. Universal Peripheral (QUP) Wrapper. This 47eddac5afSKarthikeyan Ramasubramanian driver is also used to manage the common aspects of multiple Serial 48eddac5afSKarthikeyan Ramasubramanian Engines present in the QUP. 49eddac5afSKarthikeyan Ramasubramanian 505d144e36SAndy Grossconfig QCOM_GSBI 519706c380SKrzysztof Kozlowski tristate "Qualcomm General Serial Bus Interface" 52e10b198aSKrzysztof Kozlowski depends on ARM || COMPILE_TEST 539b3daac1SKrzysztof Kozlowski default ARCH_QCOM 54e5fdad68SAndy Gross select MFD_SYSCON 555d144e36SAndy Gross help 565d144e36SAndy Gross Say y here to enable GSBI support. The GSBI provides control 575d144e36SAndy Gross functions for connecting the underlying serial UART, SPI, and I2C 585d144e36SAndy Gross devices to the output pins. 595d144e36SAndy Gross 60a3134fb0SRishabh Bhatnagarconfig QCOM_LLCC 619706c380SKrzysztof Kozlowski tristate "Qualcomm LLCC driver" 625d2fe2d7SManivannan Sadhasivam select REGMAP_MMIO 639b3daac1SKrzysztof Kozlowski default m if ARCH_QCOM 64a3134fb0SRishabh Bhatnagar help 65a3134fb0SRishabh Bhatnagar Qualcomm Technologies, Inc. platform specific 66a14b8203SVivek Gautam Last Level Cache Controller(LLCC) driver for platforms such as, 67a14b8203SVivek Gautam SDM845. This provides interfaces to clients that use the LLCC. 68a14b8203SVivek Gautam Say yes here to enable LLCC slice driver. 69a3134fb0SRishabh Bhatnagar 7088c1e940SBrian Masneyconfig QCOM_OCMEM 7188c1e940SBrian Masney tristate "Qualcomm On Chip Memory (OCMEM) driver" 7288c1e940SBrian Masney select QCOM_SCM 739b3daac1SKrzysztof Kozlowski default m if ARCH_QCOM 7488c1e940SBrian Masney help 7588c1e940SBrian Masney The On Chip Memory (OCMEM) allocator allows various clients to 7688c1e940SBrian Masney allocate memory from OCMEM based on performance, latency and power 7788c1e940SBrian Masney requirements. This is typically used by the GPU, camera/video, and 7888c1e940SBrian Masney audio components on some Snapdragon SoCs. 7988c1e940SBrian Masney 801ebcde04SDmitry Baryshkovconfig QCOM_PD_MAPPER 811ebcde04SDmitry Baryshkov tristate "Qualcomm Protection Domain Mapper" 821ebcde04SDmitry Baryshkov select QCOM_QMI_HELPERS 83b89c5bc7SDmitry Baryshkov select QCOM_PDR_MSG 84b89c5bc7SDmitry Baryshkov select AUXILIARY_BUS 85f2866e6aSKrzysztof Kozlowski depends on NET && QRTR 861ebcde04SDmitry Baryshkov default QCOM_RPROC_COMMON 871ebcde04SDmitry Baryshkov help 881ebcde04SDmitry Baryshkov The Protection Domain Mapper maps registered services to the domains 891ebcde04SDmitry Baryshkov and instances handled by the remote DSPs. This is a kernel-space 901ebcde04SDmitry Baryshkov implementation of the service. It is a simpler alternative to the 911ebcde04SDmitry Baryshkov userspace daemon. 921ebcde04SDmitry Baryshkov 93086fdb48SNeil Armstrongconfig QCOM_PMIC_PDCHARGER_ULOG 94086fdb48SNeil Armstrong tristate "Qualcomm PMIC PDCharger ULOG driver" 95086fdb48SNeil Armstrong depends on RPMSG 96086fdb48SNeil Armstrong depends on EVENT_TRACING 97086fdb48SNeil Armstrong help 98086fdb48SNeil Armstrong The Qualcomm PMIC PDCharger ULOG driver provides access to logs of 99086fdb48SNeil Armstrong the ADSP firmware PDCharger module in charge of Battery and Power 100086fdb48SNeil Armstrong Delivery on modern systems. 101086fdb48SNeil Armstrong 102086fdb48SNeil Armstrong Say yes here to support PDCharger ULOG event tracing on modern 103086fdb48SNeil Armstrong Qualcomm platforms. 104086fdb48SNeil Armstrong 10558ef4eceSBjorn Anderssonconfig QCOM_PMIC_GLINK 10658ef4eceSBjorn Andersson tristate "Qualcomm PMIC GLINK driver" 10758ef4eceSBjorn Andersson depends on RPMSG 10858ef4eceSBjorn Andersson depends on TYPEC 10958ef4eceSBjorn Andersson depends on DRM 1109049453aSArnd Bergmann depends on NET 1119049453aSArnd Bergmann depends on OF 112e10b198aSKrzysztof Kozlowski depends on ARM64 || COMPILE_TEST 11358ef4eceSBjorn Andersson select AUXILIARY_BUS 11458ef4eceSBjorn Andersson select QCOM_PDR_HELPERS 1152bcca96aSDmitry Baryshkov select DRM_AUX_HPD_BRIDGE 1169b3daac1SKrzysztof Kozlowski default m if ARCH_QCOM 11758ef4eceSBjorn Andersson help 11858ef4eceSBjorn Andersson The Qualcomm PMIC GLINK driver provides access, over GLINK, to the 11958ef4eceSBjorn Andersson USB and battery firmware running on one of the coprocessors in 12058ef4eceSBjorn Andersson several modern Qualcomm platforms. 12158ef4eceSBjorn Andersson 12258ef4eceSBjorn Andersson Say yes here to support USB-C and battery status on modern Qualcomm 12358ef4eceSBjorn Andersson platforms. 12458ef4eceSBjorn Andersson 125a723c95fSAngeloGioacchino Del Regnoconfig QCOM_RAMP_CTRL 126a723c95fSAngeloGioacchino Del Regno tristate "Qualcomm Ramp Controller driver" 127a723c95fSAngeloGioacchino Del Regno help 128a723c95fSAngeloGioacchino Del Regno The Ramp Controller is used to program the sequence ID for pulse 129a723c95fSAngeloGioacchino Del Regno swallowing, enable sequence and link sequence IDs for the CPU 130a723c95fSAngeloGioacchino Del Regno cores on some Qualcomm SoCs. 131a723c95fSAngeloGioacchino Del Regno Say y here to enable support for the ramp controller. 132a723c95fSAngeloGioacchino Del Regno 133d1de6d6cSBjorn Anderssonconfig QCOM_RMTFS_MEM 134d1de6d6cSBjorn Andersson tristate "Qualcomm Remote Filesystem memory driver" 135fa65f804SBjorn Andersson select QCOM_SCM 1369b3daac1SKrzysztof Kozlowski default m if ARCH_QCOM 137d1de6d6cSBjorn Andersson help 138d1de6d6cSBjorn Andersson The Qualcomm remote filesystem memory driver is used for allocating 139d1de6d6cSBjorn Andersson and exposing regions of shared memory with remote processors for the 140d1de6d6cSBjorn Andersson purpose of exchanging sector-data between the remote filesystem 141d1de6d6cSBjorn Andersson service and its clients. 142d1de6d6cSBjorn Andersson 143d1de6d6cSBjorn Andersson Say y here if you intend to boot the modem remoteproc. 144d1de6d6cSBjorn Andersson 145a77b2a0bSKonrad Dybcioconfig QCOM_RPM_MASTER_STATS 146a77b2a0bSKonrad Dybcio tristate "Qualcomm RPM Master stats" 147a77b2a0bSKonrad Dybcio help 148a77b2a0bSKonrad Dybcio The RPM Master sleep stats driver provides detailed per-subsystem 149a77b2a0bSKonrad Dybcio sleep/wake data, read from the RPM message RAM. It can be used to 150a77b2a0bSKonrad Dybcio assess whether all the low-power modes available are entered as 151a77b2a0bSKonrad Dybcio expected or to check which part of the SoC prevents it from sleeping. 152a77b2a0bSKonrad Dybcio 153a77b2a0bSKonrad Dybcio Say y here if you intend to debug or monitor platform sleep. 154a77b2a0bSKonrad Dybcio 155658628e7SLina Iyerconfig QCOM_RPMH 156cb365926SJohn Stultz tristate "Qualcomm RPM-Hardened (RPMH) Communication" 157827b5e6eSLina Iyer depends on (QCOM_COMMAND_DB || !QCOM_COMMAND_DB) 1589b3daac1SKrzysztof Kozlowski default ARCH_QCOM 159658628e7SLina Iyer help 160658628e7SLina Iyer Support for communication with the hardened-RPM blocks in 161658628e7SLina Iyer Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an 162658628e7SLina Iyer internal bus to transmit state requests for shared resources. A set 163658628e7SLina Iyer of hardware components aggregate requests for these resources and 164658628e7SLina Iyer help apply the aggregated state on the resource. 165658628e7SLina Iyer 1667d0c8beeSStephen Boydconfig QCOM_SMEM 1677d0c8beeSStephen Boyd tristate "Qualcomm Shared Memory Manager (SMEM)" 16873ebb854SArnd Bergmann depends on HWSPINLOCK 1699b3daac1SKrzysztof Kozlowski default ARCH_QCOM 1707d0c8beeSStephen Boyd help 1717d0c8beeSStephen Boyd Say y here to enable support for the Qualcomm Shared Memory Manager. 1727d0c8beeSStephen Boyd The driver provides an interface to items in a heap shared among all 1737d0c8beeSStephen Boyd processors in a Qualcomm platform. 1747d0c8beeSStephen Boyd 175936f14cfSBjorn Anderssonconfig QCOM_SMD_RPM 176936f14cfSBjorn Andersson tristate "Qualcomm Resource Power Manager (RPM) over SMD" 177a09b440aSNiklas Cassel depends on RPMSG 1788ddfa81dSStephan Gerhold depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n 1799b3daac1SKrzysztof Kozlowski default ARCH_QCOM 180936f14cfSBjorn Andersson help 181936f14cfSBjorn Andersson If you say yes to this option, support will be included for the 182936f14cfSBjorn Andersson Resource Power Manager system found in the Qualcomm 8974 based 183936f14cfSBjorn Andersson devices. 184936f14cfSBjorn Andersson 185936f14cfSBjorn Andersson This is required to access many regulators, clocks and bus 186936f14cfSBjorn Andersson frequencies controlled by the RPM on these devices. 187936f14cfSBjorn Andersson 188936f14cfSBjorn Andersson Say M here if you want to include support for the Qualcomm RPM as a 189936f14cfSBjorn Andersson module. This will build a module called "qcom-smd-rpm". 1909460ae2fSBjorn Andersson 1919460ae2fSBjorn Anderssonconfig QCOM_SMEM_STATE 1929460ae2fSBjorn Andersson bool 193c97c4090SBjorn Andersson 19450e99641SBjorn Anderssonconfig QCOM_SMP2P 19510475d59SArnd Bergmann tristate "Qualcomm Shared Memory Point to Point support" 196e7180264SBjorn Andersson depends on MAILBOX 19750e99641SBjorn Andersson depends on QCOM_SMEM 19850e99641SBjorn Andersson select QCOM_SMEM_STATE 199810f11a9SNiklas Cassel select IRQ_DOMAIN 2009b3daac1SKrzysztof Kozlowski default ARCH_QCOM 20150e99641SBjorn Andersson help 20250e99641SBjorn Andersson Say yes here to support the Qualcomm Shared Memory Point to Point 20350e99641SBjorn Andersson protocol. 20450e99641SBjorn Andersson 205c97c4090SBjorn Anderssonconfig QCOM_SMSM 20610475d59SArnd Bergmann tristate "Qualcomm Shared Memory State Machine" 20705a21e8bSLuca Weiss depends on MAILBOX 208c97c4090SBjorn Andersson depends on QCOM_SMEM 209c97c4090SBjorn Andersson select QCOM_SMEM_STATE 2100a5cdb41SNiklas Cassel select IRQ_DOMAIN 2119b3daac1SKrzysztof Kozlowski default ARCH_QCOM 212c97c4090SBjorn Andersson help 213c97c4090SBjorn Andersson Say yes here to support the Qualcomm Shared Memory State Machine. 214c97c4090SBjorn Andersson The state machine is represented by bits in shared memory. 215ea7a1f27SBjorn Andersson 216efb448d0SImran Khanconfig QCOM_SOCINFO 217efb448d0SImran Khan tristate "Qualcomm socinfo driver" 218efb448d0SImran Khan depends on QCOM_SMEM 219efb448d0SImran Khan select SOC_BUS 2209b3daac1SKrzysztof Kozlowski default m if ARCH_QCOM 221efb448d0SImran Khan help 222efb448d0SImran Khan Say yes here to support the Qualcomm socinfo driver, providing 223efb448d0SImran Khan information about the SoC to user space. 224efb448d0SImran Khan 22560f3692bSAngeloGioacchino Del Regnoconfig QCOM_SPM 22660f3692bSAngeloGioacchino Del Regno tristate "Qualcomm Subsystem Power Manager (SPM)" 227f6540105SKrzysztof Kozlowski depends on QCOM_SCM 2289b3daac1SKrzysztof Kozlowski default ARCH_QCOM if ARM 22960f3692bSAngeloGioacchino Del Regno help 23060f3692bSAngeloGioacchino Del Regno Enable the support for the Qualcomm Subsystem Power Manager, used 23160f3692bSAngeloGioacchino Del Regno to manage cores, L2 low power modes and to configure the internal 23260f3692bSAngeloGioacchino Del Regno Adaptive Voltage Scaler parameters, where supported. 23360f3692bSAngeloGioacchino Del Regno 2341d772469SMahesh Sivasubramanianconfig QCOM_STATS 2359706c380SKrzysztof Kozlowski tristate "Qualcomm Sleep stats driver" 236f2866e6aSKrzysztof Kozlowski depends on DEBUG_FS || COMPILE_TEST 2371d772469SMahesh Sivasubramanian depends on QCOM_SMEM 23870b139a7SBjorn Andersson depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n 2399b3daac1SKrzysztof Kozlowski default m if ARCH_QCOM 2401d772469SMahesh Sivasubramanian help 2411d772469SMahesh Sivasubramanian Qualcomm Technologies, Inc. (QTI) Sleep stats driver to read 2421d772469SMahesh Sivasubramanian the shared memory exported by the remote processor related to 2431d772469SMahesh Sivasubramanian various SoC level low power modes statistics and export to debugfs 2441d772469SMahesh Sivasubramanian interface. 2451d772469SMahesh Sivasubramanian 246ea7a1f27SBjorn Anderssonconfig QCOM_WCNSS_CTRL 247ea7a1f27SBjorn Andersson tristate "Qualcomm WCNSS control driver" 2485052de8dSBjorn Andersson depends on RPMSG 2499b3daac1SKrzysztof Kozlowski default m if ARCH_QCOM 250ea7a1f27SBjorn Andersson help 251ea7a1f27SBjorn Andersson Client driver for the WCNSS_CTRL SMD channel, used to download nv 252ea7a1f27SBjorn Andersson firmware to a newly booted WCNSS chip. 2532a464815SSrinivas Kandagatla 2546adba21eSSrinivas Kandagatlaconfig QCOM_APR 255ec1471a8SSrinivas Kandagatla tristate "Qualcomm APR/GPR Bus (Asynchronous/Generic Packet Router)" 2566adba21eSSrinivas Kandagatla depends on RPMSG 257de722e41SBjorn Andersson depends on NET 25883473566SSibi Sankar select QCOM_PDR_HELPERS 2599b3daac1SKrzysztof Kozlowski default m if ARCH_QCOM 2606adba21eSSrinivas Kandagatla help 2616adba21eSSrinivas Kandagatla Enable APR IPC protocol support between 2626adba21eSSrinivas Kandagatla application processor and QDSP6. APR is 2636adba21eSSrinivas Kandagatla used by audio driver to configure QDSP6 2646adba21eSSrinivas Kandagatla ASM, ADM and AFE modules. 265b9c2ae6cSKrzysztof Kozlowski 266b9c2ae6cSKrzysztof Kozlowskiconfig QCOM_ICC_BWMON 2679706c380SKrzysztof Kozlowski tristate "Qualcomm Interconnect Bandwidth Monitor driver" 268e10b198aSKrzysztof Kozlowski depends on ARM64 || COMPILE_TEST 269b9c2ae6cSKrzysztof Kozlowski select PM_OPP 270a84160fbSManivannan Sadhasivam select REGMAP_MMIO 2719b3daac1SKrzysztof Kozlowski default m if ARCH_QCOM 272b9c2ae6cSKrzysztof Kozlowski help 273b9c2ae6cSKrzysztof Kozlowski Sets up driver monitoring bandwidth on various interconnects and 274b9c2ae6cSKrzysztof Kozlowski based on that voting for interconnect bandwidth, adjusting their 275b9c2ae6cSKrzysztof Kozlowski speed to current demand. 276b9c2ae6cSKrzysztof Kozlowski Current implementation brings support for BWMON v4, used for example 277b9c2ae6cSKrzysztof Kozlowski on SDM845 to measure bandwidth between CPU (gladiator_noc) and Last 278b9c2ae6cSKrzysztof Kozlowski Level Cache (memnoc). Usage of this BWMON allows to remove some of 279b9c2ae6cSKrzysztof Kozlowski the fixed bandwidth votes from cpufreq (CPU nodes) thus achieve high 280b9c2ae6cSKrzysztof Kozlowski memory throughput even with lower CPU frequencies. 281b9c2ae6cSKrzysztof Kozlowski 2825b2dd77bSAnjelique Melendezconfig QCOM_PBS 2839706c380SKrzysztof Kozlowski tristate "PBS trigger support for Qualcomm PMICs" 2845b2dd77bSAnjelique Melendez depends on SPMI 2859b3daac1SKrzysztof Kozlowski default m if ARCH_QCOM 2865b2dd77bSAnjelique Melendez help 2875b2dd77bSAnjelique Melendez This driver supports configuring software programmable boot sequencer (PBS) 2885b2dd77bSAnjelique Melendez trigger event through PBS RAM on Qualcomm Technologies, Inc. PMICs. 2895b2dd77bSAnjelique Melendez This module provides the APIs to the client drivers that wants to send the 2905b2dd77bSAnjelique Melendez PBS trigger event to the PBS RAM. 2915b2dd77bSAnjelique Melendez 292f2866e6aSKrzysztof Kozlowskiendif 293f2866e6aSKrzysztof Kozlowski 294f2866e6aSKrzysztof Kozlowski# Options selected by other drivers from different subsystems must be outside 295f2866e6aSKrzysztof Kozlowski# of the menuconfig if-block: 296f2866e6aSKrzysztof Kozlowski 297f2866e6aSKrzysztof Kozlowskiconfig QCOM_INLINE_CRYPTO_ENGINE 298f2866e6aSKrzysztof Kozlowski tristate 299f2866e6aSKrzysztof Kozlowski select QCOM_SCM 300f2866e6aSKrzysztof Kozlowski 301f2866e6aSKrzysztof Kozlowskiconfig QCOM_KRYO_L2_ACCESSORS 302f2866e6aSKrzysztof Kozlowski bool 303f2866e6aSKrzysztof Kozlowski depends on ARM64 304f2866e6aSKrzysztof Kozlowski 305f2866e6aSKrzysztof Kozlowskiconfig QCOM_MDT_LOADER 306f2866e6aSKrzysztof Kozlowski tristate 307f2866e6aSKrzysztof Kozlowski select QCOM_SCM 308f2866e6aSKrzysztof Kozlowski 309f2866e6aSKrzysztof Kozlowskiconfig QCOM_PDR_HELPERS 310f2866e6aSKrzysztof Kozlowski tristate 311f2866e6aSKrzysztof Kozlowski select QCOM_QMI_HELPERS 312f2866e6aSKrzysztof Kozlowski select QCOM_PDR_MSG 313f2866e6aSKrzysztof Kozlowski depends on NET 314f2866e6aSKrzysztof Kozlowski 315*aed89a05SArnd Bergmannconfig QCOM_PDR_MSG 316*aed89a05SArnd Bergmann tristate 317*aed89a05SArnd Bergmann 318f2866e6aSKrzysztof Kozlowskiconfig QCOM_QMI_HELPERS 319f2866e6aSKrzysztof Kozlowski tristate 320f2866e6aSKrzysztof Kozlowski depends on NET 3211924272bSKonrad Dybcio 3221924272bSKonrad Dybcioconfig QCOM_UBWC_CONFIG 3231924272bSKonrad Dybcio tristate 324f24cfafdSDaniel Baluta depends on QCOM_SMEM 3251924272bSKonrad Dybcio help 3261924272bSKonrad Dybcio Most Qualcomm SoCs feature a number of Universal Bandwidth Compression 3271924272bSKonrad Dybcio (UBWC) engines across various IP blocks, which need to be initialized 3281924272bSKonrad Dybcio with coherent configuration data. This module functions as a single 3291924272bSKonrad Dybcio source of truth for that information. 330