blob: 90754308f728650d81f983d109f8c244c95cdcd5 [file] [log] [blame]
xjb04a4022021-11-25 15:01:52 +08001source "drivers/misc/mediatek/Kconfig.default"
2
3config MTK_ENG_BUILD
4 bool "MTK Engineer Build"
5 help
6 This is an option for developers. Say Y here for MTK engineering
7 mode, which will have more debugging features built-in.
8 Please set N for user mode to avoid performance impact.
9 If unsure, say N here.
10
11config MTK_MEMORY_SIZE
12 int "MTK Memory Size"
13 default 512
14 help
15 Set the total memory of the platform.
16 Possible vaule are 512, 640, 768, 896, 1024.
17 The project config should be 512 or 1024. Others are used for test purpose.
18
19config MTK_CORE_NUM
20 int "MTK CPU Core Num"
21 default 4
22 help
23 Set the total cpu of the platform.
24 Possible value are 2, 4.
25 Default configuration is 4.
26
27menu "Storage"
28
29endmenu # Storage
30
31menu "Power, PMIC, Battery & Low Power"
32source "drivers/misc/mediatek/pmic/Kconfig"
33source "drivers/misc/mediatek/pwm/Kconfig"
34
35config MTK_CLK_BUFFER
36 tristate "MediaTek Clock Buffer Support"
37 select REGMAP
38 help
39 Say yes here to add support for the MediaTek Clock Buffer
40 driver, which support interface for PMIC 26Mhz output to
41 other HW component such as BB_MD/WCN/NFC/RF/UFS.
42 It could also control FPM/LPM mode switch state.
43
44config MTK_CLKBUF_BBLPM
45 bool "MediaTek Clock Buffer BBLPM Mode Support"
46 select REGMAP
47 help
48 Say yes here to add support for the MediaTek Clock Buffer
49 BBLPM, which support PMIC 26Mhz output transfer to low
50 power mode, less accurate with power consumption.
51 But with restrict condition for some of XO_BUFFER need to
52 be disabled.
53
54config MTK_CLKBUF_NFC
55 bool "MediaTek Clock Buffer NFC Support"
56 select REGMAP
57 default n
58 help
59 Say yes here to support for MediaTek Clock Buffer XO_NFC,
60 which support PMIC 26Mhz output to NFC HW component. If
61 this config is not set, XO_NFC will be disabled when
62 driver is probed.
63
64config MTK_DCM_COMMON
65 tristate "Mediatek DCM COMMON"
66 depends on ARCH_MEDIATEK && OF
67 help
68 For Mediatek dcm control. Provid a common interface to
69 adjust dcm setting. Setting will not keep after reboot
70 Select "y" if you want to use.
71 Select "n" if you are not sure.
72
73config MTK_DCM_MT6779
74 tristate "Mediatek MT6779 DCM control"
75 depends on ARCH_MEDIATEK && OF
76 select MTK_DCM_COMMON
77 help
78 For Mediatek MT6779 dcm HW control. Only enable when you
79 neet to change mt6779 dcm setting. Setting will not keep after reboot
80 Select "y" if you want to change mt6779 dcm setting.
81 Select "n" if you do not need to change
82
83config MTK_DCM_MT6880
84 tristate "Mediatek MT6880 DCM control"
85 depends on ARCH_MEDIATEK && OF
86 select MTK_DCM_COMMON
87 help
88 For Mediatek MT6880 dcm HW control. Only enable when you
89 neet to change mt6880 dcm setting. Setting will not keep after reboot
90 Select "y" if you want to change mt6880 dcm setting.
91 Select "n" if you do not need to change
92
93config MTK_QOS_FRAMEWORK
94 tristate "MTK QOS FRAMEWORK"
95 depends on MTK_TINYSYS_SSPM_SUPPORT
96 help
97 This kernel config can be used to enable MTK QOS FRAMEWORK.
98 When enabling this option, BW Limiter and BW Bound Detector
99 will be enabled and set EMI hardware.
100 If unsure, say N.
101
102config MTK_SRCLKEN_RC
103 tristate "MediaTek SRCLKEN RC Support"
104 select REGMAP
105 help
106 Say yes here to add support for the MediaTek SRCLKEN RC
107 driver, which supports debug interface for monitoring XO 26M/
108 DCXO/Vcore/LDO/Buck state with all subsys such as suspend/
109 dpidle/MD/RF/BT/SCP...etc.
110 It would also inform other subsystem/module to run suitable
111 sw setting for srclken-rc driver.
112
113config MTK_LOW_POWER_MODULE
114 bool "Meditaek Low Power Module"
115 depends on ARCH_MEDIATEK && MTK_LPM
116 default n
117 help
118 For MediaTek Low Power Module, such as CPU idle,
119 CPU suspend low power enhencement.
120 Select "y" if you want to enable low power features.
121 Select "n" if unsure.
122
123config MTK_POWER_THROTTLING_COMMON
124 bool "MTK power throttling common"
125 help
126 For MediaTek power throttling. Provide common interface for MTK
127 power throttle.
128 Select "y" if you want to enable power throttling feature
129 Select "n" if unsure.
130
131config PMIC_LBAT_SERVICE
132 tristate "PMIC lbat service"
133 select MTK_POWER_THROTTLING_COMMON
134 help
135 For MediaTek PMIC lbat service.
136 It will detect if VBAT is higher or lower some threshold and trigger
137 interrupt to notify.
138 Select "y" if you want to enable PMIC lbat service.
139 Select "n" if unsure.
140
141config MTK_BATTERY_OC_POWER_THROTTLING
142 tristate "MTK battery over current throttle"
143 select MTK_POWER_THROTTLING_COMMON
144 help
145 For MediaTek battery over current power throttling.
146 Power throttle when battery current loading higher than some
147 threshold.
148 Select "y" if you want to enable battery over current power
149 throttling feature.
150 Select "n" if unsure.
151
152config MTK_BATTERY_PERCENTAGE_POWER_THROTTLING
153 tristate "MTK battery percentage throttle"
154 select MTK_POWER_THROTTLING_COMMON
155 help
156 For MediaTek battery percentage power throttling.
157 Power throttle when battery percentage lower than some threshold
158 Select "y" if you want to enable battery percentage power throttling
159 feature
160 Select "n" if unsure.
161
162config MTK_LOW_BATTERY_POWER_THROTTLING
163 tristate "MTK low battery throttle"
164 select MTK_POWER_THROTTLING_COMMON
165 select PMIC_LBAT_SERVICE
166 help
167 For MediaTek low battery power throttling.
168 Power throttle when battery voltage lower than some threshold.
169 Select "y" if you want to enable low battery power throttling
170 feature.
171 Select "n" if unsure.
172
173config MTK_PTPOD
174 bool "MTK PTPOD"
175 help
176 This kernel config can be used to enable PTPOD.
177 When enable this option, voltage will be
178 changed which will depended on chip.
179 If unsure, say N.
180
181config MTK_STATIC_POWER
182 bool "MTK STATIC POWER"
183 help
184 This kernel config can be used to enable static power.
185 This information can provide power data to someone who
186 need it
187 If unsure, say N.
188
189config MTK_UNIFY_POWER
190 bool "MTK UNIFY POWER"
191 help
192 This kernel config can be used to enable unified power table.
193 This table can provide power data and capacity to someone who
194 need it.
195 If unsure, say Y.
196
197source "drivers/misc/mediatek/lpm/Kconfig"
198source "drivers/misc/mediatek/ppm_v3/Kconfig"
199endmenu # Power
200
201menu "MultiMedia, Display, Camera"
202
203config MTK_DISP_PLATFORM
204 string "MTK display platform name"
205 help
206 To separate display features and control
207 for different platform. Config platform name
208 for your selection. It's used for display
209 driver only.
210
211config MTK_SEC_VIDEO_PATH_SUPPORT
212 bool "Enable MTK Secure Video Path Support"
213 depends on MTK_IN_HOUSE_TEE_SUPPORT || TRUSTONIC_TEE_SUPPORT || \
214 MTK_GOOGLE_TRUSTY_SUPPORT || MICROTRUST_TEE_SUPPORT
215 help
216 This enable MTK Secure Video Path function of Widevine Level1,
217 HW protect the online secure video streaming by ARM/Trustzone
218 support TEE OS of: Trustonic, Microtrust, Blowfish .etc
219 relative modules include: DRM, vdec, venc, cmdq, m4u, display,
220 tplay/DXCC,ssvp, secmem, TEE frameworks, keyinstall, DAPC, MPU,
221 ION, gralloc,RPMB, DXCC, mediacodec, WFD, MDP.etc
222 relative options including: MTK_TEE_SUPPORT, MTK_GP_SUPPORT,
223 MTK_DRM_L1_SUPPORT, MTK_PERSIST_PARTITION_SUPPORT,
224 MTK_DRM_KEY_MNG_SUPPORT.
225
226config MTK_DRM_KEY_MNG_SUPPORT
227 bool "Enable MTK DRM Key Manager Support"
228 depends on MTK_IN_HOUSE_TEE_SUPPORT || TRUSTONIC_TEE_SUPPORT || \
229 MTK_GOOGLE_TRUSTY_SUPPORT || MICROTRUST_TEE_SUPPORT
230 help
231 This enable MTK DRM Key Manager Support.
232 the DRM key install function is used in the feature of SVP .etc
233 used by DRM/widevine to install and runtime read of keybox.
234 relative options including: MTK_SEC_VIDEO_PATH_SUPPORT and
235 MTK_PERSIST_PARTITION_SUPPORT.
236
237source "drivers/misc/mediatek/cmdq/Kconfig"
238source "drivers/misc/mediatek/mmp/Kconfig"
239source "drivers/misc/mediatek/lcm/Kconfig"
240source "drivers/misc/mediatek/sync/Kconfig"
241source "drivers/misc/mediatek/video/Kconfig"
242source "drivers/misc/mediatek/iommu/Kconfig"
243endmenu # MultiMedia
244
245menu "Sensors"
246source "drivers/misc/mediatek/sensor/Kconfig"
247endmenu # Sensors
248
249menu "Modem & Connectivity"
250source "drivers/misc/mediatek/ccci_util/Kconfig"
251source "drivers/misc/mediatek/ccmni/Kconfig"
252source "drivers/misc/mediatek/eccci/Kconfig"
253source "drivers/misc/mediatek/hsapif/Kconfig"
254source "drivers/misc/mediatek/btif/Kconfig"
255source "drivers/misc/mediatek/connectivity/Kconfig"
256source "drivers/misc/mediatek/conn_md/Kconfig"
257endmenu # CONN
258
259menu "Security"
260
261source "drivers/misc/mediatek/trusted_mem/Kconfig"
262source "drivers/misc/mediatek/geniezone/Kconfig"
263endmenu # Security
264
265menu "Other Peripherals"
266source "drivers/misc/mediatek/extcon/Kconfig"
267source "drivers/misc/mediatek/typec/Kconfig"
268source "drivers/misc/mediatek/mhccif/Kconfig"
269
270endmenu # Other Peripheral
271
272menu "Memory"
273
274endmenu # Memory
275
276menu "Performance, and Power"
277
278config MTK_PERFORMANCE_MODULE
279 bool "MediaTek Performance Module"
280 depends on ARCH_MEDIATEK
281 help
282 For MediaTek Performance Module, such as Boost controller
283 and FPSGO.
284 Select "y" if you want to enable performance features.
285 Select "n" if unsure.
286
287source "drivers/misc/mediatek/perf_common/Kconfig"
288source "drivers/misc/mediatek/performance/Kconfig"
289endmenu # PPT
290
291menu "TinySys"
292source "drivers/misc/mediatek/scp/Kconfig"
293source "drivers/misc/mediatek/sspm/Kconfig"
294source "drivers/misc/mediatek/mcupm/Kconfig"
295source "drivers/misc/mediatek/medmcu/Kconfig"
296endmenu # TinySys
297
298menu "Debug, log, trace"
299
300config MTK_ATF_LOGGER
301 tristate "atf logger kernel driver"
302 depends on HAVE_ARM_SMCCC && ARCH_MEDIATEK && OF
303 default n
304 help
305 ARM Trusted Firmwear Logger which is designed by Mediatek.
306 The logger provide a /proc interface for reading from
307 user space.
308
309config MTK_AMMS
310 bool "Support Mediatek AP and Modem Sharing Memory techonology"
311 help
312 Mediatek Memory sharing techonology
313 It tries to free Modem memory once not
314 used. Modem should support this as well
315 or it won't work. If you are not sure
316 Please select "N"
317
318config MTK_ICE_DEBUG
319 bool "ICE_DEBUG"
320 default y if ARCH_MEDIATEK
321 help
322 For Mediatek InCircuit Emulator Debug features.
323 Select "y" if you want to use.
324 Select "n" if you are not sure.
325
326config MTK_SPMTWAM
327 tristate "Mediatek Signal profiling tool"
328 depends on ARCH_MEDIATEK && OF
329 help
330 For Mediatek low power signal profiling features.
331 Profiling several hw signals for debug purposes.
332 Select "y" if you want to use.
333 Select "n" if you are not sure.
334
335config MTK_MET
336 bool "Mediatek Embedded Technology"
337 depends on FTRACE && TRACING
338 help
339 For Mediatek Embedded Technology features.
340 It depends on FTRACE and TRACING.
341 Select "Y" if you want to use.
342 Select "N" if you are not sure.
343
344config MTK_GCOV_KERNEL
345 bool "Enable GCOV on Mediatek Modules"
346 depends on GCOV_KERNEL
347 help
348 Enable GCOV on Mediatek Modules
349 It depends on GCOV_KERNEL
350 Select "Y" if you want to use.
351 Select "N" if you are not sure.
352
353source "drivers/misc/mediatek/boot/Kconfig"
354source "drivers/misc/mediatek/met_drv/Kconfig"
355source "drivers/misc/mediatek/meta_gpio/Kconfig"
356source "drivers/misc/mediatek/mtprof/Kconfig"
357source "drivers/misc/mediatek/aee/Kconfig"
358source "drivers/misc/mediatek/cm_mgr/Kconfig"
359source "drivers/misc/mediatek/systracker/Kconfig"
360source "drivers/misc/mediatek/dbgtop/Kconfig"
361source "drivers/misc/mediatek/scdk/Kconfig"
362source "drivers/misc/mediatek/monitor_hang/Kconfig"
363source "drivers/misc/mediatek/debug_latch/Kconfig"
364source "drivers/misc/mediatek/cache/Kconfig"
365source "drivers/misc/mediatek/mtprintk/Kconfig"
366source "drivers/misc/mediatek/subpmic/Kconfig"
367source "drivers/misc/mediatek/cameraisp/Kconfig"
368source "drivers/misc/mediatek/log_store/Kconfig"
369source "drivers/misc/mediatek/leds/Kconfig"
370source "drivers/misc/mediatek/dvfsrc/Kconfig"
371source "drivers/misc/mediatek/hsm/Kconfig"
372endmenu # Debug
373
374menu "PCIe"
375source "drivers/misc/mediatek/pcie/Kconfig"
376endmenu # PCIe
377
378menu "Misc"
379
380endmenu # Misc