• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SPDX-License-Identifier: GPL-2.0-only
2if ARCH_ROCKCHIP || COMPILE_TEST
3
4source "vendor/drivers/rockchip/Kconfig.cpu"
5
6#
7# Rockchip Android Features
8#
9
10config NO_GKI
11	bool "Disable Android GKI support"
12	default y if !GKI_HACKS_TO_FIX
13	help
14	  Say y here to disable Android GKI support. Then
15	  all the ABI compatibilities are not applicable.
16
17	  If unsure, say Y.
18
19#
20# Rockchip Soc drivers
21#
22
23config ROCKCHIP_CPUINFO
24	tristate "Rockchip cpuinfo support"
25	depends on (ROCKCHIP_EFUSE || ROCKCHIP_OTP) && (ARM64 || ARM)
26	help
27	  Say y here to enable Rockchip cpuinfo support.
28	  Set system_serial_low/high from eFuse ID.
29	  Serial can read from /proc/cpuinfo.
30
31	  If unsure, say N.
32
33config ROCKCHIP_GRF
34	tristate "Rockchip General Register Files support"
35	help
36	  The General Register Files are a central component providing
37	  special additional settings registers for a lot of soc-components.
38	  In a lot of cases there also need to be default settings initialized
39	  to make some of them conform to expectations of the kernel.
40
41config ROCKCHIP_HW_DECOMPRESS
42	bool "Rockchip HardWare Decompress Support"
43	help
44	  This driver support Decompress IP built-in Rockchip SoC, support
45	  LZ4, GZIP, ZLIB.
46
47config ROCKCHIP_IODOMAIN
48	tristate "Rockchip IO domain support"
49	depends on OF
50	help
51	  Say y here to enable support io domains on Rockchip SoCs. It is
52	  necessary for the io domain setting of the SoC to match the
53	  voltage supplied by the regulators.
54
55config ROCKCHIP_IPA
56	tristate "Rockchip IPA support"
57	depends on THERMAL && OF
58	help
59	  Say y here to enable rockchip IPA.
60	  Add a simple power model for ipa to calculate static power and
61	  dynamic power.
62
63	  If unsure, say N.
64
65config ROCKCHIP_OPP
66	tristate "Rockchip OPP select support"
67	depends on PM_DEVFREQ
68	help
69	  Say y here to enable rockchip OPP support.
70
71config ROCKCHIP_PM_DOMAINS
72        tristate "Rockchip generic power domain"
73        depends on PM
74        select PM_GENERIC_DOMAINS
75        help
76          Say y here to enable power domain support.
77          In order to meet high performance and low power requirements, a power
78          management unit is designed or saving power when RK3288 in low power
79          mode. The RK3288 PMU is dedicated for managing the power of the whole chip.
80
81          If unsure, say N.
82
83config ROCKCHIP_PVTM
84	tristate "Rockchip PVTM support"
85	help
86	  Say y here to enable pvtm support.
87	  The Process-Voltage-Temperature Monitor (PVTM) is used to monitor
88	  the chip performance variance caused by chip process, voltage and
89	  temperature.
90
91config ROCKCHIP_SUSPEND_MODE
92	tristate "Rockchip suspend mode config"
93	depends on ROCKCHIP_SIP
94	help
95	  Say Y here if you want to set the suspend mode to the ATF.
96
97config ROCKCHIP_SYSTEM_MONITOR
98	tristate "Rockchip system monitor support"
99	help
100	  Say y here to enable rockchip system monitor support.
101
102config ROCKCHIP_VENDOR_STORAGE
103	tristate "Rockchip vendor storage support"
104	help
105	  Say y here to enable rockchip vendor storage support.
106
107config ROCKCHIP_MMC_VENDOR_STORAGE
108	tristate "Rockchip mmc vendor storage support"
109	depends on ROCKCHIP_VENDOR_STORAGE && MMC
110	help
111	  Say y here to enable rockchip mmc vendor storage support.
112
113config ROCKCHIP_FLASH_VENDOR_STORAGE
114	tristate "Rockchip flash vendor storage support"
115	depends on ROCKCHIP_VENDOR_STORAGE && RK_FLASH
116	help
117	  Say y here to enable rockchip flash vendor storage support.
118
119config ROCKCHIP_MTD_VENDOR_STORAGE
120	tristate "Rockchip mtd vendor storage support"
121	depends on ROCKCHIP_VENDOR_STORAGE && MTD
122	help
123	  Say y here to enable rockchip mtd vendor storage support.
124
125config ROCKCHIP_VENDOR_STORAGE_UPDATE_LOADER
126	bool "Rockchip vendor storage update loader support"
127	default n
128	help
129	  Say y here to enable rockchip vendor storage update loader support.
130	  The /dev/vendor_storage must set root user access only.
131
132config ROCKCHIP_FIQ_DEBUGGER
133	tristate "Rockchip FIQ Debugger"
134	depends on FIQ_DEBUGGER
135	help
136	  Say y here to enable Rockchip FIQ Debugger platform driver.
137
138config ROCKCHIP_DEBUG
139	tristate "Rockchip DEBUG"
140	help
141	  Print dbgpcsr for every cpu when panic.
142
143config ROCKCHIP_THUNDER_BOOT
144	bool "Rockchip Thunder Boot support"
145	depends on NO_GKI
146	help
147	  Say y here to enable Rockchip thunder boot support.
148	  This option make the kernel boot faster.
149
150config ROCKCHIP_THUNDER_BOOT_SFC
151	bool "Rockchip Thunder Boot from SFC"
152	depends on ROCKCHIP_THUNDER_BOOT
153	help
154	  Say y if boot from SPI Flash from SFC controller.
155
156endif
157