.. | .. |
---|
| 1 | +# SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | if ARCH_ROCKCHIP || COMPILE_TEST |
---|
| 3 | + |
---|
| 4 | +menu "Rockchip SoC drivers" |
---|
2 | 5 | |
---|
3 | 6 | source "drivers/soc/rockchip/Kconfig.cpu" |
---|
4 | 7 | |
---|
5 | 8 | # |
---|
6 | | -# Rockchip Soc drivers |
---|
| 9 | +# Rockchip Android Features |
---|
7 | 10 | # |
---|
8 | 11 | |
---|
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 |
---|
13 | 15 | 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 | +# |
---|
16 | 32 | |
---|
17 | 33 | config ROCKCHIP_AMP |
---|
18 | 34 | tristate "Rockchip AMP support" |
---|
.. | .. |
---|
20 | 36 | Say y here to enable Rockchip AMP support. |
---|
21 | 37 | This option protects resources used by AMP. |
---|
22 | 38 | |
---|
| 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 | + |
---|
23 | 45 | config ROCKCHIP_CPUINFO |
---|
24 | 46 | tristate "Rockchip cpuinfo support" |
---|
25 | 47 | depends on (ROCKCHIP_EFUSE || ROCKCHIP_OTP) && (ARM64 || ARM) |
---|
26 | | - default y |
---|
27 | 48 | help |
---|
28 | 49 | Say y here to enable Rockchip cpuinfo support. |
---|
29 | 50 | Set system_serial_low/high from eFuse ID. |
---|
.. | .. |
---|
31 | 52 | |
---|
32 | 53 | If unsure, say N. |
---|
33 | 54 | |
---|
| 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 | + |
---|
34 | 61 | config ROCKCHIP_GRF |
---|
35 | 62 | tristate "Rockchip General Register Files support" |
---|
36 | | - default y |
---|
37 | 63 | help |
---|
38 | 64 | The General Register Files are a central component providing |
---|
39 | 65 | special additional settings registers for a lot of soc-components. |
---|
.. | .. |
---|
46 | 72 | This driver support Decompress IP built-in Rockchip SoC, support |
---|
47 | 73 | LZ4, GZIP, ZLIB. |
---|
48 | 74 | |
---|
| 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 | + |
---|
49 | 100 | config ROCKCHIP_IPA |
---|
50 | 101 | tristate "Rockchip IPA support" |
---|
51 | 102 | depends on THERMAL && OF |
---|
52 | | - default y |
---|
53 | 103 | help |
---|
54 | 104 | Say y here to enable rockchip IPA. |
---|
55 | 105 | Add a simple power model for ipa to calculate static power and |
---|
.. | .. |
---|
60 | 110 | config ROCKCHIP_OPP |
---|
61 | 111 | tristate "Rockchip OPP select support" |
---|
62 | 112 | depends on PM_DEVFREQ |
---|
63 | | - default y |
---|
64 | 113 | help |
---|
65 | 114 | 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). |
---|
66 | 146 | |
---|
67 | 147 | config ROCKCHIP_PM_DOMAINS |
---|
68 | 148 | tristate "Rockchip generic power domain" |
---|
.. | .. |
---|
92 | 172 | |
---|
93 | 173 | config ROCKCHIP_SUSPEND_MODE |
---|
94 | 174 | tristate "Rockchip suspend mode config" |
---|
95 | | - depends on ROCKCHIP_SIP |
---|
96 | 175 | help |
---|
97 | 176 | Say Y here if you want to set the suspend mode to the ATF. |
---|
98 | 177 | |
---|
99 | 178 | config ROCKCHIP_SYSTEM_MONITOR |
---|
100 | 179 | tristate "Rockchip system monitor support" |
---|
101 | | - default y |
---|
102 | 180 | help |
---|
103 | 181 | Say y here to enable rockchip system monitor support. |
---|
104 | 182 | |
---|
| 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 | + |
---|
105 | 200 | 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 |
---|
109 | 203 | help |
---|
110 | 204 | 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. |
---|
111 | 211 | |
---|
112 | 212 | config ROCKCHIP_VENDOR_STORAGE_UPDATE_LOADER |
---|
113 | 213 | bool "Rockchip vendor storage update loader support" |
---|
.. | .. |
---|
116 | 216 | Say y here to enable rockchip vendor storage update loader support. |
---|
117 | 217 | The /dev/vendor_storage must set root user access only. |
---|
118 | 218 | |
---|
| 219 | +menu "FIQ Debugger" |
---|
| 220 | +source "drivers/soc/rockchip/fiq_debugger/Kconfig" |
---|
| 221 | +endmenu |
---|
| 222 | + |
---|
119 | 223 | config ROCKCHIP_DEBUG |
---|
120 | 224 | tristate "Rockchip DEBUG" |
---|
121 | | - default y |
---|
122 | 225 | help |
---|
123 | 226 | Print dbgpcsr for every cpu when panic. |
---|
124 | 227 | |
---|
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 |
---|
127 | 232 | 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. |
---|
130 | 235 | |
---|
131 | 236 | config ROCKCHIP_THUNDER_BOOT |
---|
132 | 237 | bool "Rockchip Thunder Boot support" |
---|
| 238 | + depends on NO_GKI |
---|
133 | 239 | help |
---|
134 | 240 | Say y here to enable Rockchip thunder boot support. |
---|
135 | 241 | This option make the kernel boot faster. |
---|
.. | .. |
---|
146 | 252 | help |
---|
147 | 253 | Say y if boot from SPI Flash from SFC controller. |
---|
148 | 254 | |
---|
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" |
---|
151 | 257 | depends on ROCKCHIP_THUNDER_BOOT |
---|
| 258 | + depends on MAILBOX |
---|
152 | 259 | help |
---|
153 | | - Say y if boot need hardware crypto. |
---|
| 260 | + Say y if MCU need to notify AP. |
---|
154 | 261 | |
---|
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" |
---|
159 | 264 | 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 |
---|
162 | 298 | |
---|
163 | 299 | endif |
---|