xref: /openbmc/linux/drivers/soc/qcom/Kconfig (revision b96c0546)
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	bool "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	help
67	  Qualcomm Technologies, Inc. platform specific
68	  Last Level Cache Controller(LLCC) driver for platforms such as,
69	  SDM845. This provides interfaces to clients that use the LLCC.
70	  Say yes here to enable LLCC slice driver.
71
72config QCOM_KRYO_L2_ACCESSORS
73	bool
74	depends on ARCH_QCOM && ARM64 || COMPILE_TEST
75
76config QCOM_MDT_LOADER
77	tristate
78	select QCOM_SCM
79
80config QCOM_OCMEM
81	tristate "Qualcomm On Chip Memory (OCMEM) driver"
82	depends on ARCH_QCOM
83	select QCOM_SCM
84	help
85	  The On Chip Memory (OCMEM) allocator allows various clients to
86	  allocate memory from OCMEM based on performance, latency and power
87	  requirements. This is typically used by the GPU, camera/video, and
88	  audio components on some Snapdragon SoCs.
89
90config QCOM_PDR_HELPERS
91	tristate
92	select QCOM_QMI_HELPERS
93
94config QCOM_QMI_HELPERS
95	tristate
96	depends on NET
97
98config QCOM_RMTFS_MEM
99	tristate "Qualcomm Remote Filesystem memory driver"
100	depends on ARCH_QCOM
101	select QCOM_SCM
102	help
103	  The Qualcomm remote filesystem memory driver is used for allocating
104	  and exposing regions of shared memory with remote processors for the
105	  purpose of exchanging sector-data between the remote filesystem
106	  service and its clients.
107
108	  Say y here if you intend to boot the modem remoteproc.
109
110config QCOM_RPMH
111	bool "Qualcomm RPM-Hardened (RPMH) Communication"
112	depends on ARCH_QCOM || COMPILE_TEST
113	help
114	  Support for communication with the hardened-RPM blocks in
115	  Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an
116	  internal bus to transmit state requests for shared resources. A set
117	  of hardware components aggregate requests for these resources and
118	  help apply the aggregated state on the resource.
119
120config QCOM_RPMHPD
121	tristate "Qualcomm RPMh Power domain driver"
122	depends on QCOM_RPMH && QCOM_COMMAND_DB
123	help
124	  QCOM RPMh Power domain driver to support power-domains with
125	  performance states. The driver communicates a performance state
126	  value to RPMh which then translates it into corresponding voltage
127	  for the voltage rail.
128
129config QCOM_RPMPD
130	tristate "Qualcomm RPM Power domain driver"
131	depends on QCOM_SMD_RPM
132	help
133	  QCOM RPM Power domain driver to support power-domains with
134	  performance states. The driver communicates a performance state
135	  value to RPM which then translates it into corresponding voltage
136	  for the voltage rail.
137
138config QCOM_SMEM
139	tristate "Qualcomm Shared Memory Manager (SMEM)"
140	depends on ARCH_QCOM || COMPILE_TEST
141	depends on HWSPINLOCK
142	help
143	  Say y here to enable support for the Qualcomm Shared Memory Manager.
144	  The driver provides an interface to items in a heap shared among all
145	  processors in a Qualcomm platform.
146
147config QCOM_SMD_RPM
148	tristate "Qualcomm Resource Power Manager (RPM) over SMD"
149	depends on ARCH_QCOM || COMPILE_TEST
150	depends on RPMSG
151	help
152	  If you say yes to this option, support will be included for the
153	  Resource Power Manager system found in the Qualcomm 8974 based
154	  devices.
155
156	  This is required to access many regulators, clocks and bus
157	  frequencies controlled by the RPM on these devices.
158
159	  Say M here if you want to include support for the Qualcomm RPM as a
160	  module. This will build a module called "qcom-smd-rpm".
161
162config QCOM_SMEM_STATE
163	bool
164
165config QCOM_SMP2P
166	tristate "Qualcomm Shared Memory Point to Point support"
167	depends on MAILBOX
168	depends on QCOM_SMEM
169	select QCOM_SMEM_STATE
170	select IRQ_DOMAIN
171	help
172	  Say yes here to support the Qualcomm Shared Memory Point to Point
173	  protocol.
174
175config QCOM_SMSM
176	tristate "Qualcomm Shared Memory State Machine"
177	depends on QCOM_SMEM
178	select QCOM_SMEM_STATE
179	select IRQ_DOMAIN
180	help
181	  Say yes here to support the Qualcomm Shared Memory State Machine.
182	  The state machine is represented by bits in shared memory.
183
184config QCOM_SOCINFO
185	tristate "Qualcomm socinfo driver"
186	depends on QCOM_SMEM
187	select SOC_BUS
188	help
189	 Say yes here to support the Qualcomm socinfo driver, providing
190	 information about the SoC to user space.
191
192config QCOM_WCNSS_CTRL
193	tristate "Qualcomm WCNSS control driver"
194	depends on ARCH_QCOM || COMPILE_TEST
195	depends on RPMSG
196	help
197	  Client driver for the WCNSS_CTRL SMD channel, used to download nv
198	  firmware to a newly booted WCNSS chip.
199
200config QCOM_APR
201	tristate "Qualcomm APR Bus (Asynchronous Packet Router)"
202	depends on ARCH_QCOM || COMPILE_TEST
203	depends on RPMSG
204	depends on NET
205	select QCOM_PDR_HELPERS
206	help
207	  Enable APR IPC protocol support between
208	  application processor and QDSP6. APR is
209	  used by audio driver to configure QDSP6
210	  ASM, ADM and AFE modules.
211endmenu
212