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 401f022d84SFlora Fu select REGMAP 411f022d84SFlora Fu help 421f022d84SFlora Fu Say yes here to add support for MediaTek PMIC Wrapper found 431f022d84SFlora Fu on different MediaTek SoCs. The PMIC wrapper is a proprietary 441f022d84SFlora Fu hardware to connect the PMIC. 45c84e3587SSascha Hauer 46c84e3587SSascha Hauerconfig MTK_SCPSYS 47c84e3587SSascha Hauer bool "MediaTek SCPSYS Support" 48112ef188SShunli Wang default ARCH_MEDIATEK 49c84e3587SSascha Hauer select REGMAP 50c84e3587SSascha Hauer select MTK_INFRACFG 51c84e3587SSascha Hauer select PM_GENERIC_DOMAINS if PM 52c84e3587SSascha Hauer help 53c84e3587SSascha Hauer Say yes here to add support for the MediaTek SCPSYS power domain 54c84e3587SSascha Hauer driver. 5531d7b359SSean Wang 5659b644b0SEnric Balletbo i Serraconfig MTK_SCPSYS_PM_DOMAINS 5759b644b0SEnric Balletbo i Serra bool "MediaTek SCPSYS generic power domain" 5859b644b0SEnric Balletbo i Serra default ARCH_MEDIATEK 5959b644b0SEnric Balletbo i Serra depends on PM 6059b644b0SEnric Balletbo i Serra select PM_GENERIC_DOMAINS 6159b644b0SEnric Balletbo i Serra select REGMAP 6259b644b0SEnric Balletbo i Serra help 6359b644b0SEnric Balletbo i Serra Say y here to enable power domain support. 6459b644b0SEnric Balletbo i Serra In order to meet high performance and low power requirements, the System 6559b644b0SEnric Balletbo i Serra Control Processor System (SCPSYS) has several power management related 6659b644b0SEnric Balletbo i Serra tasks in the system. 6759b644b0SEnric Balletbo i Serra 6813032709SMatthias Bruggerconfig MTK_MMSYS 6913032709SMatthias Brugger bool "MediaTek MMSYS Support" 7052660e56SEnric Balletbo i Serra default ARCH_MEDIATEK 711dcdee6eSEnric Balletbo i Serra depends on HAS_IOMEM 7213032709SMatthias Brugger help 7313032709SMatthias Brugger Say yes here to add support for the MediaTek Multimedia 7413032709SMatthias Brugger Subsystem (MMSYS). 7513032709SMatthias Brugger 76681a02e9SRoger Luconfig MTK_SVS 77681a02e9SRoger Lu tristate "MediaTek Smart Voltage Scaling(SVS)" 78*28fc7c98SRafał Miłecki depends on NVMEM_MTK_EFUSE && NVMEM 79681a02e9SRoger Lu help 80681a02e9SRoger Lu The Smart Voltage Scaling(SVS) engine is a piece of hardware 81681a02e9SRoger Lu which has several controllers(banks) for calculating suitable 82681a02e9SRoger Lu voltage to different power domains(CPU/GPU/CCI) according to 83681a02e9SRoger Lu chip process corner, temperatures and other factors. Then DVFS 84681a02e9SRoger Lu driver could apply SVS bank voltage to PMIC/Buck. 85681a02e9SRoger Lu 8631d7b359SSean Wangendmenu 87