xref: /linux/drivers/soc/qcom/Kconfig (revision 70b139a7af7106b59ca5ca77673a9c56982b3089)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
25d144e36SAndy Gross#
35d144e36SAndy Gross# QCOM Soc drivers
45d144e36SAndy Gross#
52a464815SSrinivas Kandagatlamenu "Qualcomm SoC drivers"
62a464815SSrinivas Kandagatla
722094814SBjorn Anderssonconfig QCOM_AOSS_QMP
822094814SBjorn Andersson	tristate "Qualcomm AOSS Driver"
922094814SBjorn Andersson	depends on ARCH_QCOM || COMPILE_TEST
1022094814SBjorn Andersson	depends on MAILBOX
116b9d226bSRandy Dunlap	depends on COMMON_CLK && PM
1222094814SBjorn Andersson	select PM_GENERIC_DOMAINS
1322094814SBjorn Andersson	help
1422094814SBjorn Andersson	  This driver provides the means of communicating with and controlling
1522094814SBjorn Andersson	  the low-power state for resources related to the remoteproc
1622094814SBjorn Andersson	  subsystems as well as controlling the debug clocks exposed by the Always On
1722094814SBjorn Andersson	  Subsystem (AOSS) using Qualcomm Messaging Protocol (QMP).
1822094814SBjorn Andersson
19312416d9SMahesh Sivasubramanianconfig QCOM_COMMAND_DB
20778279f4SLina Iyer	tristate "Qualcomm Command DB"
210ea3fa15SArnd Bergmann	depends on ARCH_QCOM || COMPILE_TEST
220ea3fa15SArnd Bergmann	depends on OF_RESERVED_MEM
23312416d9SMahesh Sivasubramanian	help
24312416d9SMahesh Sivasubramanian	  Command DB queries shared memory by key string for shared system
25312416d9SMahesh Sivasubramanian	  resources. Platform drivers that require to set state of a shared
26312416d9SMahesh Sivasubramanian	  resource on a RPM-hardened platform must use this database to get
27312416d9SMahesh Sivasubramanian	  SoC specific identifier and information for the shared resources.
28312416d9SMahesh Sivasubramanian
29eddac5afSKarthikeyan Ramasubramanianconfig QCOM_GENI_SE
30eddac5afSKarthikeyan Ramasubramanian	tristate "QCOM GENI Serial Engine Driver"
31eddac5afSKarthikeyan Ramasubramanian	depends on ARCH_QCOM || COMPILE_TEST
32eddac5afSKarthikeyan Ramasubramanian	help
33eddac5afSKarthikeyan Ramasubramanian	  This driver is used to manage Generic Interface (GENI) firmware based
34eddac5afSKarthikeyan Ramasubramanian	  Qualcomm Technologies, Inc. Universal Peripheral (QUP) Wrapper. This
35eddac5afSKarthikeyan Ramasubramanian	  driver is also used to manage the common aspects of multiple Serial
36eddac5afSKarthikeyan Ramasubramanian	  Engines present in the QUP.
37eddac5afSKarthikeyan Ramasubramanian
385d144e36SAndy Grossconfig QCOM_GSBI
395d144e36SAndy Gross	tristate "QCOM General Serial Bus Interface"
40ccfb464cSNiklas Cassel	depends on ARCH_QCOM || COMPILE_TEST
41e5fdad68SAndy Gross	select MFD_SYSCON
425d144e36SAndy Gross	help
435d144e36SAndy Gross	  Say y here to enable GSBI support.  The GSBI provides control
445d144e36SAndy Gross	  functions for connecting the underlying serial UART, SPI, and I2C
455d144e36SAndy Gross	  devices to the output pins.
465d144e36SAndy Gross
47a3134fb0SRishabh Bhatnagarconfig QCOM_LLCC
48a3134fb0SRishabh Bhatnagar	tristate "Qualcomm Technologies, Inc. LLCC driver"
49ccfb464cSNiklas Cassel	depends on ARCH_QCOM || COMPILE_TEST
505d2fe2d7SManivannan Sadhasivam	select REGMAP_MMIO
51a3134fb0SRishabh Bhatnagar	help
52a3134fb0SRishabh Bhatnagar	  Qualcomm Technologies, Inc. platform specific
53a14b8203SVivek Gautam	  Last Level Cache Controller(LLCC) driver for platforms such as,
54a14b8203SVivek Gautam	  SDM845. This provides interfaces to clients that use the LLCC.
55a14b8203SVivek Gautam	  Say yes here to enable LLCC slice driver.
56a3134fb0SRishabh Bhatnagar
576d0efeb1SIlia Linconfig QCOM_KRYO_L2_ACCESSORS
586d0efeb1SIlia Lin	bool
5934bb2c1cSKrzysztof Kozlowski	depends on (ARCH_QCOM || COMPILE_TEST) && ARM64
606d0efeb1SIlia Lin
612aad40d9SBjorn Anderssonconfig QCOM_MDT_LOADER
622aad40d9SBjorn Andersson	tristate
632aad40d9SBjorn Andersson	select QCOM_SCM
642aad40d9SBjorn Andersson
6588c1e940SBrian Masneyconfig QCOM_OCMEM
6688c1e940SBrian Masney	tristate "Qualcomm On Chip Memory (OCMEM) driver"
6788c1e940SBrian Masney	depends on ARCH_QCOM
6888c1e940SBrian Masney	select QCOM_SCM
6988c1e940SBrian Masney	help
7088c1e940SBrian Masney	  The On Chip Memory (OCMEM) allocator allows various clients to
7188c1e940SBrian Masney	  allocate memory from OCMEM based on performance, latency and power
7288c1e940SBrian Masney	  requirements. This is typically used by the GPU, camera/video, and
7388c1e940SBrian Masney	  audio components on some Snapdragon SoCs.
7488c1e940SBrian Masney
75fbe639b4SSibi Sankarconfig QCOM_PDR_HELPERS
76fbe639b4SSibi Sankar	tristate
77fbe639b4SSibi Sankar	select QCOM_QMI_HELPERS
789049453aSArnd Bergmann	depends on NET
79fbe639b4SSibi Sankar
80086fdb48SNeil Armstrongconfig QCOM_PMIC_PDCHARGER_ULOG
81086fdb48SNeil Armstrong	tristate "Qualcomm PMIC PDCharger ULOG driver"
82086fdb48SNeil Armstrong	depends on RPMSG
83086fdb48SNeil Armstrong	depends on EVENT_TRACING
84086fdb48SNeil Armstrong	help
85086fdb48SNeil Armstrong	  The Qualcomm PMIC PDCharger ULOG driver provides access to logs of
86086fdb48SNeil Armstrong	  the ADSP firmware PDCharger module in charge of Battery and Power
87086fdb48SNeil Armstrong	  Delivery on modern systems.
88086fdb48SNeil Armstrong
89086fdb48SNeil Armstrong	  Say yes here to support PDCharger ULOG event tracing on modern
90086fdb48SNeil Armstrong	  Qualcomm platforms.
91086fdb48SNeil Armstrong
9258ef4eceSBjorn Anderssonconfig QCOM_PMIC_GLINK
9358ef4eceSBjorn Andersson	tristate "Qualcomm PMIC GLINK driver"
9458ef4eceSBjorn Andersson	depends on RPMSG
9558ef4eceSBjorn Andersson	depends on TYPEC
9658ef4eceSBjorn Andersson	depends on DRM
979049453aSArnd Bergmann	depends on NET
989049453aSArnd Bergmann	depends on OF
9958ef4eceSBjorn Andersson	select AUXILIARY_BUS
10058ef4eceSBjorn Andersson	select QCOM_PDR_HELPERS
10158ef4eceSBjorn Andersson	help
10258ef4eceSBjorn Andersson	  The Qualcomm PMIC GLINK driver provides access, over GLINK, to the
10358ef4eceSBjorn Andersson	  USB and battery firmware running on one of the coprocessors in
10458ef4eceSBjorn Andersson	  several modern Qualcomm platforms.
10558ef4eceSBjorn Andersson
10658ef4eceSBjorn Andersson	  Say yes here to support USB-C and battery status on modern Qualcomm
10758ef4eceSBjorn Andersson	  platforms.
10858ef4eceSBjorn Andersson
1099b8a11e8SBjorn Anderssonconfig QCOM_QMI_HELPERS
1109b8a11e8SBjorn Andersson	tristate
111ccfb464cSNiklas Cassel	depends on NET
1129b8a11e8SBjorn Andersson
113a723c95fSAngeloGioacchino Del Regnoconfig QCOM_RAMP_CTRL
114a723c95fSAngeloGioacchino Del Regno	tristate "Qualcomm Ramp Controller driver"
115a723c95fSAngeloGioacchino Del Regno	depends on ARCH_QCOM || COMPILE_TEST
116a723c95fSAngeloGioacchino Del Regno	help
117a723c95fSAngeloGioacchino Del Regno	  The Ramp Controller is used to program the sequence ID for pulse
118a723c95fSAngeloGioacchino Del Regno	  swallowing, enable sequence and link sequence IDs for the CPU
119a723c95fSAngeloGioacchino Del Regno	  cores on some Qualcomm SoCs.
120a723c95fSAngeloGioacchino Del Regno	  Say y here to enable support for the ramp controller.
121a723c95fSAngeloGioacchino Del Regno
122d1de6d6cSBjorn Anderssonconfig QCOM_RMTFS_MEM
123d1de6d6cSBjorn Andersson	tristate "Qualcomm Remote Filesystem memory driver"
124d1de6d6cSBjorn Andersson	depends on ARCH_QCOM
125fa65f804SBjorn Andersson	select QCOM_SCM
126d1de6d6cSBjorn Andersson	help
127d1de6d6cSBjorn Andersson	  The Qualcomm remote filesystem memory driver is used for allocating
128d1de6d6cSBjorn Andersson	  and exposing regions of shared memory with remote processors for the
129d1de6d6cSBjorn Andersson	  purpose of exchanging sector-data between the remote filesystem
130d1de6d6cSBjorn Andersson	  service and its clients.
131d1de6d6cSBjorn Andersson
132d1de6d6cSBjorn Andersson	  Say y here if you intend to boot the modem remoteproc.
133d1de6d6cSBjorn Andersson
134a77b2a0bSKonrad Dybcioconfig QCOM_RPM_MASTER_STATS
135a77b2a0bSKonrad Dybcio	tristate "Qualcomm RPM Master stats"
136a77b2a0bSKonrad Dybcio	depends on ARCH_QCOM || COMPILE_TEST
137a77b2a0bSKonrad Dybcio	help
138a77b2a0bSKonrad Dybcio	  The RPM Master sleep stats driver provides detailed per-subsystem
139a77b2a0bSKonrad Dybcio	  sleep/wake data, read from the RPM message RAM. It can be used to
140a77b2a0bSKonrad Dybcio	  assess whether all the low-power modes available are entered as
141a77b2a0bSKonrad Dybcio	  expected or to check which part of the SoC prevents it from sleeping.
142a77b2a0bSKonrad Dybcio
143a77b2a0bSKonrad Dybcio	  Say y here if you intend to debug or monitor platform sleep.
144a77b2a0bSKonrad Dybcio
145658628e7SLina Iyerconfig QCOM_RPMH
146cb365926SJohn Stultz	tristate "Qualcomm RPM-Hardened (RPMH) Communication"
147681b0912SLina Iyer	depends on ARCH_QCOM || COMPILE_TEST
148827b5e6eSLina Iyer	depends on (QCOM_COMMAND_DB || !QCOM_COMMAND_DB)
149658628e7SLina Iyer	help
150658628e7SLina Iyer	  Support for communication with the hardened-RPM blocks in
151658628e7SLina Iyer	  Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an
152658628e7SLina Iyer	  internal bus to transmit state requests for shared resources. A set
153658628e7SLina Iyer	  of hardware components aggregate requests for these resources and
154658628e7SLina Iyer	  help apply the aggregated state on the resource.
155658628e7SLina Iyer
1567d0c8beeSStephen Boydconfig QCOM_SMEM
1577d0c8beeSStephen Boyd	tristate "Qualcomm Shared Memory Manager (SMEM)"
158ccfb464cSNiklas Cassel	depends on ARCH_QCOM || COMPILE_TEST
15973ebb854SArnd Bergmann	depends on HWSPINLOCK
1607d0c8beeSStephen Boyd	help
1617d0c8beeSStephen Boyd	  Say y here to enable support for the Qualcomm Shared Memory Manager.
1627d0c8beeSStephen Boyd	  The driver provides an interface to items in a heap shared among all
1637d0c8beeSStephen Boyd	  processors in a Qualcomm platform.
1647d0c8beeSStephen Boyd
165936f14cfSBjorn Anderssonconfig QCOM_SMD_RPM
166936f14cfSBjorn Andersson	tristate "Qualcomm Resource Power Manager (RPM) over SMD"
167ccfb464cSNiklas Cassel	depends on ARCH_QCOM || COMPILE_TEST
168a09b440aSNiklas Cassel	depends on RPMSG
1698ddfa81dSStephan Gerhold	depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
170936f14cfSBjorn Andersson	help
171936f14cfSBjorn Andersson	  If you say yes to this option, support will be included for the
172936f14cfSBjorn Andersson	  Resource Power Manager system found in the Qualcomm 8974 based
173936f14cfSBjorn Andersson	  devices.
174936f14cfSBjorn Andersson
175936f14cfSBjorn Andersson	  This is required to access many regulators, clocks and bus
176936f14cfSBjorn Andersson	  frequencies controlled by the RPM on these devices.
177936f14cfSBjorn Andersson
178936f14cfSBjorn Andersson	  Say M here if you want to include support for the Qualcomm RPM as a
179936f14cfSBjorn Andersson	  module. This will build a module called "qcom-smd-rpm".
1809460ae2fSBjorn Andersson
1819460ae2fSBjorn Anderssonconfig QCOM_SMEM_STATE
1829460ae2fSBjorn Andersson	bool
183c97c4090SBjorn Andersson
18450e99641SBjorn Anderssonconfig QCOM_SMP2P
18510475d59SArnd Bergmann	tristate "Qualcomm Shared Memory Point to Point support"
186e7180264SBjorn Andersson	depends on MAILBOX
18750e99641SBjorn Andersson	depends on QCOM_SMEM
18850e99641SBjorn Andersson	select QCOM_SMEM_STATE
189810f11a9SNiklas Cassel	select IRQ_DOMAIN
19050e99641SBjorn Andersson	help
19150e99641SBjorn Andersson	  Say yes here to support the Qualcomm Shared Memory Point to Point
19250e99641SBjorn Andersson	  protocol.
19350e99641SBjorn Andersson
194c97c4090SBjorn Anderssonconfig QCOM_SMSM
19510475d59SArnd Bergmann	tristate "Qualcomm Shared Memory State Machine"
196c97c4090SBjorn Andersson	depends on QCOM_SMEM
197c97c4090SBjorn Andersson	select QCOM_SMEM_STATE
1980a5cdb41SNiklas Cassel	select IRQ_DOMAIN
199c97c4090SBjorn Andersson	help
200c97c4090SBjorn Andersson	  Say yes here to support the Qualcomm Shared Memory State Machine.
201c97c4090SBjorn Andersson	  The state machine is represented by bits in shared memory.
202ea7a1f27SBjorn Andersson
203efb448d0SImran Khanconfig QCOM_SOCINFO
204efb448d0SImran Khan	tristate "Qualcomm socinfo driver"
205efb448d0SImran Khan	depends on QCOM_SMEM
206efb448d0SImran Khan	select SOC_BUS
207efb448d0SImran Khan	help
208efb448d0SImran Khan	 Say yes here to support the Qualcomm socinfo driver, providing
209efb448d0SImran Khan	 information about the SoC to user space.
210efb448d0SImran Khan
21160f3692bSAngeloGioacchino Del Regnoconfig QCOM_SPM
21260f3692bSAngeloGioacchino Del Regno	tristate "Qualcomm Subsystem Power Manager (SPM)"
2134f22aa45SArnd Bergmann	depends on ARCH_QCOM || COMPILE_TEST
21460f3692bSAngeloGioacchino Del Regno	select QCOM_SCM
21560f3692bSAngeloGioacchino Del Regno	help
21660f3692bSAngeloGioacchino Del Regno	  Enable the support for the Qualcomm Subsystem Power Manager, used
21760f3692bSAngeloGioacchino Del Regno	  to manage cores, L2 low power modes and to configure the internal
21860f3692bSAngeloGioacchino Del Regno	  Adaptive Voltage Scaler parameters, where supported.
21960f3692bSAngeloGioacchino Del Regno
2201d772469SMahesh Sivasubramanianconfig QCOM_STATS
2211d772469SMahesh Sivasubramanian	tristate "Qualcomm Technologies, Inc. (QTI) Sleep stats driver"
2221d772469SMahesh Sivasubramanian	depends on (ARCH_QCOM && DEBUG_FS) || COMPILE_TEST
2231d772469SMahesh Sivasubramanian	depends on QCOM_SMEM
224*70b139a7SBjorn Andersson	depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
2251d772469SMahesh Sivasubramanian	help
2261d772469SMahesh Sivasubramanian	  Qualcomm Technologies, Inc. (QTI) Sleep stats driver to read
2271d772469SMahesh Sivasubramanian	  the shared memory exported by the remote processor related to
2281d772469SMahesh Sivasubramanian	  various SoC level low power modes statistics and export to debugfs
2291d772469SMahesh Sivasubramanian	  interface.
2301d772469SMahesh Sivasubramanian
231ea7a1f27SBjorn Anderssonconfig QCOM_WCNSS_CTRL
232ea7a1f27SBjorn Andersson	tristate "Qualcomm WCNSS control driver"
233ccfb464cSNiklas Cassel	depends on ARCH_QCOM || COMPILE_TEST
2345052de8dSBjorn Andersson	depends on RPMSG
235ea7a1f27SBjorn Andersson	help
236ea7a1f27SBjorn Andersson	  Client driver for the WCNSS_CTRL SMD channel, used to download nv
237ea7a1f27SBjorn Andersson	  firmware to a newly booted WCNSS chip.
2382a464815SSrinivas Kandagatla
2396adba21eSSrinivas Kandagatlaconfig QCOM_APR
240ec1471a8SSrinivas Kandagatla	tristate "Qualcomm APR/GPR Bus (Asynchronous/Generic Packet Router)"
241ccfb464cSNiklas Cassel	depends on ARCH_QCOM || COMPILE_TEST
2426adba21eSSrinivas Kandagatla	depends on RPMSG
243de722e41SBjorn Andersson	depends on NET
24483473566SSibi Sankar	select QCOM_PDR_HELPERS
2456adba21eSSrinivas Kandagatla	help
2466adba21eSSrinivas Kandagatla	  Enable APR IPC protocol support between
2476adba21eSSrinivas Kandagatla	  application processor and QDSP6. APR is
2486adba21eSSrinivas Kandagatla	  used by audio driver to configure QDSP6
2496adba21eSSrinivas Kandagatla	  ASM, ADM and AFE modules.
250b9c2ae6cSKrzysztof Kozlowski
251b9c2ae6cSKrzysztof Kozlowskiconfig QCOM_ICC_BWMON
252b9c2ae6cSKrzysztof Kozlowski	tristate "QCOM Interconnect Bandwidth Monitor driver"
253b9c2ae6cSKrzysztof Kozlowski	depends on ARCH_QCOM || COMPILE_TEST
254b9c2ae6cSKrzysztof Kozlowski	select PM_OPP
255a84160fbSManivannan Sadhasivam	select REGMAP_MMIO
256b9c2ae6cSKrzysztof Kozlowski	help
257b9c2ae6cSKrzysztof Kozlowski	  Sets up driver monitoring bandwidth on various interconnects and
258b9c2ae6cSKrzysztof Kozlowski	  based on that voting for interconnect bandwidth, adjusting their
259b9c2ae6cSKrzysztof Kozlowski	  speed to current demand.
260b9c2ae6cSKrzysztof Kozlowski	  Current implementation brings support for BWMON v4, used for example
261b9c2ae6cSKrzysztof Kozlowski	  on SDM845 to measure bandwidth between CPU (gladiator_noc) and Last
262b9c2ae6cSKrzysztof Kozlowski	  Level Cache (memnoc).  Usage of this BWMON allows to remove some of
263b9c2ae6cSKrzysztof Kozlowski	  the fixed bandwidth votes from cpufreq (CPU nodes) thus achieve high
264b9c2ae6cSKrzysztof Kozlowski	  memory throughput even with lower CPU frequencies.
265b9c2ae6cSKrzysztof Kozlowski
2662afbf43aSAbel Vesaconfig QCOM_INLINE_CRYPTO_ENGINE
2672afbf43aSAbel Vesa	tristate
2682afbf43aSAbel Vesa	select QCOM_SCM
2692afbf43aSAbel Vesa
2702a464815SSrinivas Kandagatlaendmenu
271