xref: /openbmc/linux/drivers/soc/qcom/Kconfig (revision 3f58ff6b)
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_QMI_HELPERS
96	tristate
97	depends on NET
98
99config QCOM_RMTFS_MEM
100	tristate "Qualcomm Remote Filesystem memory driver"
101	depends on ARCH_QCOM
102	select QCOM_SCM
103	help
104	  The Qualcomm remote filesystem memory driver is used for allocating
105	  and exposing regions of shared memory with remote processors for the
106	  purpose of exchanging sector-data between the remote filesystem
107	  service and its clients.
108
109	  Say y here if you intend to boot the modem remoteproc.
110
111config QCOM_RPMH
112	tristate "Qualcomm RPM-Hardened (RPMH) Communication"
113	depends on ARCH_QCOM || COMPILE_TEST
114	depends on (QCOM_COMMAND_DB || !QCOM_COMMAND_DB)
115	help
116	  Support for communication with the hardened-RPM blocks in
117	  Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an
118	  internal bus to transmit state requests for shared resources. A set
119	  of hardware components aggregate requests for these resources and
120	  help apply the aggregated state on the resource.
121
122config QCOM_RPMHPD
123	tristate "Qualcomm RPMh Power domain driver"
124	depends on QCOM_RPMH && QCOM_COMMAND_DB
125	help
126	  QCOM RPMh Power domain driver to support power-domains with
127	  performance states. The driver communicates a performance state
128	  value to RPMh which then translates it into corresponding voltage
129	  for the voltage rail.
130
131config QCOM_RPMPD
132	tristate "Qualcomm RPM Power domain driver"
133	depends on PM && OF
134	depends on QCOM_SMD_RPM
135	select PM_GENERIC_DOMAINS
136	select PM_GENERIC_DOMAINS_OF
137	help
138	  QCOM RPM Power domain driver to support power-domains with
139	  performance states. The driver communicates a performance state
140	  value to RPM which then translates it into corresponding voltage
141	  for the voltage rail.
142
143config QCOM_SMEM
144	tristate "Qualcomm Shared Memory Manager (SMEM)"
145	depends on ARCH_QCOM || COMPILE_TEST
146	depends on HWSPINLOCK
147	help
148	  Say y here to enable support for the Qualcomm Shared Memory Manager.
149	  The driver provides an interface to items in a heap shared among all
150	  processors in a Qualcomm platform.
151
152config QCOM_SMD_RPM
153	tristate "Qualcomm Resource Power Manager (RPM) over SMD"
154	depends on ARCH_QCOM || COMPILE_TEST
155	depends on RPMSG
156	help
157	  If you say yes to this option, support will be included for the
158	  Resource Power Manager system found in the Qualcomm 8974 based
159	  devices.
160
161	  This is required to access many regulators, clocks and bus
162	  frequencies controlled by the RPM on these devices.
163
164	  Say M here if you want to include support for the Qualcomm RPM as a
165	  module. This will build a module called "qcom-smd-rpm".
166
167config QCOM_SMEM_STATE
168	bool
169
170config QCOM_SMP2P
171	tristate "Qualcomm Shared Memory Point to Point support"
172	depends on MAILBOX
173	depends on QCOM_SMEM
174	select QCOM_SMEM_STATE
175	select IRQ_DOMAIN
176	help
177	  Say yes here to support the Qualcomm Shared Memory Point to Point
178	  protocol.
179
180config QCOM_SMSM
181	tristate "Qualcomm Shared Memory State Machine"
182	depends on QCOM_SMEM
183	select QCOM_SMEM_STATE
184	select IRQ_DOMAIN
185	help
186	  Say yes here to support the Qualcomm Shared Memory State Machine.
187	  The state machine is represented by bits in shared memory.
188
189config QCOM_SOCINFO
190	tristate "Qualcomm socinfo driver"
191	depends on QCOM_SMEM
192	select SOC_BUS
193	help
194	 Say yes here to support the Qualcomm socinfo driver, providing
195	 information about the SoC to user space.
196
197config QCOM_SPM
198	tristate "Qualcomm Subsystem Power Manager (SPM)"
199	depends on ARCH_QCOM || COMPILE_TEST
200	select QCOM_SCM
201	help
202	  Enable the support for the Qualcomm Subsystem Power Manager, used
203	  to manage cores, L2 low power modes and to configure the internal
204	  Adaptive Voltage Scaler parameters, where supported.
205
206config QCOM_STATS
207	tristate "Qualcomm Technologies, Inc. (QTI) Sleep stats driver"
208	depends on (ARCH_QCOM && DEBUG_FS) || COMPILE_TEST
209	depends on QCOM_SMEM
210	help
211	  Qualcomm Technologies, Inc. (QTI) Sleep stats driver to read
212	  the shared memory exported by the remote processor related to
213	  various SoC level low power modes statistics and export to debugfs
214	  interface.
215
216config QCOM_WCNSS_CTRL
217	tristate "Qualcomm WCNSS control driver"
218	depends on ARCH_QCOM || COMPILE_TEST
219	depends on RPMSG
220	help
221	  Client driver for the WCNSS_CTRL SMD channel, used to download nv
222	  firmware to a newly booted WCNSS chip.
223
224config QCOM_APR
225	tristate "Qualcomm APR/GPR Bus (Asynchronous/Generic Packet Router)"
226	depends on ARCH_QCOM || COMPILE_TEST
227	depends on RPMSG
228	depends on NET
229	select QCOM_PDR_HELPERS
230	help
231	  Enable APR IPC protocol support between
232	  application processor and QDSP6. APR is
233	  used by audio driver to configure QDSP6
234	  ASM, ADM and AFE modules.
235
236config QCOM_ICC_BWMON
237	tristate "QCOM Interconnect Bandwidth Monitor driver"
238	depends on ARCH_QCOM || COMPILE_TEST
239	select PM_OPP
240	select REGMAP_MMIO
241	help
242	  Sets up driver monitoring bandwidth on various interconnects and
243	  based on that voting for interconnect bandwidth, adjusting their
244	  speed to current demand.
245	  Current implementation brings support for BWMON v4, used for example
246	  on SDM845 to measure bandwidth between CPU (gladiator_noc) and Last
247	  Level Cache (memnoc).  Usage of this BWMON allows to remove some of
248	  the fixed bandwidth votes from cpufreq (CPU nodes) thus achieve high
249	  memory throughput even with lower CPU frequencies.
250
251endmenu
252