| .. | .. |
|---|
| 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 | +# |
|---|
| 22 | +# Rockchip Soc drivers |
|---|
| 23 | +# |
|---|
| 16 | 24 | |
|---|
| 17 | 25 | config ROCKCHIP_AMP |
|---|
| 18 | 26 | tristate "Rockchip AMP support" |
|---|
| .. | .. |
|---|
| 20 | 28 | Say y here to enable Rockchip AMP support. |
|---|
| 21 | 29 | This option protects resources used by AMP. |
|---|
| 22 | 30 | |
|---|
| 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 | + |
|---|
| 23 | 37 | config ROCKCHIP_CPUINFO |
|---|
| 24 | 38 | tristate "Rockchip cpuinfo support" |
|---|
| 25 | 39 | depends on (ROCKCHIP_EFUSE || ROCKCHIP_OTP) && (ARM64 || ARM) |
|---|
| 26 | | - default y |
|---|
| 27 | 40 | help |
|---|
| 28 | 41 | Say y here to enable Rockchip cpuinfo support. |
|---|
| 29 | 42 | Set system_serial_low/high from eFuse ID. |
|---|
| .. | .. |
|---|
| 33 | 46 | |
|---|
| 34 | 47 | config ROCKCHIP_GRF |
|---|
| 35 | 48 | tristate "Rockchip General Register Files support" |
|---|
| 36 | | - default y |
|---|
| 37 | 49 | help |
|---|
| 38 | 50 | The General Register Files are a central component providing |
|---|
| 39 | 51 | special additional settings registers for a lot of soc-components. |
|---|
| .. | .. |
|---|
| 46 | 58 | This driver support Decompress IP built-in Rockchip SoC, support |
|---|
| 47 | 59 | LZ4, GZIP, ZLIB. |
|---|
| 48 | 60 | |
|---|
| 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 | + |
|---|
| 49 | 86 | config ROCKCHIP_IPA |
|---|
| 50 | 87 | tristate "Rockchip IPA support" |
|---|
| 51 | 88 | depends on THERMAL && OF |
|---|
| 52 | | - default y |
|---|
| 53 | 89 | help |
|---|
| 54 | 90 | Say y here to enable rockchip IPA. |
|---|
| 55 | 91 | Add a simple power model for ipa to calculate static power and |
|---|
| .. | .. |
|---|
| 60 | 96 | config ROCKCHIP_OPP |
|---|
| 61 | 97 | tristate "Rockchip OPP select support" |
|---|
| 62 | 98 | depends on PM_DEVFREQ |
|---|
| 63 | | - default y |
|---|
| 64 | 99 | help |
|---|
| 65 | 100 | 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). |
|---|
| 66 | 132 | |
|---|
| 67 | 133 | config ROCKCHIP_PM_DOMAINS |
|---|
| 68 | 134 | tristate "Rockchip generic power domain" |
|---|
| .. | .. |
|---|
| 98 | 164 | |
|---|
| 99 | 165 | config ROCKCHIP_SYSTEM_MONITOR |
|---|
| 100 | 166 | tristate "Rockchip system monitor support" |
|---|
| 101 | | - default y |
|---|
| 102 | 167 | help |
|---|
| 103 | 168 | Say y here to enable rockchip system monitor support. |
|---|
| 104 | 169 | |
|---|
| 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 | + |
|---|
| 105 | 187 | 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 |
|---|
| 109 | 190 | help |
|---|
| 110 | 191 | 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. |
|---|
| 111 | 198 | |
|---|
| 112 | 199 | config ROCKCHIP_VENDOR_STORAGE_UPDATE_LOADER |
|---|
| 113 | 200 | bool "Rockchip vendor storage update loader support" |
|---|
| .. | .. |
|---|
| 116 | 203 | Say y here to enable rockchip vendor storage update loader support. |
|---|
| 117 | 204 | The /dev/vendor_storage must set root user access only. |
|---|
| 118 | 205 | |
|---|
| 206 | +menu "FIQ Debugger" |
|---|
| 207 | +source "drivers/soc/rockchip/fiq_debugger/Kconfig" |
|---|
| 208 | +endmenu |
|---|
| 209 | + |
|---|
| 119 | 210 | config ROCKCHIP_DEBUG |
|---|
| 120 | 211 | tristate "Rockchip DEBUG" |
|---|
| 121 | | - default y |
|---|
| 122 | 212 | help |
|---|
| 123 | 213 | Print dbgpcsr for every cpu when panic. |
|---|
| 124 | 214 | |
|---|
| 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 |
|---|
| 127 | 219 | 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. |
|---|
| 130 | 222 | |
|---|
| 131 | 223 | config ROCKCHIP_THUNDER_BOOT |
|---|
| 132 | 224 | bool "Rockchip Thunder Boot support" |
|---|
| 225 | + depends on NO_GKI |
|---|
| 133 | 226 | help |
|---|
| 134 | 227 | Say y here to enable Rockchip thunder boot support. |
|---|
| 135 | 228 | This option make the kernel boot faster. |
|---|
| .. | .. |
|---|
| 146 | 239 | help |
|---|
| 147 | 240 | Say y if boot from SPI Flash from SFC controller. |
|---|
| 148 | 241 | |
|---|
| 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" |
|---|
| 151 | 244 | depends on ROCKCHIP_THUNDER_BOOT |
|---|
| 245 | + depends on MAILBOX |
|---|
| 152 | 246 | help |
|---|
| 153 | | - Say y if boot need hardware crypto. |
|---|
| 247 | + Say y if MCU need to notify AP. |
|---|
| 154 | 248 | |
|---|
| 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" |
|---|
| 159 | 251 | 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 |
|---|
| 162 | 285 | |
|---|
| 163 | 286 | endif |
|---|