hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
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,50 @@
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
66
+ select REGMAP_MMIO
4667 help
4768 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.
69
+ Last Level Cache Controller(LLCC) driver for platforms such as,
70
+ SDM845. This provides interfaces to clients that use the LLCC.
71
+ Say yes here to enable LLCC slice driver.
5172
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.
73
+config QCOM_KRYO_L2_ACCESSORS
74
+ bool
75
+ depends on ARCH_QCOM && ARM64 || COMPILE_TEST
5976
6077 config QCOM_MDT_LOADER
6178 tristate
6279 select QCOM_SCM
6380
64
-config QCOM_PM
65
- bool "Qualcomm Power Management"
66
- depends on ARCH_QCOM && !ARM64
67
- select ARM_CPU_SUSPEND
81
+config QCOM_OCMEM
82
+ tristate "Qualcomm On Chip Memory (OCMEM) driver"
83
+ depends on ARCH_QCOM
6884 select QCOM_SCM
6985 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.
86
+ The On Chip Memory (OCMEM) allocator allows various clients to
87
+ allocate memory from OCMEM based on performance, latency and power
88
+ requirements. This is typically used by the GPU, camera/video, and
89
+ audio components on some Snapdragon SoCs.
90
+
91
+config QCOM_PDR_HELPERS
92
+ tristate
93
+ select QCOM_QMI_HELPERS
7394
7495 config QCOM_QMI_HELPERS
7596 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.
97
+ depends on NET
8298
8399 config QCOM_RMTFS_MEM
84100 tristate "Qualcomm Remote Filesystem memory driver"
....@@ -94,7 +110,8 @@
94110
95111 config QCOM_RPMH
96112 tristate "Qualcomm RPM-Hardened (RPMH) Communication"
97
- depends on ARCH_QCOM && ARM64 && OF || COMPILE_TEST
113
+ depends on ARCH_QCOM || COMPILE_TEST
114
+ depends on (QCOM_COMMAND_DB || !QCOM_COMMAND_DB)
98115 help
99116 Support for communication with the hardened-RPM blocks in
100117 Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an
....@@ -102,9 +119,28 @@
102119 of hardware components aggregate requests for these resources and
103120 help apply the aggregated state on the resource.
104121
122
+config QCOM_RPMHPD
123
+ tristate "Qualcomm RPMh Power domain driver"
124
+ depends on QCOM_RPMH && QCOM_COMMAND_DB
125
+ help
126
+ QCOM RPMh Power domain driver to support power-domains with
127
+ performance states. The driver communicates a performance state
128
+ value to RPMh which then translates it into corresponding voltage
129
+ for the voltage rail.
130
+
131
+config QCOM_RPMPD
132
+ tristate "Qualcomm RPM Power domain driver"
133
+ depends on PM
134
+ depends on QCOM_SMD_RPM
135
+ help
136
+ QCOM RPM Power domain driver to support power-domains with
137
+ performance states. The driver communicates a performance state
138
+ value to RPM which then translates it into corresponding voltage
139
+ for the voltage rail.
140
+
105141 config QCOM_SMEM
106142 tristate "Qualcomm Shared Memory Manager (SMEM)"
107
- depends on ARCH_QCOM
143
+ depends on ARCH_QCOM || COMPILE_TEST
108144 depends on HWSPINLOCK
109145 help
110146 Say y here to enable support for the Qualcomm Shared Memory Manager.
....@@ -113,8 +149,8 @@
113149
114150 config QCOM_SMD_RPM
115151 tristate "Qualcomm Resource Power Manager (RPM) over SMD"
116
- depends on ARCH_QCOM
117
- depends on RPMSG && OF
152
+ depends on ARCH_QCOM || COMPILE_TEST
153
+ depends on RPMSG
118154 help
119155 If you say yes to this option, support will be included for the
120156 Resource Power Manager system found in the Qualcomm 8974 based
....@@ -134,6 +170,7 @@
134170 depends on MAILBOX
135171 depends on QCOM_SMEM
136172 select QCOM_SMEM_STATE
173
+ select IRQ_DOMAIN
137174 help
138175 Say yes here to support the Qualcomm Shared Memory Point to Point
139176 protocol.
....@@ -142,13 +179,22 @@
142179 tristate "Qualcomm Shared Memory State Machine"
143180 depends on QCOM_SMEM
144181 select QCOM_SMEM_STATE
182
+ select IRQ_DOMAIN
145183 help
146184 Say yes here to support the Qualcomm Shared Memory State Machine.
147185 The state machine is represented by bits in shared memory.
148186
187
+config QCOM_SOCINFO
188
+ tristate "Qualcomm socinfo driver"
189
+ depends on QCOM_SMEM
190
+ select SOC_BUS
191
+ help
192
+ Say yes here to support the Qualcomm socinfo driver, providing
193
+ information about the SoC to user space.
194
+
149195 config QCOM_WCNSS_CTRL
150196 tristate "Qualcomm WCNSS control driver"
151
- depends on ARCH_QCOM
197
+ depends on ARCH_QCOM || COMPILE_TEST
152198 depends on RPMSG
153199 help
154200 Client driver for the WCNSS_CTRL SMD channel, used to download nv
....@@ -156,11 +202,13 @@
156202
157203 config QCOM_APR
158204 tristate "Qualcomm APR Bus (Asynchronous Packet Router)"
159
- depends on ARCH_QCOM
205
+ depends on ARCH_QCOM || COMPILE_TEST
160206 depends on RPMSG
207
+ depends on NET
208
+ select QCOM_PDR_HELPERS
161209 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.
210
+ Enable APR IPC protocol support between
211
+ application processor and QDSP6. APR is
212
+ used by audio driver to configure QDSP6
213
+ ASM, ADM and AFE modules.
166214 endmenu