xref: /openbmc/linux/drivers/soc/mediatek/Kconfig (revision 5ce5e0d0)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
21f022d84SFlora Fu#
31f022d84SFlora Fu# MediaTek SoC drivers
41f022d84SFlora Fu#
531d7b359SSean Wangmenu "MediaTek SoC drivers"
631d7b359SSean Wang	depends on ARCH_MEDIATEK || COMPILE_TEST
731d7b359SSean Wang
8576f1b4bSHoulong Weiconfig MTK_CMDQ
9576f1b4bSHoulong Wei	tristate "MediaTek CMDQ Support"
10576f1b4bSHoulong Wei	depends on ARCH_MEDIATEK || COMPILE_TEST
11576f1b4bSHoulong Wei	select MAILBOX
12576f1b4bSHoulong Wei	select MTK_CMDQ_MBOX
13576f1b4bSHoulong Wei	select MTK_INFRACFG
14576f1b4bSHoulong Wei	help
15576f1b4bSHoulong Wei	  Say yes here to add support for the MediaTek Command Queue (CMDQ)
16576f1b4bSHoulong Wei	  driver. The CMDQ is used to help read/write registers with critical
17576f1b4bSHoulong Wei	  time limitation, such as updating display configuration during the
18576f1b4bSHoulong Wei	  vblank.
19576f1b4bSHoulong Wei
200890beb2SNeal Liuconfig MTK_DEVAPC
210890beb2SNeal Liu	tristate "Mediatek Device APC Support"
220890beb2SNeal Liu	help
230890beb2SNeal Liu	  Say yes here to enable support for Mediatek Device APC driver.
240890beb2SNeal Liu	  This driver is mainly used to handle the violation which catches
250890beb2SNeal Liu	  unexpected transaction.
260890beb2SNeal Liu	  The violation information is logged for further analysis or
270890beb2SNeal Liu	  countermeasures.
280890beb2SNeal Liu
2916a624a9SSascha Hauerconfig MTK_INFRACFG
3016a624a9SSascha Hauer	bool "MediaTek INFRACFG Support"
3116a624a9SSascha Hauer	select REGMAP
3216a624a9SSascha Hauer	help
3316a624a9SSascha Hauer	  Say yes here to add support for the MediaTek INFRACFG controller. The
3416a624a9SSascha Hauer	  INFRACFG controller contains various infrastructure registers not
3516a624a9SSascha Hauer	  directly associated to any device.
3616a624a9SSascha Hauer
371f022d84SFlora Fuconfig MTK_PMIC_WRAP
381f022d84SFlora Fu	tristate "MediaTek PMIC Wrapper Support"
392a910d13SMatthias Brugger	depends on RESET_CONTROLLER
402778caedSJean Delvare	depends on OF
411f022d84SFlora Fu	select REGMAP
421f022d84SFlora Fu	help
431f022d84SFlora Fu	  Say yes here to add support for MediaTek PMIC Wrapper found
441f022d84SFlora Fu	  on different MediaTek SoCs. The PMIC wrapper is a proprietary
451f022d84SFlora Fu	  hardware to connect the PMIC.
46c84e3587SSascha Hauer
47c200774aSAngeloGioacchino Del Regnoconfig MTK_REGULATOR_COUPLER
48c200774aSAngeloGioacchino Del Regno	bool "MediaTek SoC Regulator Coupler" if COMPILE_TEST
49c200774aSAngeloGioacchino Del Regno	default ARCH_MEDIATEK
50c200774aSAngeloGioacchino Del Regno	depends on REGULATOR
51c200774aSAngeloGioacchino Del Regno
52c84e3587SSascha Hauerconfig MTK_SCPSYS
53c84e3587SSascha Hauer	bool "MediaTek SCPSYS Support"
54112ef188SShunli Wang	default ARCH_MEDIATEK
552778caedSJean Delvare	depends on OF
56c84e3587SSascha Hauer	select REGMAP
57c84e3587SSascha Hauer	select MTK_INFRACFG
58c84e3587SSascha Hauer	select PM_GENERIC_DOMAINS if PM
59c84e3587SSascha Hauer	help
60c84e3587SSascha Hauer	  Say yes here to add support for the MediaTek SCPSYS power domain
61c84e3587SSascha Hauer	  driver.
6231d7b359SSean Wang
6359b644b0SEnric Balletbo i Serraconfig MTK_SCPSYS_PM_DOMAINS
6459b644b0SEnric Balletbo i Serra	bool "MediaTek SCPSYS generic power domain"
6559b644b0SEnric Balletbo i Serra	default ARCH_MEDIATEK
6659b644b0SEnric Balletbo i Serra	depends on PM
6759b644b0SEnric Balletbo i Serra	select PM_GENERIC_DOMAINS
6859b644b0SEnric Balletbo i Serra	select REGMAP
6959b644b0SEnric Balletbo i Serra	help
7059b644b0SEnric Balletbo i Serra	  Say y here to enable power domain support.
7159b644b0SEnric Balletbo i Serra	  In order to meet high performance and low power requirements, the System
7259b644b0SEnric Balletbo i Serra	  Control Processor System (SCPSYS) has several power management related
7359b644b0SEnric Balletbo i Serra	  tasks in the system.
7459b644b0SEnric Balletbo i Serra
7513032709SMatthias Bruggerconfig MTK_MMSYS
76a7596e62SYongqiang Niu	tristate "MediaTek MMSYS Support"
7752660e56SEnric Balletbo i Serra	default ARCH_MEDIATEK
781dcdee6eSEnric Balletbo i Serra	depends on HAS_IOMEM
79*5ce5e0d0SAngeloGioacchino Del Regno	depends on MTK_CMDQ || MTK_CMDQ=n
8013032709SMatthias Brugger	help
8113032709SMatthias Brugger	  Say yes here to add support for the MediaTek Multimedia
8213032709SMatthias Brugger	  Subsystem (MMSYS).
8313032709SMatthias Brugger
84681a02e9SRoger Luconfig MTK_SVS
85681a02e9SRoger Lu	tristate "MediaTek Smart Voltage Scaling(SVS)"
8628fc7c98SRafał Miłecki	depends on NVMEM_MTK_EFUSE && NVMEM
87681a02e9SRoger Lu	help
88681a02e9SRoger Lu	  The Smart Voltage Scaling(SVS) engine is a piece of hardware
89681a02e9SRoger Lu	  which has several controllers(banks) for calculating suitable
90681a02e9SRoger Lu	  voltage to different power domains(CPU/GPU/CCI) according to
91681a02e9SRoger Lu	  chip process corner, temperatures and other factors. Then DVFS
92681a02e9SRoger Lu	  driver could apply SVS bank voltage to PMIC/Buck.
93681a02e9SRoger Lu
9431d7b359SSean Wangendmenu
95