1# SPDX-License-Identifier: GPL-2.0-only 2# 3# QCOM Soc drivers 4# 5menu "Qualcomm SoC drivers" 6 7config QCOM_AOSS_QMP 8 tristate "Qualcomm AOSS Driver" 9 depends on ARCH_QCOM || COMPILE_TEST 10 depends on MAILBOX 11 depends on COMMON_CLK && PM 12 select PM_GENERIC_DOMAINS 13 help 14 This driver provides the means of communicating with and controlling 15 the low-power state for resources related to the remoteproc 16 subsystems as well as controlling the debug clocks exposed by the Always On 17 Subsystem (AOSS) using Qualcomm Messaging Protocol (QMP). 18 19config QCOM_COMMAND_DB 20 tristate "Qualcomm Command DB" 21 depends on ARCH_QCOM || COMPILE_TEST 22 depends on OF_RESERVED_MEM 23 help 24 Command DB queries shared memory by key string for shared system 25 resources. Platform drivers that require to set state of a shared 26 resource on a RPM-hardened platform must use this database to get 27 SoC specific identifier and information for the shared resources. 28 29config QCOM_CPR 30 tristate "QCOM Core Power Reduction (CPR) support" 31 depends on ARCH_QCOM && HAS_IOMEM 32 select PM_OPP 33 select REGMAP 34 help 35 Say Y here to enable support for the CPR hardware found on Qualcomm 36 SoCs like QCS404. 37 38 This driver populates CPU OPPs tables and makes adjustments to the 39 tables based on feedback from the CPR hardware. If you want to do 40 CPUfrequency scaling say Y here. 41 42 To compile this driver as a module, choose M here: the module will 43 be called qcom-cpr 44 45config QCOM_GENI_SE 46 tristate "QCOM GENI Serial Engine Driver" 47 depends on ARCH_QCOM || COMPILE_TEST 48 help 49 This driver is used to manage Generic Interface (GENI) firmware based 50 Qualcomm Technologies, Inc. Universal Peripheral (QUP) Wrapper. This 51 driver is also used to manage the common aspects of multiple Serial 52 Engines present in the QUP. 53 54config QCOM_GSBI 55 tristate "QCOM General Serial Bus Interface" 56 depends on ARCH_QCOM || COMPILE_TEST 57 select MFD_SYSCON 58 help 59 Say y here to enable GSBI support. The GSBI provides control 60 functions for connecting the underlying serial UART, SPI, and I2C 61 devices to the output pins. 62 63config QCOM_LLCC 64 tristate "Qualcomm Technologies, Inc. LLCC driver" 65 depends on ARCH_QCOM || COMPILE_TEST 66 select REGMAP_MMIO 67 help 68 Qualcomm Technologies, Inc. platform specific 69 Last Level Cache Controller(LLCC) driver for platforms such as, 70 SDM845. This provides interfaces to clients that use the LLCC. 71 Say yes here to enable LLCC slice driver. 72 73config QCOM_KRYO_L2_ACCESSORS 74 bool 75 depends on ARCH_QCOM && ARM64 || COMPILE_TEST 76 77config QCOM_MDT_LOADER 78 tristate 79 select QCOM_SCM 80 81config QCOM_OCMEM 82 tristate "Qualcomm On Chip Memory (OCMEM) driver" 83 depends on ARCH_QCOM 84 select QCOM_SCM 85 help 86 The On Chip Memory (OCMEM) allocator allows various clients to 87 allocate memory from OCMEM based on performance, latency and power 88 requirements. This is typically used by the GPU, camera/video, and 89 audio components on some Snapdragon SoCs. 90 91config QCOM_PDR_HELPERS 92 tristate 93 select QCOM_QMI_HELPERS 94 95config QCOM_PMIC_GLINK 96 tristate "Qualcomm PMIC GLINK driver" 97 depends on RPMSG 98 depends on TYPEC 99 depends on DRM 100 select AUXILIARY_BUS 101 select QCOM_PDR_HELPERS 102 help 103 The Qualcomm PMIC GLINK driver provides access, over GLINK, to the 104 USB and battery firmware running on one of the coprocessors in 105 several modern Qualcomm platforms. 106 107 Say yes here to support USB-C and battery status on modern Qualcomm 108 platforms. 109 110config QCOM_QMI_HELPERS 111 tristate 112 depends on NET 113 114config QCOM_RMTFS_MEM 115 tristate "Qualcomm Remote Filesystem memory driver" 116 depends on ARCH_QCOM 117 select QCOM_SCM 118 help 119 The Qualcomm remote filesystem memory driver is used for allocating 120 and exposing regions of shared memory with remote processors for the 121 purpose of exchanging sector-data between the remote filesystem 122 service and its clients. 123 124 Say y here if you intend to boot the modem remoteproc. 125 126config QCOM_RPMH 127 tristate "Qualcomm RPM-Hardened (RPMH) Communication" 128 depends on ARCH_QCOM || COMPILE_TEST 129 depends on (QCOM_COMMAND_DB || !QCOM_COMMAND_DB) 130 help 131 Support for communication with the hardened-RPM blocks in 132 Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an 133 internal bus to transmit state requests for shared resources. A set 134 of hardware components aggregate requests for these resources and 135 help apply the aggregated state on the resource. 136 137config QCOM_RPMHPD 138 tristate "Qualcomm RPMh Power domain driver" 139 depends on QCOM_RPMH && QCOM_COMMAND_DB 140 help 141 QCOM RPMh Power domain driver to support power-domains with 142 performance states. The driver communicates a performance state 143 value to RPMh which then translates it into corresponding voltage 144 for the voltage rail. 145 146config QCOM_RPMPD 147 tristate "Qualcomm RPM Power domain driver" 148 depends on PM && OF 149 depends on QCOM_SMD_RPM 150 select PM_GENERIC_DOMAINS 151 select PM_GENERIC_DOMAINS_OF 152 help 153 QCOM RPM Power domain driver to support power-domains with 154 performance states. The driver communicates a performance state 155 value to RPM which then translates it into corresponding voltage 156 for the voltage rail. 157 158config QCOM_SMEM 159 tristate "Qualcomm Shared Memory Manager (SMEM)" 160 depends on ARCH_QCOM || COMPILE_TEST 161 depends on HWSPINLOCK 162 help 163 Say y here to enable support for the Qualcomm Shared Memory Manager. 164 The driver provides an interface to items in a heap shared among all 165 processors in a Qualcomm platform. 166 167config QCOM_SMD_RPM 168 tristate "Qualcomm Resource Power Manager (RPM) over SMD" 169 depends on ARCH_QCOM || COMPILE_TEST 170 depends on RPMSG 171 help 172 If you say yes to this option, support will be included for the 173 Resource Power Manager system found in the Qualcomm 8974 based 174 devices. 175 176 This is required to access many regulators, clocks and bus 177 frequencies controlled by the RPM on these devices. 178 179 Say M here if you want to include support for the Qualcomm RPM as a 180 module. This will build a module called "qcom-smd-rpm". 181 182config QCOM_SMEM_STATE 183 bool 184 185config QCOM_SMP2P 186 tristate "Qualcomm Shared Memory Point to Point support" 187 depends on MAILBOX 188 depends on QCOM_SMEM 189 select QCOM_SMEM_STATE 190 select IRQ_DOMAIN 191 help 192 Say yes here to support the Qualcomm Shared Memory Point to Point 193 protocol. 194 195config QCOM_SMSM 196 tristate "Qualcomm Shared Memory State Machine" 197 depends on QCOM_SMEM 198 select QCOM_SMEM_STATE 199 select IRQ_DOMAIN 200 help 201 Say yes here to support the Qualcomm Shared Memory State Machine. 202 The state machine is represented by bits in shared memory. 203 204config QCOM_SOCINFO 205 tristate "Qualcomm socinfo driver" 206 depends on QCOM_SMEM 207 select SOC_BUS 208 help 209 Say yes here to support the Qualcomm socinfo driver, providing 210 information about the SoC to user space. 211 212config QCOM_SPM 213 tristate "Qualcomm Subsystem Power Manager (SPM)" 214 depends on ARCH_QCOM || COMPILE_TEST 215 select QCOM_SCM 216 help 217 Enable the support for the Qualcomm Subsystem Power Manager, used 218 to manage cores, L2 low power modes and to configure the internal 219 Adaptive Voltage Scaler parameters, where supported. 220 221config QCOM_STATS 222 tristate "Qualcomm Technologies, Inc. (QTI) Sleep stats driver" 223 depends on (ARCH_QCOM && DEBUG_FS) || COMPILE_TEST 224 depends on QCOM_SMEM 225 help 226 Qualcomm Technologies, Inc. (QTI) Sleep stats driver to read 227 the shared memory exported by the remote processor related to 228 various SoC level low power modes statistics and export to debugfs 229 interface. 230 231config QCOM_WCNSS_CTRL 232 tristate "Qualcomm WCNSS control driver" 233 depends on ARCH_QCOM || COMPILE_TEST 234 depends on RPMSG 235 help 236 Client driver for the WCNSS_CTRL SMD channel, used to download nv 237 firmware to a newly booted WCNSS chip. 238 239config QCOM_APR 240 tristate "Qualcomm APR/GPR Bus (Asynchronous/Generic Packet Router)" 241 depends on ARCH_QCOM || COMPILE_TEST 242 depends on RPMSG 243 depends on NET 244 select QCOM_PDR_HELPERS 245 help 246 Enable APR IPC protocol support between 247 application processor and QDSP6. APR is 248 used by audio driver to configure QDSP6 249 ASM, ADM and AFE modules. 250 251config QCOM_ICC_BWMON 252 tristate "QCOM Interconnect Bandwidth Monitor driver" 253 depends on ARCH_QCOM || COMPILE_TEST 254 select PM_OPP 255 select REGMAP_MMIO 256 help 257 Sets up driver monitoring bandwidth on various interconnects and 258 based on that voting for interconnect bandwidth, adjusting their 259 speed to current demand. 260 Current implementation brings support for BWMON v4, used for example 261 on SDM845 to measure bandwidth between CPU (gladiator_noc) and Last 262 Level Cache (memnoc). Usage of this BWMON allows to remove some of 263 the fixed bandwidth votes from cpufreq (CPU nodes) thus achieve high 264 memory throughput even with lower CPU frequencies. 265 266endmenu 267