xref: /linux/drivers/soc/qcom/Kconfig (revision a723c95fa137f7a1e86dc77a150ef6e2affe977d)
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
29a7305e68SUlf Hanssonconfig QCOM_CPR
30a7305e68SUlf Hansson	tristate "QCOM Core Power Reduction (CPR) support"
31a7305e68SUlf Hansson	depends on ARCH_QCOM && HAS_IOMEM
32a7305e68SUlf Hansson	select PM_OPP
33a7305e68SUlf Hansson	select REGMAP
34a7305e68SUlf Hansson	help
35a7305e68SUlf Hansson	  Say Y here to enable support for the CPR hardware found on Qualcomm
36a7305e68SUlf Hansson	  SoCs like QCS404.
37a7305e68SUlf Hansson
38a7305e68SUlf Hansson	  This driver populates CPU OPPs tables and makes adjustments to the
39a7305e68SUlf Hansson	  tables based on feedback from the CPR hardware. If you want to do
40a7305e68SUlf Hansson	  CPUfrequency scaling say Y here.
41a7305e68SUlf Hansson
42a7305e68SUlf Hansson	  To compile this driver as a module, choose M here: the module will
43a7305e68SUlf Hansson	  be called qcom-cpr
44a7305e68SUlf Hansson
45eddac5afSKarthikeyan Ramasubramanianconfig QCOM_GENI_SE
46eddac5afSKarthikeyan Ramasubramanian	tristate "QCOM GENI Serial Engine Driver"
47eddac5afSKarthikeyan Ramasubramanian	depends on ARCH_QCOM || COMPILE_TEST
48eddac5afSKarthikeyan Ramasubramanian	help
49eddac5afSKarthikeyan Ramasubramanian	  This driver is used to manage Generic Interface (GENI) firmware based
50eddac5afSKarthikeyan Ramasubramanian	  Qualcomm Technologies, Inc. Universal Peripheral (QUP) Wrapper. This
51eddac5afSKarthikeyan Ramasubramanian	  driver is also used to manage the common aspects of multiple Serial
52eddac5afSKarthikeyan Ramasubramanian	  Engines present in the QUP.
53eddac5afSKarthikeyan Ramasubramanian
545d144e36SAndy Grossconfig QCOM_GSBI
555d144e36SAndy Gross	tristate "QCOM General Serial Bus Interface"
56ccfb464cSNiklas Cassel	depends on ARCH_QCOM || COMPILE_TEST
57e5fdad68SAndy Gross	select MFD_SYSCON
585d144e36SAndy Gross	help
595d144e36SAndy Gross	  Say y here to enable GSBI support.  The GSBI provides control
605d144e36SAndy Gross	  functions for connecting the underlying serial UART, SPI, and I2C
615d144e36SAndy Gross	  devices to the output pins.
625d144e36SAndy Gross
63a3134fb0SRishabh Bhatnagarconfig QCOM_LLCC
64a3134fb0SRishabh Bhatnagar	tristate "Qualcomm Technologies, Inc. LLCC driver"
65ccfb464cSNiklas Cassel	depends on ARCH_QCOM || COMPILE_TEST
665d2fe2d7SManivannan Sadhasivam	select REGMAP_MMIO
67a3134fb0SRishabh Bhatnagar	help
68a3134fb0SRishabh Bhatnagar	  Qualcomm Technologies, Inc. platform specific
69a14b8203SVivek Gautam	  Last Level Cache Controller(LLCC) driver for platforms such as,
70a14b8203SVivek Gautam	  SDM845. This provides interfaces to clients that use the LLCC.
71a14b8203SVivek Gautam	  Say yes here to enable LLCC slice driver.
72a3134fb0SRishabh Bhatnagar
736d0efeb1SIlia Linconfig QCOM_KRYO_L2_ACCESSORS
746d0efeb1SIlia Lin	bool
756d0efeb1SIlia Lin	depends on ARCH_QCOM && ARM64 || COMPILE_TEST
766d0efeb1SIlia Lin
772aad40d9SBjorn Anderssonconfig QCOM_MDT_LOADER
782aad40d9SBjorn Andersson	tristate
792aad40d9SBjorn Andersson	select QCOM_SCM
802aad40d9SBjorn Andersson
8188c1e940SBrian Masneyconfig QCOM_OCMEM
8288c1e940SBrian Masney	tristate "Qualcomm On Chip Memory (OCMEM) driver"
8388c1e940SBrian Masney	depends on ARCH_QCOM
8488c1e940SBrian Masney	select QCOM_SCM
8588c1e940SBrian Masney	help
8688c1e940SBrian Masney	  The On Chip Memory (OCMEM) allocator allows various clients to
8788c1e940SBrian Masney	  allocate memory from OCMEM based on performance, latency and power
8888c1e940SBrian Masney	  requirements. This is typically used by the GPU, camera/video, and
8988c1e940SBrian Masney	  audio components on some Snapdragon SoCs.
9088c1e940SBrian Masney
91fbe639b4SSibi Sankarconfig QCOM_PDR_HELPERS
92fbe639b4SSibi Sankar	tristate
93fbe639b4SSibi Sankar	select QCOM_QMI_HELPERS
94fbe639b4SSibi Sankar
959b8a11e8SBjorn Anderssonconfig QCOM_QMI_HELPERS
969b8a11e8SBjorn Andersson	tristate
97ccfb464cSNiklas Cassel	depends on NET
989b8a11e8SBjorn Andersson
99*a723c95fSAngeloGioacchino Del Regnoconfig QCOM_RAMP_CTRL
100*a723c95fSAngeloGioacchino Del Regno	tristate "Qualcomm Ramp Controller driver"
101*a723c95fSAngeloGioacchino Del Regno	depends on ARCH_QCOM || COMPILE_TEST
102*a723c95fSAngeloGioacchino Del Regno	help
103*a723c95fSAngeloGioacchino Del Regno	  The Ramp Controller is used to program the sequence ID for pulse
104*a723c95fSAngeloGioacchino Del Regno	  swallowing, enable sequence and link sequence IDs for the CPU
105*a723c95fSAngeloGioacchino Del Regno	  cores on some Qualcomm SoCs.
106*a723c95fSAngeloGioacchino Del Regno	  Say y here to enable support for the ramp controller.
107*a723c95fSAngeloGioacchino Del Regno
108d1de6d6cSBjorn Anderssonconfig QCOM_RMTFS_MEM
109d1de6d6cSBjorn Andersson	tristate "Qualcomm Remote Filesystem memory driver"
110d1de6d6cSBjorn Andersson	depends on ARCH_QCOM
111fa65f804SBjorn Andersson	select QCOM_SCM
112d1de6d6cSBjorn Andersson	help
113d1de6d6cSBjorn Andersson	  The Qualcomm remote filesystem memory driver is used for allocating
114d1de6d6cSBjorn Andersson	  and exposing regions of shared memory with remote processors for the
115d1de6d6cSBjorn Andersson	  purpose of exchanging sector-data between the remote filesystem
116d1de6d6cSBjorn Andersson	  service and its clients.
117d1de6d6cSBjorn Andersson
118d1de6d6cSBjorn Andersson	  Say y here if you intend to boot the modem remoteproc.
119d1de6d6cSBjorn Andersson
120658628e7SLina Iyerconfig QCOM_RPMH
121cb365926SJohn Stultz	tristate "Qualcomm RPM-Hardened (RPMH) Communication"
122681b0912SLina Iyer	depends on ARCH_QCOM || COMPILE_TEST
123827b5e6eSLina Iyer	depends on (QCOM_COMMAND_DB || !QCOM_COMMAND_DB)
124658628e7SLina Iyer	help
125658628e7SLina Iyer	  Support for communication with the hardened-RPM blocks in
126658628e7SLina Iyer	  Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an
127658628e7SLina Iyer	  internal bus to transmit state requests for shared resources. A set
128658628e7SLina Iyer	  of hardware components aggregate requests for these resources and
129658628e7SLina Iyer	  help apply the aggregated state on the resource.
130658628e7SLina Iyer
131279b7e8aSRajendra Nayakconfig QCOM_RPMHPD
132d4889ec1SJohn Stultz	tristate "Qualcomm RPMh Power domain driver"
133279b7e8aSRajendra Nayak	depends on QCOM_RPMH && QCOM_COMMAND_DB
134279b7e8aSRajendra Nayak	help
135279b7e8aSRajendra Nayak	  QCOM RPMh Power domain driver to support power-domains with
136279b7e8aSRajendra Nayak	  performance states. The driver communicates a performance state
137279b7e8aSRajendra Nayak	  value to RPMh which then translates it into corresponding voltage
138279b7e8aSRajendra Nayak	  for the voltage rail.
139279b7e8aSRajendra Nayak
140bbe3a66cSRajendra Nayakconfig QCOM_RPMPD
141f29808b2SJohn Stultz	tristate "Qualcomm RPM Power domain driver"
1420e5732e4SYueHaibing	depends on PM && OF
143f29808b2SJohn Stultz	depends on QCOM_SMD_RPM
1447d0221fbSKonrad Dybcio	select PM_GENERIC_DOMAINS
1457d0221fbSKonrad Dybcio	select PM_GENERIC_DOMAINS_OF
146bbe3a66cSRajendra Nayak	help
147bbe3a66cSRajendra Nayak	  QCOM RPM Power domain driver to support power-domains with
148bbe3a66cSRajendra Nayak	  performance states. The driver communicates a performance state
149bbe3a66cSRajendra Nayak	  value to RPM which then translates it into corresponding voltage
150bbe3a66cSRajendra Nayak	  for the voltage rail.
151bbe3a66cSRajendra Nayak
1527d0c8beeSStephen Boydconfig QCOM_SMEM
1537d0c8beeSStephen Boyd	tristate "Qualcomm Shared Memory Manager (SMEM)"
154ccfb464cSNiklas Cassel	depends on ARCH_QCOM || COMPILE_TEST
15573ebb854SArnd Bergmann	depends on HWSPINLOCK
1567d0c8beeSStephen Boyd	help
1577d0c8beeSStephen Boyd	  Say y here to enable support for the Qualcomm Shared Memory Manager.
1587d0c8beeSStephen Boyd	  The driver provides an interface to items in a heap shared among all
1597d0c8beeSStephen Boyd	  processors in a Qualcomm platform.
1607d0c8beeSStephen Boyd
161936f14cfSBjorn Anderssonconfig QCOM_SMD_RPM
162936f14cfSBjorn Andersson	tristate "Qualcomm Resource Power Manager (RPM) over SMD"
163ccfb464cSNiklas Cassel	depends on ARCH_QCOM || COMPILE_TEST
164a09b440aSNiklas Cassel	depends on RPMSG
165936f14cfSBjorn Andersson	help
166936f14cfSBjorn Andersson	  If you say yes to this option, support will be included for the
167936f14cfSBjorn Andersson	  Resource Power Manager system found in the Qualcomm 8974 based
168936f14cfSBjorn Andersson	  devices.
169936f14cfSBjorn Andersson
170936f14cfSBjorn Andersson	  This is required to access many regulators, clocks and bus
171936f14cfSBjorn Andersson	  frequencies controlled by the RPM on these devices.
172936f14cfSBjorn Andersson
173936f14cfSBjorn Andersson	  Say M here if you want to include support for the Qualcomm RPM as a
174936f14cfSBjorn Andersson	  module. This will build a module called "qcom-smd-rpm".
1759460ae2fSBjorn Andersson
1769460ae2fSBjorn Anderssonconfig QCOM_SMEM_STATE
1779460ae2fSBjorn Andersson	bool
178c97c4090SBjorn Andersson
17950e99641SBjorn Anderssonconfig QCOM_SMP2P
18010475d59SArnd Bergmann	tristate "Qualcomm Shared Memory Point to Point support"
181e7180264SBjorn Andersson	depends on MAILBOX
18250e99641SBjorn Andersson	depends on QCOM_SMEM
18350e99641SBjorn Andersson	select QCOM_SMEM_STATE
184810f11a9SNiklas Cassel	select IRQ_DOMAIN
18550e99641SBjorn Andersson	help
18650e99641SBjorn Andersson	  Say yes here to support the Qualcomm Shared Memory Point to Point
18750e99641SBjorn Andersson	  protocol.
18850e99641SBjorn Andersson
189c97c4090SBjorn Anderssonconfig QCOM_SMSM
19010475d59SArnd Bergmann	tristate "Qualcomm Shared Memory State Machine"
191c97c4090SBjorn Andersson	depends on QCOM_SMEM
192c97c4090SBjorn Andersson	select QCOM_SMEM_STATE
1930a5cdb41SNiklas Cassel	select IRQ_DOMAIN
194c97c4090SBjorn Andersson	help
195c97c4090SBjorn Andersson	  Say yes here to support the Qualcomm Shared Memory State Machine.
196c97c4090SBjorn Andersson	  The state machine is represented by bits in shared memory.
197ea7a1f27SBjorn Andersson
198efb448d0SImran Khanconfig QCOM_SOCINFO
199efb448d0SImran Khan	tristate "Qualcomm socinfo driver"
200efb448d0SImran Khan	depends on QCOM_SMEM
201efb448d0SImran Khan	select SOC_BUS
202efb448d0SImran Khan	help
203efb448d0SImran Khan	 Say yes here to support the Qualcomm socinfo driver, providing
204efb448d0SImran Khan	 information about the SoC to user space.
205efb448d0SImran Khan
20660f3692bSAngeloGioacchino Del Regnoconfig QCOM_SPM
20760f3692bSAngeloGioacchino Del Regno	tristate "Qualcomm Subsystem Power Manager (SPM)"
2084f22aa45SArnd Bergmann	depends on ARCH_QCOM || COMPILE_TEST
20960f3692bSAngeloGioacchino Del Regno	select QCOM_SCM
21060f3692bSAngeloGioacchino Del Regno	help
21160f3692bSAngeloGioacchino Del Regno	  Enable the support for the Qualcomm Subsystem Power Manager, used
21260f3692bSAngeloGioacchino Del Regno	  to manage cores, L2 low power modes and to configure the internal
21360f3692bSAngeloGioacchino Del Regno	  Adaptive Voltage Scaler parameters, where supported.
21460f3692bSAngeloGioacchino Del Regno
2151d772469SMahesh Sivasubramanianconfig QCOM_STATS
2161d772469SMahesh Sivasubramanian	tristate "Qualcomm Technologies, Inc. (QTI) Sleep stats driver"
2171d772469SMahesh Sivasubramanian	depends on (ARCH_QCOM && DEBUG_FS) || COMPILE_TEST
2181d772469SMahesh Sivasubramanian	depends on QCOM_SMEM
2191d772469SMahesh Sivasubramanian	help
2201d772469SMahesh Sivasubramanian	  Qualcomm Technologies, Inc. (QTI) Sleep stats driver to read
2211d772469SMahesh Sivasubramanian	  the shared memory exported by the remote processor related to
2221d772469SMahesh Sivasubramanian	  various SoC level low power modes statistics and export to debugfs
2231d772469SMahesh Sivasubramanian	  interface.
2241d772469SMahesh Sivasubramanian
225ea7a1f27SBjorn Anderssonconfig QCOM_WCNSS_CTRL
226ea7a1f27SBjorn Andersson	tristate "Qualcomm WCNSS control driver"
227ccfb464cSNiklas Cassel	depends on ARCH_QCOM || COMPILE_TEST
2285052de8dSBjorn Andersson	depends on RPMSG
229ea7a1f27SBjorn Andersson	help
230ea7a1f27SBjorn Andersson	  Client driver for the WCNSS_CTRL SMD channel, used to download nv
231ea7a1f27SBjorn Andersson	  firmware to a newly booted WCNSS chip.
2322a464815SSrinivas Kandagatla
2336adba21eSSrinivas Kandagatlaconfig QCOM_APR
234ec1471a8SSrinivas Kandagatla	tristate "Qualcomm APR/GPR Bus (Asynchronous/Generic Packet Router)"
235ccfb464cSNiklas Cassel	depends on ARCH_QCOM || COMPILE_TEST
2366adba21eSSrinivas Kandagatla	depends on RPMSG
237de722e41SBjorn Andersson	depends on NET
23883473566SSibi Sankar	select QCOM_PDR_HELPERS
2396adba21eSSrinivas Kandagatla	help
2406adba21eSSrinivas Kandagatla	  Enable APR IPC protocol support between
2416adba21eSSrinivas Kandagatla	  application processor and QDSP6. APR is
2426adba21eSSrinivas Kandagatla	  used by audio driver to configure QDSP6
2436adba21eSSrinivas Kandagatla	  ASM, ADM and AFE modules.
244b9c2ae6cSKrzysztof Kozlowski
245b9c2ae6cSKrzysztof Kozlowskiconfig QCOM_ICC_BWMON
246b9c2ae6cSKrzysztof Kozlowski	tristate "QCOM Interconnect Bandwidth Monitor driver"
247b9c2ae6cSKrzysztof Kozlowski	depends on ARCH_QCOM || COMPILE_TEST
248b9c2ae6cSKrzysztof Kozlowski	select PM_OPP
249a84160fbSManivannan Sadhasivam	select REGMAP_MMIO
250b9c2ae6cSKrzysztof Kozlowski	help
251b9c2ae6cSKrzysztof Kozlowski	  Sets up driver monitoring bandwidth on various interconnects and
252b9c2ae6cSKrzysztof Kozlowski	  based on that voting for interconnect bandwidth, adjusting their
253b9c2ae6cSKrzysztof Kozlowski	  speed to current demand.
254b9c2ae6cSKrzysztof Kozlowski	  Current implementation brings support for BWMON v4, used for example
255b9c2ae6cSKrzysztof Kozlowski	  on SDM845 to measure bandwidth between CPU (gladiator_noc) and Last
256b9c2ae6cSKrzysztof Kozlowski	  Level Cache (memnoc).  Usage of this BWMON allows to remove some of
257b9c2ae6cSKrzysztof Kozlowski	  the fixed bandwidth votes from cpufreq (CPU nodes) thus achieve high
258b9c2ae6cSKrzysztof Kozlowski	  memory throughput even with lower CPU frequencies.
259b9c2ae6cSKrzysztof Kozlowski
2602a464815SSrinivas Kandagatlaendmenu
261