hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/soc/qcom/Kconfig
....@@ -1,7 +1,20 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # QCOM Soc drivers
34 #
45 menu "Qualcomm SoC drivers"
6
+
7
+config 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).
518
619 config QCOM_COMMAND_DB
720 tristate "Qualcomm Command DB"
....@@ -13,6 +26,22 @@
1326 resource on a RPM-hardened platform must use this database to get
1427 SoC specific identifier and information for the shared resources.
1528
29
+config 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
+
1645 config QCOM_GENI_SE
1746 tristate "QCOM GENI Serial Engine Driver"
1847 depends on ARCH_QCOM || COMPILE_TEST
....@@ -22,63 +51,49 @@
2251 driver is also used to manage the common aspects of multiple Serial
2352 Engines present in the QUP.
2453
25
-config QCOM_GLINK_SSR
26
- tristate "Qualcomm Glink SSR driver"
27
- depends on RPMSG
28
- depends on QCOM_RPROC_COMMON
29
- help
30
- Say y here to enable GLINK SSR support. The GLINK SSR driver
31
- implements the SSR protocol for notifying the remote processor about
32
- neighboring subsystems going up or down.
33
-
3454 config QCOM_GSBI
35
- tristate "QCOM General Serial Bus Interface"
36
- depends on ARCH_QCOM
37
- select MFD_SYSCON
38
- help
39
- Say y here to enable GSBI support. The GSBI provides control
40
- functions for connecting the underlying serial UART, SPI, and I2C
41
- devices to the output pins.
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.
4262
4363 config QCOM_LLCC
4464 tristate "Qualcomm Technologies, Inc. LLCC driver"
45
- depends on ARCH_QCOM
65
+ depends on ARCH_QCOM || COMPILE_TEST
4666 help
4767 Qualcomm Technologies, Inc. platform specific
48
- Last Level Cache Controller(LLCC) driver. This provides interfaces
49
- to clients that use the LLCC. Say yes here to enable LLCC slice
50
- driver.
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.
5171
52
-config QCOM_SDM845_LLCC
53
- tristate "Qualcomm Technologies, Inc. SDM845 LLCC driver"
54
- depends on QCOM_LLCC
55
- help
56
- Say yes here to enable the LLCC driver for SDM845. This provides
57
- data required to configure LLCC so that clients can start using the
58
- LLCC slices.
72
+config QCOM_KRYO_L2_ACCESSORS
73
+ bool
74
+ depends on ARCH_QCOM && ARM64 || COMPILE_TEST
5975
6076 config QCOM_MDT_LOADER
6177 tristate
6278 select QCOM_SCM
6379
64
-config QCOM_PM
65
- bool "Qualcomm Power Management"
66
- depends on ARCH_QCOM && !ARM64
67
- select ARM_CPU_SUSPEND
80
+config QCOM_OCMEM
81
+ tristate "Qualcomm On Chip Memory (OCMEM) driver"
82
+ depends on ARCH_QCOM
6883 select QCOM_SCM
6984 help
70
- QCOM Platform specific power driver to manage cores and L2 low power
71
- modes. It interface with various system drivers to put the cores in
72
- low power modes.
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
+
90
+config QCOM_PDR_HELPERS
91
+ tristate
92
+ select QCOM_QMI_HELPERS
7393
7494 config QCOM_QMI_HELPERS
7595 tristate
76
- depends on ARCH_QCOM && NET
77
- help
78
- Helper library for handling QMI encoded messages. QMI encoded
79
- messages are used in communication between the majority of QRTR
80
- clients and this helpers provide the common functionality needed for
81
- doing this from a kernel driver.
96
+ depends on NET
8297
8398 config QCOM_RMTFS_MEM
8499 tristate "Qualcomm Remote Filesystem memory driver"
....@@ -94,7 +109,8 @@
94109
95110 config QCOM_RPMH
96111 tristate "Qualcomm RPM-Hardened (RPMH) Communication"
97
- depends on ARCH_QCOM && ARM64 && OF || COMPILE_TEST
112
+ depends on ARCH_QCOM || COMPILE_TEST
113
+ depends on (QCOM_COMMAND_DB || !QCOM_COMMAND_DB)
98114 help
99115 Support for communication with the hardened-RPM blocks in
100116 Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an
....@@ -102,9 +118,28 @@
102118 of hardware components aggregate requests for these resources and
103119 help apply the aggregated state on the resource.
104120
121
+config QCOM_RPMHPD
122
+ tristate "Qualcomm RPMh Power domain driver"
123
+ depends on QCOM_RPMH && QCOM_COMMAND_DB
124
+ help
125
+ QCOM RPMh Power domain driver to support power-domains with
126
+ performance states. The driver communicates a performance state
127
+ value to RPMh which then translates it into corresponding voltage
128
+ for the voltage rail.
129
+
130
+config QCOM_RPMPD
131
+ tristate "Qualcomm RPM Power domain driver"
132
+ depends on PM
133
+ depends on QCOM_SMD_RPM
134
+ help
135
+ QCOM RPM Power domain driver to support power-domains with
136
+ performance states. The driver communicates a performance state
137
+ value to RPM which then translates it into corresponding voltage
138
+ for the voltage rail.
139
+
105140 config QCOM_SMEM
106141 tristate "Qualcomm Shared Memory Manager (SMEM)"
107
- depends on ARCH_QCOM
142
+ depends on ARCH_QCOM || COMPILE_TEST
108143 depends on HWSPINLOCK
109144 help
110145 Say y here to enable support for the Qualcomm Shared Memory Manager.
....@@ -113,8 +148,8 @@
113148
114149 config QCOM_SMD_RPM
115150 tristate "Qualcomm Resource Power Manager (RPM) over SMD"
116
- depends on ARCH_QCOM
117
- depends on RPMSG && OF
151
+ depends on ARCH_QCOM || COMPILE_TEST
152
+ depends on RPMSG
118153 help
119154 If you say yes to this option, support will be included for the
120155 Resource Power Manager system found in the Qualcomm 8974 based
....@@ -134,6 +169,7 @@
134169 depends on MAILBOX
135170 depends on QCOM_SMEM
136171 select QCOM_SMEM_STATE
172
+ select IRQ_DOMAIN
137173 help
138174 Say yes here to support the Qualcomm Shared Memory Point to Point
139175 protocol.
....@@ -142,13 +178,22 @@
142178 tristate "Qualcomm Shared Memory State Machine"
143179 depends on QCOM_SMEM
144180 select QCOM_SMEM_STATE
181
+ select IRQ_DOMAIN
145182 help
146183 Say yes here to support the Qualcomm Shared Memory State Machine.
147184 The state machine is represented by bits in shared memory.
148185
186
+config QCOM_SOCINFO
187
+ tristate "Qualcomm socinfo driver"
188
+ depends on QCOM_SMEM
189
+ select SOC_BUS
190
+ help
191
+ Say yes here to support the Qualcomm socinfo driver, providing
192
+ information about the SoC to user space.
193
+
149194 config QCOM_WCNSS_CTRL
150195 tristate "Qualcomm WCNSS control driver"
151
- depends on ARCH_QCOM
196
+ depends on ARCH_QCOM || COMPILE_TEST
152197 depends on RPMSG
153198 help
154199 Client driver for the WCNSS_CTRL SMD channel, used to download nv
....@@ -156,11 +201,13 @@
156201
157202 config QCOM_APR
158203 tristate "Qualcomm APR Bus (Asynchronous Packet Router)"
159
- depends on ARCH_QCOM
204
+ depends on ARCH_QCOM || COMPILE_TEST
160205 depends on RPMSG
206
+ depends on NET
207
+ select QCOM_PDR_HELPERS
161208 help
162
- Enable APR IPC protocol support between
163
- application processor and QDSP6. APR is
164
- used by audio driver to configure QDSP6
165
- ASM, ADM and AFE modules.
209
+ Enable APR IPC protocol support between
210
+ application processor and QDSP6. APR is
211
+ used by audio driver to configure QDSP6
212
+ ASM, ADM and AFE modules.
166213 endmenu