| .. | .. |
|---|
| 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 | |
|---|
| .. | .. |
|---|
| 15 | 18 | |
|---|
| 16 | 19 | If unsure, say Y. |
|---|
| 17 | 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 | + |
|---|
| 18 | 29 | # |
|---|
| 19 | 30 | # Rockchip Soc drivers |
|---|
| 20 | 31 | # |
|---|
| 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 |
|---|
| 29 | 32 | |
|---|
| 30 | 33 | config ROCKCHIP_AMP |
|---|
| 31 | 34 | tristate "Rockchip AMP support" |
|---|
| .. | .. |
|---|
| 33 | 36 | Say y here to enable Rockchip AMP support. |
|---|
| 34 | 37 | This option protects resources used by AMP. |
|---|
| 35 | 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 | + |
|---|
| 36 | 45 | config ROCKCHIP_CPUINFO |
|---|
| 37 | 46 | tristate "Rockchip cpuinfo support" |
|---|
| 38 | 47 | depends on (ROCKCHIP_EFUSE || ROCKCHIP_OTP) && (ARM64 || ARM) |
|---|
| 39 | | - default y |
|---|
| 40 | 48 | help |
|---|
| 41 | 49 | Say y here to enable Rockchip cpuinfo support. |
|---|
| 42 | 50 | Set system_serial_low/high from eFuse ID. |
|---|
| .. | .. |
|---|
| 44 | 52 | |
|---|
| 45 | 53 | If unsure, say N. |
|---|
| 46 | 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 | + |
|---|
| 47 | 61 | config ROCKCHIP_GRF |
|---|
| 48 | 62 | tristate "Rockchip General Register Files support" |
|---|
| 49 | | - default y |
|---|
| 50 | 63 | help |
|---|
| 51 | 64 | The General Register Files are a central component providing |
|---|
| 52 | 65 | special additional settings registers for a lot of soc-components. |
|---|
| .. | .. |
|---|
| 59 | 72 | This driver support Decompress IP built-in Rockchip SoC, support |
|---|
| 60 | 73 | LZ4, GZIP, ZLIB. |
|---|
| 61 | 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 | + |
|---|
| 62 | 100 | config ROCKCHIP_IPA |
|---|
| 63 | 101 | tristate "Rockchip IPA support" |
|---|
| 64 | 102 | depends on THERMAL && OF |
|---|
| 65 | | - default y |
|---|
| 66 | 103 | help |
|---|
| 67 | 104 | Say y here to enable rockchip IPA. |
|---|
| 68 | 105 | Add a simple power model for ipa to calculate static power and |
|---|
| .. | .. |
|---|
| 73 | 110 | config ROCKCHIP_OPP |
|---|
| 74 | 111 | tristate "Rockchip OPP select support" |
|---|
| 75 | 112 | depends on PM_DEVFREQ |
|---|
| 76 | | - default y |
|---|
| 77 | 113 | help |
|---|
| 78 | 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). |
|---|
| 79 | 146 | |
|---|
| 80 | 147 | config ROCKCHIP_PM_DOMAINS |
|---|
| 81 | 148 | tristate "Rockchip generic power domain" |
|---|
| .. | .. |
|---|
| 105 | 172 | |
|---|
| 106 | 173 | config ROCKCHIP_SUSPEND_MODE |
|---|
| 107 | 174 | tristate "Rockchip suspend mode config" |
|---|
| 108 | | - depends on ROCKCHIP_SIP |
|---|
| 109 | 175 | help |
|---|
| 110 | 176 | Say Y here if you want to set the suspend mode to the ATF. |
|---|
| 111 | 177 | |
|---|
| 112 | 178 | config ROCKCHIP_SYSTEM_MONITOR |
|---|
| 113 | 179 | tristate "Rockchip system monitor support" |
|---|
| 114 | | - default y |
|---|
| 115 | 180 | help |
|---|
| 116 | 181 | Say y here to enable rockchip system monitor support. |
|---|
| 117 | 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 | + |
|---|
| 118 | 200 | 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 |
|---|
| 122 | 203 | help |
|---|
| 123 | 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. |
|---|
| 124 | 211 | |
|---|
| 125 | 212 | config ROCKCHIP_VENDOR_STORAGE_UPDATE_LOADER |
|---|
| 126 | 213 | bool "Rockchip vendor storage update loader support" |
|---|
| .. | .. |
|---|
| 129 | 216 | Say y here to enable rockchip vendor storage update loader support. |
|---|
| 130 | 217 | The /dev/vendor_storage must set root user access only. |
|---|
| 131 | 218 | |
|---|
| 219 | +menu "FIQ Debugger" |
|---|
| 220 | +source "drivers/soc/rockchip/fiq_debugger/Kconfig" |
|---|
| 221 | +endmenu |
|---|
| 222 | + |
|---|
| 132 | 223 | config ROCKCHIP_DEBUG |
|---|
| 133 | 224 | tristate "Rockchip DEBUG" |
|---|
| 134 | | - default y |
|---|
| 135 | 225 | help |
|---|
| 136 | 226 | Print dbgpcsr for every cpu when panic. |
|---|
| 137 | 227 | |
|---|
| 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 |
|---|
| 140 | 232 | 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. |
|---|
| 143 | 235 | |
|---|
| 144 | 236 | config ROCKCHIP_THUNDER_BOOT |
|---|
| 145 | 237 | bool "Rockchip Thunder Boot support" |
|---|
| 238 | + depends on NO_GKI |
|---|
| 146 | 239 | help |
|---|
| 147 | 240 | Say y here to enable Rockchip thunder boot support. |
|---|
| 148 | 241 | This option make the kernel boot faster. |
|---|
| .. | .. |
|---|
| 159 | 252 | help |
|---|
| 160 | 253 | Say y if boot from SPI Flash from SFC controller. |
|---|
| 161 | 254 | |
|---|
| 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" |
|---|
| 164 | 257 | depends on ROCKCHIP_THUNDER_BOOT |
|---|
| 258 | + depends on MAILBOX |
|---|
| 165 | 259 | help |
|---|
| 166 | | - Say y if boot need hardware crypto. |
|---|
| 260 | + Say y if MCU need to notify AP. |
|---|
| 167 | 261 | |
|---|
| 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" |
|---|
| 172 | 264 | 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 |
|---|
| 175 | 298 | |
|---|
| 176 | 299 | endif |
|---|