Linux Audio

Check our new training course

Buildroot integration, development and maintenance

Need a Buildroot system for your embedded project?
Loading...
v6.8
  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	select DRM_AUX_HPD_BRIDGE
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_RAMP_CTRL
115	tristate "Qualcomm Ramp Controller driver"
116	depends on ARCH_QCOM || COMPILE_TEST
117	help
118	  The Ramp Controller is used to program the sequence ID for pulse
119	  swallowing, enable sequence and link sequence IDs for the CPU
120	  cores on some Qualcomm SoCs.
121	  Say y here to enable support for the ramp controller.
122
123config QCOM_RMTFS_MEM
124	tristate "Qualcomm Remote Filesystem memory driver"
125	depends on ARCH_QCOM
126	select QCOM_SCM
127	help
128	  The Qualcomm remote filesystem memory driver is used for allocating
129	  and exposing regions of shared memory with remote processors for the
130	  purpose of exchanging sector-data between the remote filesystem
131	  service and its clients.
132
133	  Say y here if you intend to boot the modem remoteproc.
134
135config QCOM_RPM_MASTER_STATS
136	tristate "Qualcomm RPM Master stats"
137	depends on ARCH_QCOM || COMPILE_TEST
138	help
139	  The RPM Master sleep stats driver provides detailed per-subsystem
140	  sleep/wake data, read from the RPM message RAM. It can be used to
141	  assess whether all the low-power modes available are entered as
142	  expected or to check which part of the SoC prevents it from sleeping.
143
144	  Say y here if you intend to debug or monitor platform sleep.
145
146config QCOM_RPMH
147	tristate "Qualcomm RPM-Hardened (RPMH) Communication"
148	depends on ARCH_QCOM || COMPILE_TEST
149	depends on (QCOM_COMMAND_DB || !QCOM_COMMAND_DB)
150	help
151	  Support for communication with the hardened-RPM blocks in
152	  Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an
153	  internal bus to transmit state requests for shared resources. A set
154	  of hardware components aggregate requests for these resources and
155	  help apply the aggregated state on the resource.
156
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157config QCOM_SMEM
158	tristate "Qualcomm Shared Memory Manager (SMEM)"
159	depends on ARCH_QCOM || COMPILE_TEST
160	depends on HWSPINLOCK
161	help
162	  Say y here to enable support for the Qualcomm Shared Memory Manager.
163	  The driver provides an interface to items in a heap shared among all
164	  processors in a Qualcomm platform.
165
166config QCOM_SMD_RPM
167	tristate "Qualcomm Resource Power Manager (RPM) over SMD"
168	depends on ARCH_QCOM || COMPILE_TEST
169	depends on RPMSG
170	depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
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	depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
226	help
227	  Qualcomm Technologies, Inc. (QTI) Sleep stats driver to read
228	  the shared memory exported by the remote processor related to
229	  various SoC level low power modes statistics and export to debugfs
230	  interface.
231
232config QCOM_WCNSS_CTRL
233	tristate "Qualcomm WCNSS control driver"
234	depends on ARCH_QCOM || COMPILE_TEST
235	depends on RPMSG
236	help
237	  Client driver for the WCNSS_CTRL SMD channel, used to download nv
238	  firmware to a newly booted WCNSS chip.
239
240config QCOM_APR
241	tristate "Qualcomm APR/GPR Bus (Asynchronous/Generic Packet Router)"
242	depends on ARCH_QCOM || COMPILE_TEST
243	depends on RPMSG
244	depends on NET
245	select QCOM_PDR_HELPERS
246	help
247	  Enable APR IPC protocol support between
248	  application processor and QDSP6. APR is
249	  used by audio driver to configure QDSP6
250	  ASM, ADM and AFE modules.
251
252config QCOM_ICC_BWMON
253	tristate "QCOM Interconnect Bandwidth Monitor driver"
254	depends on ARCH_QCOM || COMPILE_TEST
255	select PM_OPP
256	select REGMAP_MMIO
257	help
258	  Sets up driver monitoring bandwidth on various interconnects and
259	  based on that voting for interconnect bandwidth, adjusting their
260	  speed to current demand.
261	  Current implementation brings support for BWMON v4, used for example
262	  on SDM845 to measure bandwidth between CPU (gladiator_noc) and Last
263	  Level Cache (memnoc).  Usage of this BWMON allows to remove some of
264	  the fixed bandwidth votes from cpufreq (CPU nodes) thus achieve high
265	  memory throughput even with lower CPU frequencies.
266
267config QCOM_INLINE_CRYPTO_ENGINE
268	tristate
269	select QCOM_SCM
270
271endmenu
v5.4
  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_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_GLINK_SSR
 39	tristate "Qualcomm Glink SSR driver"
 40	depends on RPMSG
 41	depends on QCOM_RPROC_COMMON
 42	help
 43	  Say y here to enable GLINK SSR support. The GLINK SSR driver
 44	  implements the SSR protocol for notifying the remote processor about
 45	  neighboring subsystems going up or down.
 46
 47config QCOM_GSBI
 48        tristate "QCOM General Serial Bus Interface"
 49        depends on ARCH_QCOM || COMPILE_TEST
 50        select MFD_SYSCON
 51        help
 52          Say y here to enable GSBI support.  The GSBI provides control
 53          functions for connecting the underlying serial UART, SPI, and I2C
 54          devices to the output pins.
 55
 56config QCOM_LLCC
 57	tristate "Qualcomm Technologies, Inc. LLCC driver"
 58	depends on ARCH_QCOM || COMPILE_TEST
 
 59	help
 60	  Qualcomm Technologies, Inc. platform specific
 61	  Last Level Cache Controller(LLCC) driver. This provides interfaces
 62	  to clients that use the LLCC. Say yes here to enable LLCC slice
 63	  driver.
 64
 65config QCOM_SDM845_LLCC
 66	tristate "Qualcomm Technologies, Inc. SDM845 LLCC driver"
 67	depends on QCOM_LLCC
 68	help
 69	  Say yes here to enable the LLCC driver for SDM845. This provides
 70	  data required to configure LLCC so that clients can start using the
 71	  LLCC slices.
 72
 73config QCOM_MDT_LOADER
 74	tristate
 75	select QCOM_SCM
 76
 77config QCOM_PM
 78	bool "Qualcomm Power Management"
 79	depends on ARCH_QCOM && !ARM64
 80	select ARM_CPU_SUSPEND
 81	select QCOM_SCM
 82	help
 83	  QCOM Platform specific power driver to manage cores and L2 low power
 84	  modes. It interface with various system drivers to put the cores in
 85	  low power modes.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 86
 87config QCOM_QMI_HELPERS
 88	tristate
 
 
 
 
 89	depends on ARCH_QCOM || COMPILE_TEST
 90	depends on NET
 
 
 
 
 91
 92config QCOM_RMTFS_MEM
 93	tristate "Qualcomm Remote Filesystem memory driver"
 94	depends on ARCH_QCOM
 95	select QCOM_SCM
 96	help
 97	  The Qualcomm remote filesystem memory driver is used for allocating
 98	  and exposing regions of shared memory with remote processors for the
 99	  purpose of exchanging sector-data between the remote filesystem
