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_INFRACFG
30	bool "MediaTek INFRACFG Support"
31	select REGMAP
32	help
33	  Say yes here to add support for the MediaTek INFRACFG controller. The
34	  INFRACFG controller contains various infrastructure registers not
35	  directly associated to any device.
36
37config MTK_PMIC_WRAP
38	tristate "MediaTek PMIC Wrapper Support"
39	depends on RESET_CONTROLLER
40	select REGMAP
41	help
42	  Say yes here to add support for MediaTek PMIC Wrapper found
43	  on different MediaTek SoCs. The PMIC wrapper is a proprietary
44	  hardware to connect the PMIC.
45
46config MTK_SCPSYS
47	bool "MediaTek SCPSYS Support"
48	default ARCH_MEDIATEK
49	select REGMAP
50	select MTK_INFRACFG
51	select PM_GENERIC_DOMAINS if PM
52	help
53	  Say yes here to add support for the MediaTek SCPSYS power domain
54	  driver.
55
56config MTK_SCPSYS_PM_DOMAINS
57	bool "MediaTek SCPSYS generic power domain"
58	default ARCH_MEDIATEK
59	depends on PM
60	select PM_GENERIC_DOMAINS
61	select REGMAP
62	help
63	  Say y here to enable power domain support.
64	  In order to meet high performance and low power requirements, the System
65	  Control Processor System (SCPSYS) has several power management related
66	  tasks in the system.
67
68config MTK_MMSYS
69	bool "MediaTek MMSYS Support"
70	default ARCH_MEDIATEK
71	depends on HAS_IOMEM
72	help
73	  Say yes here to add support for the MediaTek Multimedia
74	  Subsystem (MMSYS).
75
76endmenu
77