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 47c84e3587SSascha Hauerconfig MTK_SCPSYS 48c84e3587SSascha Hauer bool "MediaTek SCPSYS Support" 49112ef188SShunli Wang default ARCH_MEDIATEK 502778caedSJean Delvare depends on OF 51c84e3587SSascha Hauer select REGMAP 52c84e3587SSascha Hauer select MTK_INFRACFG 53c84e3587SSascha Hauer select PM_GENERIC_DOMAINS if PM 54c84e3587SSascha Hauer help 55c84e3587SSascha Hauer Say yes here to add support for the MediaTek SCPSYS power domain 56c84e3587SSascha Hauer driver. 5731d7b359SSean Wang 5859b644b0SEnric Balletbo i Serraconfig MTK_SCPSYS_PM_DOMAINS 5959b644b0SEnric Balletbo i Serra bool "MediaTek SCPSYS generic power domain" 6059b644b0SEnric Balletbo i Serra default ARCH_MEDIATEK 6159b644b0SEnric Balletbo i Serra depends on PM 6259b644b0SEnric Balletbo i Serra select PM_GENERIC_DOMAINS 6359b644b0SEnric Balletbo i Serra select REGMAP 6459b644b0SEnric Balletbo i Serra help 6559b644b0SEnric Balletbo i Serra Say y here to enable power domain support. 6659b644b0SEnric Balletbo i Serra In order to meet high performance and low power requirements, the System 6759b644b0SEnric Balletbo i Serra Control Processor System (SCPSYS) has several power management related 6859b644b0SEnric Balletbo i Serra tasks in the system. 6959b644b0SEnric Balletbo i Serra 7013032709SMatthias Bruggerconfig MTK_MMSYS 71*a7596e62SYongqiang Niu tristate "MediaTek MMSYS Support" 7252660e56SEnric Balletbo i Serra default ARCH_MEDIATEK 731dcdee6eSEnric Balletbo i Serra depends on HAS_IOMEM 7413032709SMatthias Brugger help 7513032709SMatthias Brugger Say yes here to add support for the MediaTek Multimedia 7613032709SMatthias Brugger Subsystem (MMSYS). 7713032709SMatthias Brugger 78681a02e9SRoger Luconfig MTK_SVS 79681a02e9SRoger Lu tristate "MediaTek Smart Voltage Scaling(SVS)" 8028fc7c98SRafał Miłecki depends on NVMEM_MTK_EFUSE && NVMEM 81681a02e9SRoger Lu help 82681a02e9SRoger Lu The Smart Voltage Scaling(SVS) engine is a piece of hardware 83681a02e9SRoger Lu which has several controllers(banks) for calculating suitable 84681a02e9SRoger Lu voltage to different power domains(CPU/GPU/CCI) according to 85681a02e9SRoger Lu chip process corner, temperatures and other factors. Then DVFS 86681a02e9SRoger Lu driver could apply SVS bank voltage to PMIC/Buck. 87681a02e9SRoger Lu 8831d7b359SSean Wangendmenu 89