forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
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
....@@ -19,24 +22,21 @@
1922 # Rockchip Soc drivers
2023 #
2124
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
29
-
3025 config ROCKCHIP_AMP
3126 tristate "Rockchip AMP support"
3227 help
3328 Say y here to enable Rockchip AMP support.
3429 This option protects resources used by AMP.
3530
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
+
3637 config ROCKCHIP_CPUINFO
3738 tristate "Rockchip cpuinfo support"
3839 depends on (ROCKCHIP_EFUSE || ROCKCHIP_OTP) && (ARM64 || ARM)
39
- default y
4040 help
4141 Say y here to enable Rockchip cpuinfo support.
4242 Set system_serial_low/high from eFuse ID.
....@@ -46,7 +46,6 @@
4646
4747 config ROCKCHIP_GRF
4848 tristate "Rockchip General Register Files support"
49
- default y
5049 help
5150 The General Register Files are a central component providing
5251 special additional settings registers for a lot of soc-components.
....@@ -59,10 +58,34 @@
5958 This driver support Decompress IP built-in Rockchip SoC, support
6059 LZ4, GZIP, ZLIB.
6160
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
+
6286 config ROCKCHIP_IPA
6387 tristate "Rockchip IPA support"
6488 depends on THERMAL && OF
65
- default y
6689 help
6790 Say y here to enable rockchip IPA.
6891 Add a simple power model for ipa to calculate static power and
....@@ -73,9 +96,39 @@
7396 config ROCKCHIP_OPP
7497 tristate "Rockchip OPP select support"
7598 depends on PM_DEVFREQ
76
- default y
7799 help
78100 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).
79132
80133 config ROCKCHIP_PM_DOMAINS
81134 tristate "Rockchip generic power domain"
....@@ -111,16 +164,37 @@
111164
112165 config ROCKCHIP_SYSTEM_MONITOR
113166 tristate "Rockchip system monitor support"
114
- default y
115167 help
116168 Say y here to enable rockchip system monitor support.
117169
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
+
118187 config ROCKCHIP_MTD_VENDOR_STORAGE
119
- bool "Rockchip mtd vendor storage support"
120
- depends on MTD
121
- default y
188
+ tristate "Rockchip mtd vendor storage support"
189
+ depends on ROCKCHIP_VENDOR_STORAGE && MTD
122190 help
123191 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.
124198
125199 config ROCKCHIP_VENDOR_STORAGE_UPDATE_LOADER
126200 bool "Rockchip vendor storage update loader support"
....@@ -129,20 +203,26 @@
129203 Say y here to enable rockchip vendor storage update loader support.
130204 The /dev/vendor_storage must set root user access only.
131205
206
+menu "FIQ Debugger"
207
+source "drivers/soc/rockchip/fiq_debugger/Kconfig"
208
+endmenu
209
+
132210 config ROCKCHIP_DEBUG
133211 tristate "Rockchip DEBUG"
134
- default y
135212 help
136213 Print dbgpcsr for every cpu when panic.
137214
138
-config ROCKCHIP_LOW_PERFORMANCE
139
- 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
140219 help
141
- Say y here to enable Rockchip low performance support.
142
- 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.
143222
144223 config ROCKCHIP_THUNDER_BOOT
145224 bool "Rockchip Thunder Boot support"
225
+ depends on NO_GKI
146226 help
147227 Say y here to enable Rockchip thunder boot support.
148228 This option make the kernel boot faster.
....@@ -159,18 +239,48 @@
159239 help
160240 Say y if boot from SPI Flash from SFC controller.
161241
162
-config ROCKCHIP_THUNDER_BOOT_CRYPTO
163
- bool "Rockchip Thunder Boot support hardware crypto"
242
+config ROCKCHIP_THUNDER_BOOT_SERVICE
243
+ bool "Rockchip Thunder Boot Service"
164244 depends on ROCKCHIP_THUNDER_BOOT
245
+ depends on MAILBOX
165246 help
166
- Say y if boot need hardware crypto.
247
+ Say y if MCU need to notify AP.
167248
168
-config ROCKCHIP_SCHED_PERFORMANCE_BIAS
169
- bool "Rockchip task scheduler optimization"
170
- depends on SMP && CPU_FREQ_GOV_INTERACTIVE
171
- default y
249
+config ROCKCHIP_NPOR_POWERGOOD
250
+ bool "Rockchip NPOR Powergood"
172251 help
173
- Say y here to enable rockchip optimize task scheduler for performance bias,
174
- 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
175285
176286 endif