forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/soc/rockchip/Kconfig
....@@ -1,18 +1,26 @@
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
58 #
6
-# Rockchip Soc drivers
9
+# Rockchip Android Features
710 #
811
9
-config ANDROID_VERSION
10
- hex "Android Version"
11
- depends on ANDROID
12
- default "0x08010000"
12
+config NO_GKI
13
+ bool "Disable Android GKI support"
14
+ default y if !GKI_HACKS_TO_FIX
1315 help
14
- The version of Android kernel supported.
15
- The value is 0xAABBCCRR, corresponding to Android A.B.C release R
16
+ Say y here to disable Android GKI support. Then
17
+ all the ABI compatibilities are not applicable.
18
+
19
+ If unsure, say Y.
20
+
21
+#
22
+# Rockchip Soc drivers
23
+#
1624
1725 config ROCKCHIP_AMP
1826 tristate "Rockchip AMP support"
....@@ -20,10 +28,15 @@
2028 Say y here to enable Rockchip AMP support.
2129 This option protects resources used by AMP.
2230
31
+config ROCKCHIP_ARM64_ALIGN_FAULT_FIX
32
+ bool "Rockchip align fault fix support"
33
+ depends on ARM64 && NO_GKI
34
+ help
35
+ Say y here to enable Rockchip align fault fix support.
36
+
2337 config ROCKCHIP_CPUINFO
2438 tristate "Rockchip cpuinfo support"
2539 depends on (ROCKCHIP_EFUSE || ROCKCHIP_OTP) && (ARM64 || ARM)
26
- default y
2740 help
2841 Say y here to enable Rockchip cpuinfo support.
2942 Set system_serial_low/high from eFuse ID.
....@@ -33,7 +46,6 @@
3346
3447 config ROCKCHIP_GRF
3548 tristate "Rockchip General Register Files support"
36
- default y
3749 help
3850 The General Register Files are a central component providing
3951 special additional settings registers for a lot of soc-components.
....@@ -46,10 +58,34 @@
4658 This driver support Decompress IP built-in Rockchip SoC, support
4759 LZ4, GZIP, ZLIB.
4860
61
+config ROCKCHIP_HW_DECOMPRESS_USER
62
+ tristate "Rockchip HardWare Decompress User Interface Support"
63
+ default n
64
+ select ROCKCHIP_HW_DECOMPRESS
65
+ help
66
+ This driver support user invokes the Decompress IP built-in Rockchip SoC, support
67
+ LZ4, GZIP, ZLIB.
68
+
69
+config ROCKCHIP_IODOMAIN
70
+ tristate "Rockchip IO domain support"
71
+ depends on OF
72
+ help
73
+ Say y here to enable support io domains on Rockchip SoCs. It is
74
+ necessary for the io domain setting of the SoC to match the
75
+ voltage supplied by the regulators.
76
+
77
+config ROCKCHIP_IOMUX
78
+ tristate "Rockchip IOMUX ioctl support"
79
+ depends on PINCTRL_ROCKCHIP
80
+ help
81
+ This is the debug option for rockchip pinctrl driver by add a device
82
+ /dev/iomux to set or get iomux.
83
+
84
+ If unsure, say N.
85
+
4986 config ROCKCHIP_IPA
5087 tristate "Rockchip IPA support"
5188 depends on THERMAL && OF
52
- default y
5389 help
5490 Say y here to enable rockchip IPA.
5591 Add a simple power model for ipa to calculate static power and
....@@ -60,9 +96,39 @@
6096 config ROCKCHIP_OPP
6197 tristate "Rockchip OPP select support"
6298 depends on PM_DEVFREQ
63
- default y
6499 help
65100 Say y here to enable rockchip OPP support.
101
+
102
+config ROCKCHIP_OPTIMIZE_RT_PRIO
103
+ bool "Rockchip optimize prio for kernel RT thread and kworker"
104
+ depends on NO_GKI
105
+ help
106
+ In some cases, there are too much userspace high priority RT threads, which
107
+ cause kernel RT threads or kworkers block too long time. This config separate
108
+ kernel and userspace RT threads into two priority regions, priority 0~49 for
109
+ kernel and priority 50~99 for userspace, so that kernel RT threads is always
110
+ higher priority than userspace. This config also set RT policy for kworkers.
111
+
112
+config ROCKCHIP_PERFORMANCE
113
+ bool "Rockchip performance configuration support"
114
+ depends on NO_GKI
115
+ help
116
+ This config aims to support different requests between power consumption
117
+ and performance.
118
+
119
+config ROCKCHIP_PERFORMANCE_LEVEL
120
+ int "Rockchip performance default level"
121
+ depends on ROCKCHIP_PERFORMANCE
122
+ range 0 2
123
+ default 1
124
+ help
125
+ Select default performance level:
126
+
127
+ 0 for low-performance (powersave),
128
+ 1 for normal performance,
129
+ 2 for high-performance.
130
+
131
+ This can also be changed at runtime (via the level module parameter).
66132
67133 config ROCKCHIP_PM_DOMAINS
68134 tristate "Rockchip generic power domain"
....@@ -98,16 +164,37 @@
98164
99165 config ROCKCHIP_SYSTEM_MONITOR
100166 tristate "Rockchip system monitor support"
101
- default y
102167 help
103168 Say y here to enable rockchip system monitor support.
104169
170
+config ROCKCHIP_VENDOR_STORAGE
171
+ tristate "Rockchip vendor storage support"
172
+ help
173
+ Say y here to enable rockchip vendor storage support.
174
+
175
+config ROCKCHIP_MMC_VENDOR_STORAGE
176
+ tristate "Rockchip mmc vendor storage support"
177
+ depends on ROCKCHIP_VENDOR_STORAGE && MMC
178
+ help
179
+ Say y here to enable rockchip mmc vendor storage support.
180
+
181
+config ROCKCHIP_FLASH_VENDOR_STORAGE
182
+ tristate "Rockchip flash vendor storage support"
183
+ depends on ROCKCHIP_VENDOR_STORAGE && RK_FLASH
184
+ help
185
+ Say y here to enable rockchip flash vendor storage support.
186
+
105187 config ROCKCHIP_MTD_VENDOR_STORAGE
106
- bool "Rockchip mtd vendor storage support"
107
- depends on MTD
108
- default y
188
+ tristate "Rockchip mtd vendor storage support"
189
+ depends on ROCKCHIP_VENDOR_STORAGE && MTD
109190 help
110191 Say y here to enable rockchip mtd vendor storage support.
192
+
193
+config ROCKCHIP_RAM_VENDOR_STORAGE
194
+ tristate "Rockchip ram vendor storage support"
195
+ depends on ROCKCHIP_VENDOR_STORAGE
196
+ help
197
+ Say y here to enable rockchip ram vendor storage support.
111198
112199 config ROCKCHIP_VENDOR_STORAGE_UPDATE_LOADER
113200 bool "Rockchip vendor storage update loader support"
....@@ -116,20 +203,26 @@
116203 Say y here to enable rockchip vendor storage update loader support.
117204 The /dev/vendor_storage must set root user access only.
118205
206
+menu "FIQ Debugger"
207
+source "drivers/soc/rockchip/fiq_debugger/Kconfig"
208
+endmenu
209
+
119210 config ROCKCHIP_DEBUG
120211 tristate "Rockchip DEBUG"
121
- default y
122212 help
123213 Print dbgpcsr for every cpu when panic.
124214
125
-config ROCKCHIP_LOW_PERFORMANCE
126
- bool "Rockchip low performance support"
215
+config ROCKCHIP_MINI_KERNEL
216
+ bool "Rockchip Mini Kernel support"
217
+ select NO_GKI
218
+ default y if CPU_RV1106 || CPU_RV1126
127219 help
128
- Say y here to enable Rockchip low performance support.
129
- This option make the SoC low power.
220
+ Say y here to enable Rockchip mini kernel support.
221
+ This option make the kernel size smaller.
130222
131223 config ROCKCHIP_THUNDER_BOOT
132224 bool "Rockchip Thunder Boot support"
225
+ depends on NO_GKI
133226 help
134227 Say y here to enable Rockchip thunder boot support.
135228 This option make the kernel boot faster.
....@@ -146,18 +239,48 @@
146239 help
147240 Say y if boot from SPI Flash from SFC controller.
148241
149
-config ROCKCHIP_THUNDER_BOOT_CRYPTO
150
- bool "Rockchip Thunder Boot support hardware crypto"
242
+config ROCKCHIP_THUNDER_BOOT_SERVICE
243
+ bool "Rockchip Thunder Boot Service"
151244 depends on ROCKCHIP_THUNDER_BOOT
245
+ depends on MAILBOX
152246 help
153
- Say y if boot need hardware crypto.
247
+ Say y if MCU need to notify AP.
154248
155
-config ROCKCHIP_SCHED_PERFORMANCE_BIAS
156
- bool "Rockchip task scheduler optimization"
157
- depends on SMP && CPU_FREQ_GOV_INTERACTIVE
158
- default y
249
+config ROCKCHIP_NPOR_POWERGOOD
250
+ bool "Rockchip NPOR Powergood"
159251 help
160
- Say y here to enable rockchip optimize task scheduler for performance bias,
161
- this would cause a little more power consumption.
252
+ Say y if SOC integrate ROCKCHIP NPOR Powergood.
253
+
254
+#
255
+# Rockchip Procfs drivers
256
+#
257
+
258
+config RK_CMA_PROCFS
259
+ tristate "CMA procfs interface"
260
+ depends on CMA && PROC_FS
261
+ help
262
+ Turns on the ProcFS interface for CMA, shows the bitmap in hex
263
+ format.
264
+
265
+config RK_DMABUF_PROCFS
266
+ tristate "DMABUF procfs support"
267
+ depends on DMA_SHARED_BUFFER
268
+ depends on PROC_FS
269
+ help
270
+ Turns on this to create a procfs debug interface for dma-buf, support
271
+ get information from db_list by get_each_dmabuf.
272
+
273
+ If unsure, say "N".
274
+
275
+config RK_MEMBLOCK_PROCFS
276
+ bool "Memblock procfs for reserved memory"
277
+ depends on PROC_FS && ARCH_KEEP_MEMBLOCK
278
+ help
279
+ Extend memblock procfs to show size of each memblock, and shows the
280
+ result of total size by KiB format.
281
+
282
+source "drivers/soc/rockchip/minidump/Kconfig"
283
+
284
+endmenu
162285
163286 endif