forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/soc/rockchip/Kconfig
....@@ -1,18 +1,34 @@
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
+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
+
29
+#
30
+# Rockchip Soc drivers
31
+#
1632
1733 config ROCKCHIP_AMP
1834 tristate "Rockchip AMP support"
....@@ -20,10 +36,15 @@
2036 Say y here to enable Rockchip AMP support.
2137 This option protects resources used by AMP.
2238
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
+
2345 config ROCKCHIP_CPUINFO
2446 tristate "Rockchip cpuinfo support"
2547 depends on (ROCKCHIP_EFUSE || ROCKCHIP_OTP) && (ARM64 || ARM)
26
- default y
2748 help
2849 Say y here to enable Rockchip cpuinfo support.
2950 Set system_serial_low/high from eFuse ID.
....@@ -31,9 +52,14 @@
3152
3253 If unsure, say N.
3354
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
+
3461 config ROCKCHIP_GRF
3562 tristate "Rockchip General Register Files support"
36
- default y
3763 help
3864 The General Register Files are a central component providing
3965 special additional settings registers for a lot of soc-components.
....@@ -46,10 +72,34 @@
4672 This driver support Decompress IP built-in Rockchip SoC, support
4773 LZ4, GZIP, ZLIB.
4874
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
+
49100 config ROCKCHIP_IPA
50101 tristate "Rockchip IPA support"
51102 depends on THERMAL && OF
52
- default y
53103 help
54104 Say y here to enable rockchip IPA.
55105 Add a simple power model for ipa to calculate static power and
....@@ -60,9 +110,39 @@
60110 config ROCKCHIP_OPP
61111 tristate "Rockchip OPP select support"
62112 depends on PM_DEVFREQ
63
- default y
64113 help
65114 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).
66146
67147 config ROCKCHIP_PM_DOMAINS
68148 tristate "Rockchip generic power domain"
....@@ -92,22 +172,42 @@
92172
93173 config ROCKCHIP_SUSPEND_MODE
94174 tristate "Rockchip suspend mode config"
95
- depends on ROCKCHIP_SIP
96175 help
97176 Say Y here if you want to set the suspend mode to the ATF.
98177
99178 config ROCKCHIP_SYSTEM_MONITOR
100179 tristate "Rockchip system monitor support"
101
- default y
102180 help
103181 Say y here to enable rockchip system monitor support.
104182
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
+
105200 config ROCKCHIP_MTD_VENDOR_STORAGE
106
- bool "Rockchip mtd vendor storage support"
107
- depends on MTD
108
- default y
201
+ tristate "Rockchip mtd vendor storage support"
202
+ depends on ROCKCHIP_VENDOR_STORAGE && MTD
109203 help
110204 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.
111211
112212 config ROCKCHIP_VENDOR_STORAGE_UPDATE_LOADER
113213 bool "Rockchip vendor storage update loader support"
....@@ -116,20 +216,26 @@
116216 Say y here to enable rockchip vendor storage update loader support.
117217 The /dev/vendor_storage must set root user access only.
118218
219
+menu "FIQ Debugger"
220
+source "drivers/soc/rockchip/fiq_debugger/Kconfig"
221
+endmenu
222
+
119223 config ROCKCHIP_DEBUG
120224 tristate "Rockchip DEBUG"
121
- default y
122225 help
123226 Print dbgpcsr for every cpu when panic.
124227
125
-config ROCKCHIP_LOW_PERFORMANCE
126
- 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
127232 help
128
- Say y here to enable Rockchip low performance support.
129
- 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.
130235
131236 config ROCKCHIP_THUNDER_BOOT
132237 bool "Rockchip Thunder Boot support"
238
+ depends on NO_GKI
133239 help
134240 Say y here to enable Rockchip thunder boot support.
135241 This option make the kernel boot faster.
....@@ -146,18 +252,48 @@
146252 help
147253 Say y if boot from SPI Flash from SFC controller.
148254
149
-config ROCKCHIP_THUNDER_BOOT_CRYPTO
150
- bool "Rockchip Thunder Boot support hardware crypto"
255
+config ROCKCHIP_THUNDER_BOOT_SERVICE
256
+ bool "Rockchip Thunder Boot Service"
151257 depends on ROCKCHIP_THUNDER_BOOT
258
+ depends on MAILBOX
152259 help
153
- Say y if boot need hardware crypto.
260
+ Say y if MCU need to notify AP.
154261
155
-config ROCKCHIP_SCHED_PERFORMANCE_BIAS
156
- bool "Rockchip task scheduler optimization"
157
- depends on SMP && CPU_FREQ_GOV_INTERACTIVE
158
- default y
262
+config ROCKCHIP_NPOR_POWERGOOD
263
+ bool "Rockchip NPOR Powergood"
159264 help
160
- Say y here to enable rockchip optimize task scheduler for performance bias,
161
- 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
162298
163299 endif