forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/soc/rockchip/Kconfig
....@@ -1,4 +1,7 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 if ARCH_ROCKCHIP || COMPILE_TEST
3
+
4
+menu "Rockchip SoC drivers"
25
36 source "drivers/soc/rockchip/Kconfig.cpu"
47
....@@ -15,17 +18,17 @@
1518
1619 If unsure, say Y.
1720
21
+config ROCKCHIP_DISABLE_UNUSED
22
+ tristate "Rockchip Disable Unused"
23
+ default m if GKI_HACKS_TO_FIX
24
+ help
25
+ Disable unused clk and power down after module init.
26
+
27
+ If unsure, say "N".
28
+
1829 #
1930 # Rockchip Soc drivers
2031 #
21
-
22
-config ANDROID_VERSION
23
- hex "Android Version"
24
- depends on ANDROID
25
- default "0x08010000"
26
- help
27
- The version of Android kernel supported.
28
- The value is 0xAABBCCRR, corresponding to Android A.B.C release R
2932
3033 config ROCKCHIP_AMP
3134 tristate "Rockchip AMP support"
....@@ -33,10 +36,15 @@
3336 Say y here to enable Rockchip AMP support.
3437 This option protects resources used by AMP.
3538
39
+config ROCKCHIP_ARM64_ALIGN_FAULT_FIX
40
+ bool "Rockchip align fault fix support"
41
+ depends on ARM64 && NO_GKI
42
+ help
43
+ Say y here to enable Rockchip align fault fix support.
44
+
3645 config ROCKCHIP_CPUINFO
3746 tristate "Rockchip cpuinfo support"
3847 depends on (ROCKCHIP_EFUSE || ROCKCHIP_OTP) && (ARM64 || ARM)
39
- default y
4048 help
4149 Say y here to enable Rockchip cpuinfo support.
4250 Set system_serial_low/high from eFuse ID.
....@@ -44,9 +52,14 @@
4452
4553 If unsure, say N.
4654
55
+config ROCKCHIP_CSU
56
+ tristate "Rockchip Clock Subunit Driver"
57
+ depends on ARCH_ROCKCHIP
58
+ help
59
+ This adds the clock subunit driver for Rockchip SoCs.
60
+
4761 config ROCKCHIP_GRF
4862 tristate "Rockchip General Register Files support"
49
- default y
5063 help
5164 The General Register Files are a central component providing
5265 special additional settings registers for a lot of soc-components.
....@@ -59,10 +72,34 @@
5972 This driver support Decompress IP built-in Rockchip SoC, support
6073 LZ4, GZIP, ZLIB.
6174
75
+config ROCKCHIP_HW_DECOMPRESS_USER
76
+ tristate "Rockchip HardWare Decompress User Interface Support"
77
+ default n
78
+ select ROCKCHIP_HW_DECOMPRESS
79
+ help
80
+ This driver support user invokes the Decompress IP built-in Rockchip SoC, support
81
+ LZ4, GZIP, ZLIB.
82
+
83
+config ROCKCHIP_IODOMAIN
84
+ tristate "Rockchip IO domain support"
85
+ depends on OF
86
+ help
87
+ Say y here to enable support io domains on Rockchip SoCs. It is
88
+ necessary for the io domain setting of the SoC to match the
89
+ voltage supplied by the regulators.
90
+
91
+config ROCKCHIP_IOMUX
92
+ tristate "Rockchip IOMUX ioctl support"
93
+ depends on PINCTRL_ROCKCHIP
94
+ help
95
+ This is the debug option for rockchip pinctrl driver by add a device
96
+ /dev/iomux to set or get iomux.
97
+
98
+ If unsure, say N.
99
+
62100 config ROCKCHIP_IPA
63101 tristate "Rockchip IPA support"
64102 depends on THERMAL && OF
65
- default y
66103 help
67104 Say y here to enable rockchip IPA.
68105 Add a simple power model for ipa to calculate static power and
....@@ -73,9 +110,39 @@
73110 config ROCKCHIP_OPP
74111 tristate "Rockchip OPP select support"
75112 depends on PM_DEVFREQ
76
- default y
77113 help
78114 Say y here to enable rockchip OPP support.
115
+
116
+config ROCKCHIP_OPTIMIZE_RT_PRIO
117
+ bool "Rockchip optimize prio for kernel RT thread and kworker"
118
+ depends on NO_GKI
119
+ help
120
+ In some cases, there are too much userspace high priority RT threads, which
121
+ cause kernel RT threads or kworkers block too long time. This config separate
122
+ kernel and userspace RT threads into two priority regions, priority 0~49 for
123
+ kernel and priority 50~99 for userspace, so that kernel RT threads is always
124
+ higher priority than userspace. This config also set RT policy for kworkers.
125
+
126
+config ROCKCHIP_PERFORMANCE
127
+ bool "Rockchip performance configuration support"
128
+ depends on NO_GKI
129
+ help
130
+ This config aims to support different requests between power consumption
131
+ and performance.
132
+
133
+config ROCKCHIP_PERFORMANCE_LEVEL
134
+ int "Rockchip performance default level"
135
+ depends on ROCKCHIP_PERFORMANCE
136
+ range 0 2
137
+ default 1
138
+ help
139
+ Select default performance level:
140
+
141
+ 0 for low-performance (powersave),
142
+ 1 for normal performance,
143
+ 2 for high-performance.
144
+
145
+ This can also be changed at runtime (via the level module parameter).
79146
80147 config ROCKCHIP_PM_DOMAINS
81148 tristate "Rockchip generic power domain"
....@@ -105,22 +172,42 @@
105172
106173 config ROCKCHIP_SUSPEND_MODE
107174 tristate "Rockchip suspend mode config"
108
- depends on ROCKCHIP_SIP
109175 help
110176 Say Y here if you want to set the suspend mode to the ATF.
111177
112178 config ROCKCHIP_SYSTEM_MONITOR
113179 tristate "Rockchip system monitor support"
114
- default y
115180 help
116181 Say y here to enable rockchip system monitor support.
117182
183
+config ROCKCHIP_VENDOR_STORAGE
184
+ tristate "Rockchip vendor storage support"
185
+ help
186
+ Say y here to enable rockchip vendor storage support.
187
+
188
+config ROCKCHIP_MMC_VENDOR_STORAGE
189
+ tristate "Rockchip mmc vendor storage support"
190
+ depends on ROCKCHIP_VENDOR_STORAGE && MMC
191
+ help
192
+ Say y here to enable rockchip mmc vendor storage support.
193
+
194
+config ROCKCHIP_FLASH_VENDOR_STORAGE
195
+ tristate "Rockchip flash vendor storage support"
196
+ depends on ROCKCHIP_VENDOR_STORAGE && RK_FLASH
197
+ help
198
+ Say y here to enable rockchip flash vendor storage support.
199
+
118200 config ROCKCHIP_MTD_VENDOR_STORAGE
119
- bool "Rockchip mtd vendor storage support"
120
- depends on MTD
121
- default y
201
+ tristate "Rockchip mtd vendor storage support"
202
+ depends on ROCKCHIP_VENDOR_STORAGE && MTD
122203 help
123204 Say y here to enable rockchip mtd vendor storage support.
205
+
206
+config ROCKCHIP_RAM_VENDOR_STORAGE
207
+ tristate "Rockchip ram vendor storage support"
208
+ depends on ROCKCHIP_VENDOR_STORAGE
209
+ help
210
+ Say y here to enable rockchip ram vendor storage support.
124211
125212 config ROCKCHIP_VENDOR_STORAGE_UPDATE_LOADER
126213 bool "Rockchip vendor storage update loader support"
....@@ -129,20 +216,26 @@
129216 Say y here to enable rockchip vendor storage update loader support.
130217 The /dev/vendor_storage must set root user access only.
131218
219
+menu "FIQ Debugger"
220
+source "drivers/soc/rockchip/fiq_debugger/Kconfig"
221
+endmenu
222
+
132223 config ROCKCHIP_DEBUG
133224 tristate "Rockchip DEBUG"
134
- default y
135225 help
136226 Print dbgpcsr for every cpu when panic.
137227
138
-config ROCKCHIP_LOW_PERFORMANCE
139
- bool "Rockchip low performance support"
228
+config ROCKCHIP_MINI_KERNEL
229
+ bool "Rockchip Mini Kernel support"
230
+ select NO_GKI
231
+ default y if CPU_RV1106 || CPU_RV1126
140232 help
141
- Say y here to enable Rockchip low performance support.
142
- This option make the SoC low power.
233
+ Say y here to enable Rockchip mini kernel support.
234
+ This option make the kernel size smaller.
143235
144236 config ROCKCHIP_THUNDER_BOOT
145237 bool "Rockchip Thunder Boot support"
238
+ depends on NO_GKI
146239 help
147240 Say y here to enable Rockchip thunder boot support.
148241 This option make the kernel boot faster.
....@@ -159,18 +252,48 @@
159252 help
160253 Say y if boot from SPI Flash from SFC controller.
161254
162
-config ROCKCHIP_THUNDER_BOOT_CRYPTO
163
- bool "Rockchip Thunder Boot support hardware crypto"
255
+config ROCKCHIP_THUNDER_BOOT_SERVICE
256
+ bool "Rockchip Thunder Boot Service"
164257 depends on ROCKCHIP_THUNDER_BOOT
258
+ depends on MAILBOX
165259 help
166
- Say y if boot need hardware crypto.
260
+ Say y if MCU need to notify AP.
167261
168
-config ROCKCHIP_SCHED_PERFORMANCE_BIAS
169
- bool "Rockchip task scheduler optimization"
170
- depends on SMP && CPU_FREQ_GOV_INTERACTIVE
171
- default y
262
+config ROCKCHIP_NPOR_POWERGOOD
263
+ bool "Rockchip NPOR Powergood"
172264 help
173
- Say y here to enable rockchip optimize task scheduler for performance bias,
174
- this would cause a little more power consumption.
265
+ Say y if SOC integrate ROCKCHIP NPOR Powergood.
266
+
267
+#
268
+# Rockchip Procfs drivers
269
+#
270
+
271
+config RK_CMA_PROCFS
272
+ tristate "CMA procfs interface"
273
+ depends on CMA && PROC_FS
274
+ help
275
+ Turns on the ProcFS interface for CMA, shows the bitmap in hex
276
+ format.
277
+
278
+config RK_DMABUF_PROCFS
279
+ tristate "DMABUF procfs support"
280
+ depends on DMA_SHARED_BUFFER
281
+ depends on PROC_FS
282
+ help
283
+ Turns on this to create a procfs debug interface for dma-buf, support
284
+ get information from db_list by get_each_dmabuf.
285
+
286
+ If unsure, say "N".
287
+
288
+config RK_MEMBLOCK_PROCFS
289
+ bool "Memblock procfs for reserved memory"
290
+ depends on PROC_FS && ARCH_KEEP_MEMBLOCK
291
+ help
292
+ Extend memblock procfs to show size of each memblock, and shows the
293
+ result of total size by KiB format.
294
+
295
+source "drivers/soc/rockchip/minidump/Kconfig"
296
+
297
+endmenu
175298
176299 endif