xref: /linux/drivers/soc/qcom/Kconfig (revision 5b9b41617bf3e1282cc60f07d3d52e62399aa4ba)
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_GENI_SE
30	tristate "QCOM GENI Serial Engine Driver"
31	depends on ARCH_QCOM || COMPILE_TEST
32	help
33	  This driver is used to manage Generic Interface (GENI) firmware based
34	  Qualcomm Technologies, Inc. Universal Peripheral (QUP) Wrapper. This
35	  driver is also used to manage the common aspects of multiple Serial
36	  Engines present in the QUP.
37
38config QCOM_GSBI
39	tristate "QCOM General Serial Bus Interface"
40	depends on ARCH_QCOM || COMPILE_TEST
41	select MFD_SYSCON
42	help
43	  Say y here to enable GSBI support.  The GSBI provides control
44	  functions for connecting the underlying serial UART, SPI, and I2C
45	  devices to the output pins.
46
47config QCOM_LLCC
48	tristate "Qualcomm Technologies, Inc. LLCC driver"
49	depends on ARCH_QCOM || COMPILE_TEST
50	select REGMAP_MMIO
51	help
52	  Qualcomm Technologies, Inc. platform specific
53	  Last Level Cache Controller(LLCC) driver for platforms such as,
54	  SDM845. This provides interfaces to clients that use the LLCC.
55	  Say yes here to enable LLCC slice driver.
56
57config QCOM_KRYO_L2_ACCESSORS
58	bool
59	depends on (ARCH_QCOM || COMPILE_TEST) && ARM64
60
61config QCOM_MDT_LOADER
62	tristate
63	select QCOM_SCM
64
65config QCOM_OCMEM
66	tristate "Qualcomm On Chip Memory (OCMEM) driver"
67	depends on ARCH_QCOM
68	select QCOM_SCM
69	help
70	  The On Chip Memory (OCMEM) allocator allows various clients to
71	  allocate memory from OCMEM based on performance, latency and power
72	  requirements. This is typically used by the GPU, camera/video, and
73	  audio components on some Snapdragon SoCs.
74
75config QCOM_PDR_HELPERS
76	tristate
77	select QCOM_QMI_HELPERS
78	depends on NET
79
80config QCOM_PMIC_PDCHARGER_ULOG
81	tristate "Qualcomm PMIC PDCharger ULOG driver"
82	depends on RPMSG
83	depends on EVENT_TRACING
84	help
85	  The Qualcomm PMIC PDCharger ULOG driver provides access to logs of
86	  the ADSP firmware PDCharger module in charge of Battery and Power
87	  Delivery on modern systems.
88
89	  Say yes here to support PDCharger ULOG event tracing on modern
90	  Qualcomm platforms.
91
92config QCOM_PMIC_GLINK
93	tristate "Qualcomm PMIC GLINK driver"
94	depends on RPMSG
95	depends on TYPEC
96	depends on DRM
97	depends on NET
98	depends on OF
99	select AUXILIARY_BUS
100	select QCOM_PDR_HELPERS
101	help
102	  The Qualcomm PMIC GLINK driver provides access, over GLINK, to the
103	  USB and battery firmware running on one of the coprocessors in
104	  several modern Qualcomm platforms.
105
106	  Say yes here to support USB-C and battery status on modern Qualcomm
107	  platforms.
108
109config QCOM_QMI_HELPERS
110	tristate
111	depends on NET
112
113config QCOM_RAMP_CTRL
114	tristate "Qualcomm Ramp Controller driver"
115	depends on ARCH_QCOM || COMPILE_TEST
116	help
117	  The Ramp Controller is used to program the sequence ID for pulse
118	  swallowing, enable sequence and link sequence IDs for the CPU
119	  cores on some Qualcomm SoCs.
120	  Say y here to enable support for the ramp controller.
121
122config QCOM_RMTFS_MEM
123	tristate "Qualcomm Remote Filesystem memory driver"
124	depends on ARCH_QCOM
125	select QCOM_SCM
126	help
127	  The Qualcomm remote filesystem memory driver is used for allocating
128	  and exposing regions of shared memory with remote processors for the
129	  purpose of exchanging sector-data between the remote filesystem
130	  service and its clients.
131
132	  Say y here if you intend to boot the modem remoteproc.
133
134config QCOM_RPM_MASTER_STATS
135	tristate "Qualcomm RPM Master stats"
136	depends on ARCH_QCOM || COMPILE_TEST
137	help
138	  The RPM Master sleep stats driver provides detailed per-subsystem
139	  sleep/wake data, read from the RPM message RAM. It can be used to
140	  assess whether all the low-power modes available are entered as
141	  expected or to check which part of the SoC prevents it from sleeping.
142
143	  Say y here if you intend to debug or monitor platform sleep.
144
145config QCOM_RPMH
146	tristate "Qualcomm RPM-Hardened (RPMH) Communication"
147	depends on ARCH_QCOM || COMPILE_TEST
148	depends on (QCOM_COMMAND_DB || !QCOM_COMMAND_DB)
149	help
150	  Support for communication with the hardened-RPM blocks in
151	  Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an
152	  internal bus to transmit state requests for shared resources. A set
153	  of hardware components aggregate requests for these resources and
154	  help apply the aggregated state on the resource.
155
156config QCOM_SMEM
157	tristate "Qualcomm Shared Memory Manager (SMEM)"
158	depends on ARCH_QCOM || COMPILE_TEST
159	depends on HWSPINLOCK
160	help
161	  Say y here to enable support for the Qualcomm Shared Memory Manager.
162	  The driver provides an interface to items in a heap shared among all
163	  processors in a Qualcomm platform.
164
165config QCOM_SMD_RPM
166	tristate "Qualcomm Resource Power Manager (RPM) over SMD"
167	depends on ARCH_QCOM || COMPILE_TEST
168	depends on RPMSG
169	depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
170	help
171	  If you say yes to this option, support will be included for the
172	  Resource Power Manager system found in the Qualcomm 8974 based
173	  devices.
174
175	  This is required to access many regulators, clocks and bus
176	  frequencies controlled by the RPM on these devices.
177
178	  Say M here if you want to include support for the Qualcomm RPM as a
179	  module. This will build a module called "qcom-smd-rpm".
180
181config QCOM_SMEM_STATE
182	bool
183
184config QCOM_SMP2P
185	tristate "Qualcomm Shared Memory Point to Point support"
186	depends on MAILBOX
187	depends on QCOM_SMEM
188	select QCOM_SMEM_STATE
189	select IRQ_DOMAIN
190	help
191	  Say yes here to support the Qualcomm Shared Memory Point to Point
192	  protocol.
193
194config QCOM_SMSM
195	tristate "Qualcomm Shared Memory State Machine"
196	depends on QCOM_SMEM
197	select QCOM_SMEM_STATE
198	select IRQ_DOMAIN
199	help
200	  Say yes here to support the Qualcomm Shared Memory State Machine.
201	  The state machine is represented by bits in shared memory.
202
203config QCOM_SOCINFO
204	tristate "Qualcomm socinfo driver"
205	depends on QCOM_SMEM
206	select SOC_BUS
207	help
208	 Say yes here to support the Qualcomm socinfo driver, providing
209	 information about the SoC to user space.
210
211config QCOM_SPM
212	tristate "Qualcomm Subsystem Power Manager (SPM)"
213	depends on ARCH_QCOM || COMPILE_TEST
214	select QCOM_SCM
215	help
216	  Enable the support for the Qualcomm Subsystem Power Manager, used
217	  to manage cores, L2 low power modes and to configure the internal
218	  Adaptive Voltage Scaler parameters, where supported.
219
220config QCOM_STATS
221	tristate "Qualcomm Technologies, Inc. (QTI) Sleep stats driver"
222	depends on (ARCH_QCOM && DEBUG_FS) || COMPILE_TEST
223	depends on QCOM_SMEM
224	depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
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
266config QCOM_INLINE_CRYPTO_ENGINE
267	tristate
268	select QCOM_SCM
269
270endmenu
271