100	  service and its clients.
101
102	  Say y here if you intend to boot the modem remoteproc.
103
 
 
 
 
 
 
 
 
 
 
 
104config QCOM_RPMH
105	bool "Qualcomm RPM-Hardened (RPMH) Communication"
106	depends on ARCH_QCOM && ARM64 || COMPILE_TEST
 
107	help
108	  Support for communication with the hardened-RPM blocks in
109	  Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an
110	  internal bus to transmit state requests for shared resources. A set
111	  of hardware components aggregate requests for these resources and
112	  help apply the aggregated state on the resource.
113
114config QCOM_RPMHPD
115	bool "Qualcomm RPMh Power domain driver"
116	depends on QCOM_RPMH && QCOM_COMMAND_DB
117	help
118	  QCOM RPMh Power domain driver to support power-domains with
119	  performance states. The driver communicates a performance state
120	  value to RPMh which then translates it into corresponding voltage
121	  for the voltage rail.
122
123config QCOM_RPMPD
124	bool "Qualcomm RPM Power domain driver"
125	depends on QCOM_SMD_RPM=y
126	help
127	  QCOM RPM Power domain driver to support power-domains with
128	  performance states. The driver communicates a performance state
129	  value to RPM which then translates it into corresponding voltage
130	  for the voltage rail.
131
132config QCOM_SMEM
133	tristate "Qualcomm Shared Memory Manager (SMEM)"
134	depends on ARCH_QCOM || COMPILE_TEST
135	depends on HWSPINLOCK
136	help
137	  Say y here to enable support for the Qualcomm Shared Memory Manager.
138	  The driver provides an interface to items in a heap shared among all
139	  processors in a Qualcomm platform.
140
141config QCOM_SMD_RPM
142	tristate "Qualcomm Resource Power Manager (RPM) over SMD"
143	depends on ARCH_QCOM || COMPILE_TEST
144	depends on RPMSG
 
145	help
146	  If you say yes to this option, support will be included for the
147	  Resource Power Manager system found in the Qualcomm 8974 based
148	  devices.
149
150	  This is required to access many regulators, clocks and bus
151	  frequencies controlled by the RPM on these devices.
152
153	  Say M here if you want to include support for the Qualcomm RPM as a
154	  module. This will build a module called "qcom-smd-rpm".
155
156config QCOM_SMEM_STATE
157	bool
158
159config QCOM_SMP2P
160	tristate "Qualcomm Shared Memory Point to Point support"
161	depends on MAILBOX
162	depends on QCOM_SMEM
163	select QCOM_SMEM_STATE
164	select IRQ_DOMAIN
165	help
166	  Say yes here to support the Qualcomm Shared Memory Point to Point
167	  protocol.
168
169config QCOM_SMSM
170	tristate "Qualcomm Shared Memory State Machine"
171	depends on QCOM_SMEM
172	select QCOM_SMEM_STATE
173	select IRQ_DOMAIN
174	help
175	  Say yes here to support the Qualcomm Shared Memory State Machine.
176	  The state machine is represented by bits in shared memory.
177
178config QCOM_SOCINFO
179	tristate "Qualcomm socinfo driver"
180	depends on QCOM_SMEM
181	select SOC_BUS
182	help
183	 Say yes here to support the Qualcomm socinfo driver, providing
184	 information about the SoC to user space.
185
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186config QCOM_WCNSS_CTRL
187	tristate "Qualcomm WCNSS control driver"
188	depends on ARCH_QCOM || COMPILE_TEST
189	depends on RPMSG
190	help
191	  Client driver for the WCNSS_CTRL SMD channel, used to download nv
192	  firmware to a newly booted WCNSS chip.
193
194config QCOM_APR
195	tristate "Qualcomm APR Bus (Asynchronous Packet Router)"
196	depends on ARCH_QCOM || COMPILE_TEST
197	depends on RPMSG
 
 
198	help
199          Enable APR IPC protocol support between
200          application processor and QDSP6. APR is
201          used by audio driver to configure QDSP6
202          ASM, ADM and AFE modules.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203endmenu