xref: /linux/drivers/soc/mediatek/Kconfig (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# MediaTek SoC drivers
4#
5menu "MediaTek SoC drivers"
6	depends on ARCH_MEDIATEK || COMPILE_TEST
7
8config MTK_CMDQ
9	tristate "MediaTek CMDQ Support"
10	depends on ARCH_MEDIATEK || COMPILE_TEST
11	select MAILBOX
12	select MTK_CMDQ_MBOX
13	select MTK_INFRACFG
14	help
15	  Say yes here to add support for the MediaTek Command Queue (CMDQ)
16	  driver. The CMDQ is used to help read/write registers with critical
17	  time limitation, such as updating display configuration during the
18	  vblank.
19
20config MTK_DEVAPC
21	tristate "Mediatek Device APC Support"
22	help
23	  Say yes here to enable support for Mediatek Device APC driver.
24	  This driver is mainly used to handle the violation which catches
25	  unexpected transaction.
26	  The violation information is logged for further analysis or
27	  countermeasures.
28
29config MTK_DVFSRC
30	tristate "MediaTek DVFSRC Support"
31	depends on ARCH_MEDIATEK
32	help
33	  Say yes here to add support for the MediaTek Dynamic Voltage
34	  and Frequency Scaling Resource Collector (DVFSRC): a HW
35	  IP found on many MediaTek SoCs, which is responsible for
36	  collecting DVFS requests from various SoC IPs, other than
37	  software, and performing bandwidth scaling to provide the
38	  best achievable performance-per-watt.
39
40config MTK_INFRACFG
41	bool "MediaTek INFRACFG Support"
42	select REGMAP
43	help
44	  Say yes here to add support for the MediaTek INFRACFG controller. The
45	  INFRACFG controller contains various infrastructure registers not
46	  directly associated to any device.
47
48config MTK_PMIC_WRAP
49	tristate "MediaTek PMIC Wrapper Support"
50	depends on RESET_CONTROLLER
51	depends on OF
52	select REGMAP
53	help
54	  Say yes here to add support for MediaTek PMIC Wrapper found
55	  on different MediaTek SoCs. The PMIC wrapper is a proprietary
56	  hardware to connect the PMIC.
57
58config MTK_REGULATOR_COUPLER
59	bool "MediaTek SoC Regulator Coupler" if COMPILE_TEST
60	default ARCH_MEDIATEK
61	depends on REGULATOR
62
63config MTK_MMSYS
64	tristate "MediaTek MMSYS Support"
65	default ARCH_MEDIATEK
66	depends on HAS_IOMEM
67	depends on MTK_CMDQ || MTK_CMDQ=n
68	help
69	  Say yes here to add support for the MediaTek Multimedia
70	  Subsystem (MMSYS).
71
72config MTK_SVS
73	tristate "MediaTek Smart Voltage Scaling(SVS)"
74	depends on NVMEM_MTK_EFUSE && NVMEM
75	help
76	  The Smart Voltage Scaling(SVS) engine is a piece of hardware
77	  which has several controllers(banks) for calculating suitable
78	  voltage to different power domains(CPU/GPU/CCI) according to
79	  chip process corner, temperatures and other factors. Then DVFS
80	  driver could apply SVS bank voltage to PMIC/Buck.
81
82config MTK_SOCINFO
83	tristate "MediaTek SoC Information"
84	default y
85	depends on NVMEM_MTK_EFUSE
86	select SOC_BUS
87	help
88	  The MediaTek SoC Information (mtk-socinfo) driver provides
89	  information about the SoC to the userspace including the
90	  manufacturer name, marketing name and soc name.
91
92endmenu
93