blob: 07bb261a63d2d590556910976da9b4b90f22ac2a [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Andy Gross5d144e32014-04-24 11:31:21 -05002#
3# QCOM Soc drivers
4#
Srinivas Kandagatla2a464812017-07-26 17:27:16 +02005menu "Qualcomm SoC drivers"
6
Bjorn Andersson22094812019-06-11 21:45:34 -07007config QCOM_AOSS_QMP
8 tristate "Qualcomm AOSS Driver"
9 depends on ARCH_QCOM || COMPILE_TEST
10 depends on MAILBOX
Randy Dunlap6b9d2262019-06-14 14:47:48 -070011 depends on COMMON_CLK && PM
Bjorn Andersson22094812019-06-11 21:45:34 -070012 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
Mahesh Sivasubramanian312416d2018-04-10 11:57:23 -060019config QCOM_COMMAND_DB
20 bool "Qualcomm Command DB"
Arnd Bergmann0ea3fa12018-05-25 18:08:24 +020021 depends on ARCH_QCOM || COMPILE_TEST
22 depends on OF_RESERVED_MEM
Mahesh Sivasubramanian312416d2018-04-10 11:57:23 -060023 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
Karthikeyan Ramasubramanianeddac5a2018-03-30 11:08:17 -060029config 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
Andy Gross5d144e32014-04-24 11:31:21 -050038config QCOM_GSBI
Krzysztof Kozlowskia9e8fce2019-11-20 21:39:25 +080039 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.
Andy Gross5d144e32014-04-24 11:31:21 -050046
Rishabh Bhatnagara3134fb2018-05-23 17:35:21 -070047config QCOM_LLCC
48 tristate "Qualcomm Technologies, Inc. LLCC driver"
Niklas Casselccfb4642018-08-29 09:57:23 +020049 depends on ARCH_QCOM || COMPILE_TEST
Rishabh Bhatnagara3134fb2018-05-23 17:35:21 -070050 help
51 Qualcomm Technologies, Inc. platform specific
Vivek Gautama14b8202019-07-18 18:32:36 +053052 Last Level Cache Controller(LLCC) driver for platforms such as,
53 SDM845. This provides interfaces to clients that use the LLCC.
54 Say yes here to enable LLCC slice driver.
Rishabh Bhatnagara3134fb2018-05-23 17:35:21 -070055
Bjorn Andersson2aad40d2017-01-27 03:12:57 -080056config QCOM_MDT_LOADER
57 tristate
58 select QCOM_SCM
59
Brian Masney88c1e942019-08-23 05:16:35 -070060config QCOM_OCMEM
61 tristate "Qualcomm On Chip Memory (OCMEM) driver"
62 depends on ARCH_QCOM
63 select QCOM_SCM
64 help
Krzysztof Kozlowskia9e8fce2019-11-20 21:39:25 +080065 The On Chip Memory (OCMEM) allocator allows various clients to
66 allocate memory from OCMEM based on performance, latency and power
67 requirements. This is typically used by the GPU, camera/video, and
68 audio components on some Snapdragon SoCs.
Brian Masney88c1e942019-08-23 05:16:35 -070069
Sibi Sankarfbe639b2020-03-12 17:38:40 +053070config QCOM_PDR_HELPERS
71 tristate
72 select QCOM_QMI_HELPERS
73
Bjorn Andersson9b8a11e2017-12-05 09:43:06 -080074config QCOM_QMI_HELPERS
75 tristate
Niklas Casselccfb4642018-08-29 09:57:23 +020076 depends on NET
Bjorn Andersson9b8a11e2017-12-05 09:43:06 -080077
Bjorn Anderssond1de6d62017-10-16 13:17:08 -050078config QCOM_RMTFS_MEM
79 tristate "Qualcomm Remote Filesystem memory driver"
80 depends on ARCH_QCOM
Bjorn Anderssonfa65f802018-02-12 17:37:23 -080081 select QCOM_SCM
Bjorn Anderssond1de6d62017-10-16 13:17:08 -050082 help
83 The Qualcomm remote filesystem memory driver is used for allocating
84 and exposing regions of shared memory with remote processors for the
85 purpose of exchanging sector-data between the remote filesystem
86 service and its clients.
87
88 Say y here if you intend to boot the modem remoteproc.
89
Lina Iyer658628e2018-06-20 18:56:58 +053090config QCOM_RPMH
91 bool "Qualcomm RPM-Hardened (RPMH) Communication"
Niklas Casselc62615b12018-08-29 09:57:20 +020092 depends on ARCH_QCOM && ARM64 || COMPILE_TEST
Lina Iyer658628e2018-06-20 18:56:58 +053093 help
94 Support for communication with the hardened-RPM blocks in
95 Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an
96 internal bus to transmit state requests for shared resources. A set
97 of hardware components aggregate requests for these resources and
98 help apply the aggregated state on the resource.
99
Rajendra Nayak279b7e82019-01-10 09:32:07 +0530100config QCOM_RPMHPD
John Stultzd4889ec2020-03-26 22:44:59 +0000101 tristate "Qualcomm RPMh Power domain driver"
Rajendra Nayak279b7e82019-01-10 09:32:07 +0530102 depends on QCOM_RPMH && QCOM_COMMAND_DB
103 help
104 QCOM RPMh Power domain driver to support power-domains with
105 performance states. The driver communicates a performance state
106 value to RPMh which then translates it into corresponding voltage
107 for the voltage rail.
108
Rajendra Nayakbbe3a66c2019-01-10 09:32:04 +0530109config QCOM_RPMPD
John Stultzf29808b2020-03-26 22:44:57 +0000110 tristate "Qualcomm RPM Power domain driver"
111 depends on QCOM_SMD_RPM
Rajendra Nayakbbe3a66c2019-01-10 09:32:04 +0530112 help
113 QCOM RPM Power domain driver to support power-domains with
114 performance states. The driver communicates a performance state
115 value to RPM which then translates it into corresponding voltage
116 for the voltage rail.
117
Stephen Boyd7d0c8be2015-08-28 11:23:33 -0700118config QCOM_SMEM
119 tristate "Qualcomm Shared Memory Manager (SMEM)"
Niklas Casselccfb4642018-08-29 09:57:23 +0200120 depends on ARCH_QCOM || COMPILE_TEST
Arnd Bergmann73ebb852015-10-13 17:05:39 +0200121 depends on HWSPINLOCK
Stephen Boyd7d0c8be2015-08-28 11:23:33 -0700122 help
123 Say y here to enable support for the Qualcomm Shared Memory Manager.
124 The driver provides an interface to items in a heap shared among all
125 processors in a Qualcomm platform.
126
Bjorn Andersson936f14c2015-07-27 20:20:32 -0700127config QCOM_SMD_RPM
128 tristate "Qualcomm Resource Power Manager (RPM) over SMD"
Niklas Casselccfb4642018-08-29 09:57:23 +0200129 depends on ARCH_QCOM || COMPILE_TEST
Niklas Cassela09b4402018-08-29 09:57:19 +0200130 depends on RPMSG
Bjorn Andersson936f14c2015-07-27 20:20:32 -0700131 help
132 If you say yes to this option, support will be included for the
133 Resource Power Manager system found in the Qualcomm 8974 based
134 devices.
135
136 This is required to access many regulators, clocks and bus
137 frequencies controlled by the RPM on these devices.
138
139 Say M here if you want to include support for the Qualcomm RPM as a
140 module. This will build a module called "qcom-smd-rpm".
Bjorn Andersson9460ae22015-09-24 18:25:01 -0700141
142config QCOM_SMEM_STATE
143 bool
Bjorn Anderssonc97c4092015-09-24 18:25:02 -0700144
Bjorn Andersson50e99642015-09-24 18:25:03 -0700145config QCOM_SMP2P
Arnd Bergmann10475d52015-11-20 11:32:21 +0100146 tristate "Qualcomm Shared Memory Point to Point support"
Bjorn Anderssone7180262017-11-29 16:00:40 -0800147 depends on MAILBOX
Bjorn Andersson50e99642015-09-24 18:25:03 -0700148 depends on QCOM_SMEM
149 select QCOM_SMEM_STATE
Niklas Cassel810f11a2018-08-29 09:57:17 +0200150 select IRQ_DOMAIN
Bjorn Andersson50e99642015-09-24 18:25:03 -0700151 help
152 Say yes here to support the Qualcomm Shared Memory Point to Point
153 protocol.
154
Bjorn Anderssonc97c4092015-09-24 18:25:02 -0700155config QCOM_SMSM
Arnd Bergmann10475d52015-11-20 11:32:21 +0100156 tristate "Qualcomm Shared Memory State Machine"
Bjorn Anderssonc97c4092015-09-24 18:25:02 -0700157 depends on QCOM_SMEM
158 select QCOM_SMEM_STATE
Niklas Cassel0a5cdb42018-08-29 09:57:18 +0200159 select IRQ_DOMAIN
Bjorn Anderssonc97c4092015-09-24 18:25:02 -0700160 help
161 Say yes here to support the Qualcomm Shared Memory State Machine.
162 The state machine is represented by bits in shared memory.
Bjorn Anderssonea7a1f22015-09-21 10:52:55 -0700163
Imran Khanefb448d2019-07-24 04:05:13 +0530164config QCOM_SOCINFO
165 tristate "Qualcomm socinfo driver"
166 depends on QCOM_SMEM
167 select SOC_BUS
168 help
169 Say yes here to support the Qualcomm socinfo driver, providing
170 information about the SoC to user space.
171
Bjorn Anderssonea7a1f22015-09-21 10:52:55 -0700172config QCOM_WCNSS_CTRL
173 tristate "Qualcomm WCNSS control driver"
Niklas Casselccfb4642018-08-29 09:57:23 +0200174 depends on ARCH_QCOM || COMPILE_TEST
Bjorn Andersson5052de82017-03-27 22:26:33 -0700175 depends on RPMSG
Bjorn Anderssonea7a1f22015-09-21 10:52:55 -0700176 help
177 Client driver for the WCNSS_CTRL SMD channel, used to download nv
178 firmware to a newly booted WCNSS chip.
Srinivas Kandagatla2a464812017-07-26 17:27:16 +0200179
Srinivas Kandagatla6adba212018-05-09 13:56:13 +0100180config QCOM_APR
181 tristate "Qualcomm APR Bus (Asynchronous Packet Router)"
Niklas Casselccfb4642018-08-29 09:57:23 +0200182 depends on ARCH_QCOM || COMPILE_TEST
Srinivas Kandagatla6adba212018-05-09 13:56:13 +0100183 depends on RPMSG
Bjorn Anderssonde722e42020-03-16 15:03:53 -0700184 depends on NET
Sibi Sankar83473562020-03-12 17:38:42 +0530185 select QCOM_PDR_HELPERS
Srinivas Kandagatla6adba212018-05-09 13:56:13 +0100186 help
Krzysztof Kozlowskia9e8fce2019-11-20 21:39:25 +0800187 Enable APR IPC protocol support between
188 application processor and QDSP6. APR is
189 used by audio driver to configure QDSP6
190 ASM, ADM and AFE modules.
Srinivas Kandagatla2a464812017-07-26 17:27:16 +0200191endmenu